org.mule.module.ws.consumer.SoapActionInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-module-ws Show documentation
Show all versions of mule-module-ws Show documentation
Provides components for working with Web Services.
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.module.ws.consumer;
import org.mule.module.cxf.SoapConstants;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
/**
* CXF interceptor that adds the SOAP action to the message.
*/
public class SoapActionInterceptor extends AbstractPhaseInterceptor
{
private final String soapAction;
public SoapActionInterceptor(String soapAction)
{
super(Phase.PRE_LOGICAL);
this.soapAction = soapAction;
}
@Override
public void handleMessage(Message message) throws Fault
{
message.put(SoapConstants.SOAP_ACTION_PROPERTY_CAPS, soapAction);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy