org.mule.transport.http
Class HttpClientMessageDispatcher
java.lang.Object
org.mule.transport.AbstractConnectable
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.AbstractConnectable |
activate, callDoStartWhenItIsConnected, connect, connectAndThenStart, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isConnecting, isDoStartMustFollowDoConnect, isDoThreading, isStarted, passivate, setEndpoint, start, stop, toString, validate, validateConnection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
connector
protected final HttpConnector connector
HttpClientMessageDispatcher
public HttpClientMessageDispatcher(OutboundEndpoint endpoint)
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractConnectable
- Throws:
InitialisationException
doConnect
protected void doConnect()
throws java.lang.Exception
- Overrides:
doConnect
in class AbstractConnectable
- Throws:
java.lang.Exception
doDisconnect
protected void doDisconnect()
throws java.lang.Exception
- Overrides:
doDisconnect
in class AbstractConnectable
- Throws:
java.lang.Exception
doDispatch
protected void doDispatch(MuleEvent event)
throws java.lang.Exception
- Specified by:
doDispatch
in class AbstractMessageDispatcher
- Throws:
java.lang.Exception
execute
protected HttpMethod execute(MuleEvent event,
HttpMethod httpMethod)
throws java.lang.Exception
- Throws:
java.lang.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,
java.lang.String prop)
createEntityMethod
protected HttpMethod createEntityMethod(MuleEvent event,
java.lang.Object body,
EntityEnclosingMethod postMethod)
throws TransformerException
- Throws:
TransformerException
doSend
protected MuleMessage doSend(MuleEvent event)
throws java.lang.Exception
- Specified by:
doSend
in class AbstractMessageDispatcher
- Throws:
java.lang.Exception
handleRedirect
protected MuleMessage handleRedirect(HttpMethod method,
MuleEvent event)
throws HttpResponseException,
MuleException,
java.io.IOException
- Throws:
HttpResponseException
MuleException
java.io.IOException
getResponseFromMethod
protected MuleMessage getResponseFromMethod(HttpMethod httpMethod,
ExceptionPayload ep)
throws java.io.IOException,
MuleException
- Throws:
java.io.IOException
MuleException
returnException
protected boolean returnException(MuleEvent event,
HttpMethod httpMethod)
getHostConfig
protected HostConfiguration getHostConfig(java.net.URI uri)
throws java.lang.Exception
- Throws:
java.lang.Exception
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractConnectable
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.