org.mule.module.cxf.transport
Class MuleUniversalConduit
java.lang.Object
org.apache.cxf.transport.AbstractObservable
org.apache.cxf.transport.AbstractConduit
org.mule.module.cxf.transport.MuleUniversalConduit
- All Implemented Interfaces:
- org.apache.cxf.transport.Conduit, org.apache.cxf.transport.Observable
public class MuleUniversalConduit
- extends org.apache.cxf.transport.AbstractConduit
A Conduit is primarily responsible for sending messages from CXF to somewhere
else. This conduit takes messages which are being written and sends them to the
Mule bus.
Fields inherited from class org.apache.cxf.transport.AbstractConduit |
target |
Fields inherited from class org.apache.cxf.transport.AbstractObservable |
incomingObserver |
Methods inherited from class org.apache.cxf.transport.AbstractConduit |
getTarget, toString |
Methods inherited from class org.apache.cxf.transport.AbstractObservable |
activate, deactivate, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.cxf.transport.Observable |
setMessageObserver |
MuleUniversalConduit
public MuleUniversalConduit(MuleUniversalTransport transport,
CxfConfiguration configuration,
org.apache.cxf.service.model.EndpointInfo ei,
org.apache.cxf.ws.addressing.EndpointReferenceType t)
- Parameters:
ei
- The Endpoint being invoked by this destination.t
- The EPR associated with this Conduit - i.e. the reply destination.
close
public void close(org.apache.cxf.message.Message msg)
throws java.io.IOException
- Specified by:
close
in interface org.apache.cxf.transport.Conduit
- Overrides:
close
in class org.apache.cxf.transport.AbstractConduit
- Throws:
java.io.IOException
getLogger
protected java.util.logging.Logger getLogger()
- Specified by:
getLogger
in class org.apache.cxf.transport.AbstractObservable
getBackChannel
public org.apache.cxf.transport.Destination getBackChannel()
- Specified by:
getBackChannel
in interface org.apache.cxf.transport.Conduit
- Overrides:
getBackChannel
in class org.apache.cxf.transport.AbstractConduit
setUpDecoupledDestination
protected void setUpDecoupledDestination()
prepare
public void prepare(org.apache.cxf.message.Message message)
throws java.io.IOException
- Prepare the message for writing.
- Throws:
java.io.IOException
getEndpoint
protected OutboundEndpoint getEndpoint(MuleContext muleContext,
java.lang.String uri)
throws MuleException
- Throws:
MuleException
setupURL
protected java.lang.String setupURL(org.apache.cxf.message.Message message)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
dispatchMuleMessage
protected void dispatchMuleMessage(org.apache.cxf.message.Message m)
throws java.io.IOException
- Throws:
java.io.IOException
getResponseBody
protected java.io.InputStream getResponseBody(org.apache.cxf.message.Message m,
MuleMessage result)
throws TransformerException,
java.io.IOException
- Throws:
TransformerException
java.io.IOException
isOneway
protected boolean isOneway(org.apache.cxf.message.Exchange exchange)
getTargetOrEndpoint
protected java.lang.String getTargetOrEndpoint()
onClose
public void onClose(org.apache.cxf.message.Message m)
throws java.io.IOException
- Throws:
java.io.IOException
processNext
protected MuleEvent processNext(MuleEvent event,
org.apache.cxf.message.Exchange exchange)
throws MuleException
- Throws:
MuleException
close
public void close()
- Specified by:
close
in interface org.apache.cxf.transport.Conduit
- Overrides:
close
in class org.apache.cxf.transport.AbstractConduit
duplicateDecoupledDestination
protected void duplicateDecoupledDestination()
releaseDecoupledDestination
protected void releaseDecoupledDestination()
getDecoupledEndpoint
public java.lang.String getDecoupledEndpoint()
setDecoupledEndpoint
public void setDecoupledEndpoint(java.lang.String decoupledEndpoint)
getTargetReference
protected static org.apache.cxf.ws.addressing.EndpointReferenceType getTargetReference(org.apache.cxf.service.model.EndpointInfo ei,
org.apache.cxf.ws.addressing.EndpointReferenceType t)
- Get the target endpoint reference.
- Parameters:
ei
- the corresponding EndpointInfot
- the given target EPR if available
- Returns:
- the actual target
setCloseInput
public void setCloseInput(boolean closeInput)
getConnector
protected CxfConfiguration getConnector()
getEndpoint
protected org.apache.cxf.service.model.EndpointInfo getEndpoint()
getTransport
protected MuleUniversalTransport getTransport()
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.