public class CxfOutboundMessageProcessor
extends org.mule.processor.AbstractInterceptingMessageProcessor
implements org.mule.api.processor.CloneableMessageProcessor, org.mule.api.NonBlockingSupported
| Constructor and Description |
|---|
CxfOutboundMessageProcessor(org.apache.cxf.endpoint.Client client) |
| Modifier and Type | Method and Description |
|---|---|
protected Object[] |
addHoldersToResponse(Object response,
Object[] args) |
protected org.mule.api.MuleEvent |
buildResponseMessage(org.mule.api.MuleEvent request,
org.mule.api.MuleEvent transportResponse,
Object[] response) |
protected void |
cleanup() |
org.mule.api.processor.MessageProcessor |
clone() |
protected org.mule.api.MuleEvent |
doSendWithClient(org.mule.api.MuleEvent event) |
protected org.mule.api.MuleEvent |
doSendWithProxy(org.mule.api.MuleEvent event) |
protected Object[] |
getArgs(org.mule.api.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(org.mule.api.MuleEvent event) |
protected String |
getMethodOrOperationName(org.mule.api.MuleEvent event) |
String |
getMimeType() |
String |
getOperation() |
org.apache.cxf.service.model.BindingOperationInfo |
getOperation(org.mule.api.MuleEvent event) |
protected org.apache.cxf.service.model.BindingOperationInfo |
getOperation(String opName) |
CxfPayloadToArguments |
getPayloadToArguments() |
protected boolean |
isClientProxyAvailable() |
boolean |
isProxy() |
org.mule.api.MuleEvent |
process(org.mule.api.MuleEvent event) |
org.mule.api.MuleEvent |
processNext(org.mule.api.MuleEvent event)
This method is public so it can be invoked from the MuleUniversalConduit.
|
void |
setClientProxy(BindingProvider clientProxy) |
void |
setDecoupledEndpoint(String decoupledEndpoint) |
void |
setMimeType(String mimeType) |
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, getListener, getMuleContext, isEventValid, setListener, setMuleContext, toStringgetAnnotation, getAnnotations, setAnnotationspublic CxfOutboundMessageProcessor(org.apache.cxf.endpoint.Client client)
protected void cleanup()
protected Object[] getArgs(org.mule.api.MuleEvent event) throws org.mule.api.transformer.TransformerException
org.mule.api.transformer.TransformerExceptionpublic org.mule.api.MuleEvent process(org.mule.api.MuleEvent event)
throws org.mule.api.MuleException
process in interface org.mule.api.processor.MessageProcessororg.mule.api.MuleExceptionpublic org.mule.api.MuleEvent processNext(org.mule.api.MuleEvent event)
throws org.mule.api.MuleException
processNext in class org.mule.processor.AbstractInterceptingMessageProcessorBaseorg.mule.api.MuleExceptionprotected org.mule.api.MuleEvent doSendWithProxy(org.mule.api.MuleEvent event)
throws Exception
Exceptionprotected org.mule.api.MuleEvent doSendWithClient(org.mule.api.MuleEvent event)
throws Exception
Exceptionprotected org.apache.cxf.service.model.BindingOperationInfo getOperation(String opName) throws Exception
Exceptionprotected 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(org.mule.api.MuleEvent event) throws org.mule.api.transport.DispatchException
org.mule.api.transport.DispatchExceptionpublic org.apache.cxf.service.model.BindingOperationInfo getOperation(org.mule.api.MuleEvent event)
throws Exception
Exceptionprotected org.mule.api.MuleEvent buildResponseMessage(org.mule.api.MuleEvent request,
org.mule.api.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)
public org.mule.api.processor.MessageProcessor clone()
public String getMimeType()
public void setMimeType(String mimeType)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.