org.mule.transport.http
Class HttpClientMessageDispatcher
java.lang.Object
org.mule.transport.AbstractTransportMessageHandler
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.http.HttpClientMessageDispatcher
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor, Connectable, MessageDispatcher
- Direct Known Subclasses:
- HttpsClientMessageDispatcher
public class HttpClientMessageDispatcher
- extends AbstractMessageDispatcher
HttpClientMessageDispatcher
dispatches Mule events over HTTP.
Methods inherited from class org.mule.transport.AbstractTransportMessageHandler |
activate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection |
Methods inherited from interface org.mule.api.lifecycle.Startable |
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
stop |
ERROR_STATUS_CODE_RANGE_START
public static final int ERROR_STATUS_CODE_RANGE_START
- Range start for http error status codes.
- See Also:
- Constant Field Values
REDIRECT_STATUS_CODE_RANGE_START
public static final int REDIRECT_STATUS_CODE_RANGE_START
- See Also:
- Constant Field Values
httpConnector
protected final HttpConnector httpConnector
HttpClientMessageDispatcher
public HttpClientMessageDispatcher(OutboundEndpoint endpoint)
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractTransportMessageHandler
- Throws:
InitialisationException
doConnect
protected void doConnect()
throws Exception
- Overrides:
doConnect
in class AbstractTransportMessageHandler
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Overrides:
doDisconnect
in class AbstractTransportMessageHandler
- Throws:
Exception
doDispatch
protected void doDispatch(MuleEvent event)
throws Exception
- Specified by:
doDispatch
in class AbstractMessageDispatcher
- Throws:
Exception
execute
protected HttpMethod execute(MuleEvent event,
HttpMethod httpMethod)
throws Exception
- Throws:
Exception
processCookies
protected void processCookies(MuleEvent event)
getMethod
protected HttpMethod getMethod(MuleEvent event)
throws TransformerException
- Throws:
TransformerException
setPropertyFromEndpoint
protected void setPropertyFromEndpoint(MuleEvent event,
MuleMessage msg,
String prop)
createEntityMethod
protected HttpMethod createEntityMethod(MuleEvent event,
Object body,
EntityEnclosingMethod postMethod)
throws TransformerException
- Throws:
TransformerException
doSend
protected MuleMessage doSend(MuleEvent event)
throws Exception
- Specified by:
doSend
in class AbstractMessageDispatcher
- Throws:
Exception
handleRedirect
protected MuleMessage handleRedirect(HttpMethod method,
MuleEvent event)
throws HttpResponseException,
MuleException,
IOException
- Throws:
HttpResponseException
MuleException
IOException
getResponseFromMethod
protected MuleMessage getResponseFromMethod(HttpMethod httpMethod,
ExceptionPayload ep)
throws IOException,
MuleException
- Throws:
IOException
MuleException
returnException
protected boolean returnException(MuleEvent event,
HttpMethod httpMethod)
getHostConfig
protected HostConfiguration getHostConfig(URI uri)
throws Exception
- Throws:
Exception
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractTransportMessageHandler
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.