public class CxfOutboundMessageProcessor extends AbstractInterceptingMessageProcessor
logger, muleContext, next, notificationHandler
PROPERTY_NAME
Constructor and Description |
---|
CxfOutboundMessageProcessor(org.apache.cxf.endpoint.Client client) |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
addHoldersToResponse(Object response,
Object[] args) |
protected MuleEvent |
buildResponseMessage(MuleEvent request,
MuleEvent transportResponse,
Object[] response) |
protected void |
cleanup() |
protected MuleEvent |
doSendWithClient(MuleEvent event) |
protected MuleEvent |
doSendWithProxy(MuleEvent event) |
protected Object[] |
getArgs(MuleEvent event) |
protected org.apache.cxf.service.model.BindingOperationInfo |
getBindingOperationFromEndpoint(org.apache.cxf.endpoint.Endpoint ep,
String operationName) |
org.apache.cxf.endpoint.Client |
getClient() |
Method |
getMethod(MuleEvent event) |
protected String |
getMethodOrOperationName(MuleEvent event) |
String |
getOperation() |
org.apache.cxf.service.model.BindingOperationInfo |
getOperation(MuleEvent event) |
protected org.apache.cxf.service.model.BindingOperationInfo |
getOperation(String opName) |
CxfPayloadToArguments |
getPayloadToArguments() |
protected boolean |
isClientProxyAvailable() |
boolean |
isProxy() |
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
MuleEvent |
processNext(MuleEvent event)
This method is public so it can be invoked from the MuleUniversalConduit.
|
void |
setClientProxy(BindingProvider clientProxy) |
void |
setDecoupledEndpoint(String decoupledEndpoint) |
void |
setOperation(String operation) |
void |
setPayloadToArguments(CxfPayloadToArguments payloadToArguments) |
void |
setProxy(boolean proxy) |
protected org.apache.cxf.service.model.BindingOperationInfo |
tryToGetTheOperationInDotNetNamingConvention(org.apache.cxf.endpoint.Endpoint ep,
String opName)
This method tries to call
getBindingOperationFromEndpoint(Endpoint, String) with the .NET
naming convention for .NET webservices (method names start with a capital
letter). |
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, setAnnotations, setListener, setMuleContext, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setListener
public CxfOutboundMessageProcessor(org.apache.cxf.endpoint.Client client)
protected void cleanup()
protected Object[] getArgs(MuleEvent event) throws TransformerException
TransformerException
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
event
- MuleEvent to be processedMuleException
public MuleEvent processNext(MuleEvent event) throws MuleException
processNext
in class AbstractInterceptingMessageProcessorBase
MuleException
protected MuleEvent doSendWithProxy(MuleEvent event) throws Exception
Exception
protected MuleEvent doSendWithClient(MuleEvent event) throws Exception
Exception
protected org.apache.cxf.service.model.BindingOperationInfo getOperation(String opName) throws Exception
Exception
protected org.apache.cxf.service.model.BindingOperationInfo tryToGetTheOperationInDotNetNamingConvention(org.apache.cxf.endpoint.Endpoint ep, String opName)
This method tries to call
getBindingOperationFromEndpoint(Endpoint, String)
with the .NET
naming convention for .NET webservices (method names start with a capital
letter).
CXF generates method names compliant with Java naming so if the WSDL operation names starts with uppercase letter, matching with method name does not work - thus the work around.
protected org.apache.cxf.service.model.BindingOperationInfo getBindingOperationFromEndpoint(org.apache.cxf.endpoint.Endpoint ep, String operationName)
protected String getMethodOrOperationName(MuleEvent event) throws DispatchException
DispatchException
public org.apache.cxf.service.model.BindingOperationInfo getOperation(MuleEvent event) throws Exception
Exception
protected MuleEvent buildResponseMessage(MuleEvent request, MuleEvent transportResponse, Object[] response)
public void setPayloadToArguments(CxfPayloadToArguments payloadToArguments)
protected boolean isClientProxyAvailable()
public boolean isProxy()
public void setProxy(boolean proxy)
public String getOperation()
public void setOperation(String operation)
public void setClientProxy(BindingProvider clientProxy)
public CxfPayloadToArguments getPayloadToArguments()
public org.apache.cxf.endpoint.Client getClient()
public void setDecoupledEndpoint(String decoupledEndpoint)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.