public class HttpClientMessageDispatcher extends AbstractMessageDispatcher
HttpClientMessageDispatcher
dispatches Mule events over HTTP.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_STATUS_CODE_RANGE_START
Range start for http error status codes.
|
protected HttpConnector |
httpConnector |
static int |
REDIRECT_STATUS_CODE_RANGE_START |
defaultOutboundTransformers, defaultResponseTransformers
connected, connector, defaultMessageInfoMapping, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
HttpClientMessageDispatcher(OutboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected HttpMethod |
createEntityMethod(MuleEvent event,
Object body,
EntityEnclosingMethod postMethod) |
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispatch(MuleEvent event) |
protected void |
doDispose() |
protected void |
doInitialise() |
protected MuleMessage |
doSend(MuleEvent event) |
protected HttpMethod |
execute(MuleEvent event,
HttpMethod httpMethod) |
protected HostConfiguration |
getHostConfig(URI uri) |
protected HttpMethod |
getMethod(MuleEvent event) |
protected MuleMessage |
getResponseFromMethod(HttpMethod httpMethod,
ExceptionPayload ep) |
protected MuleMessage |
handleRedirect(HttpMethod method,
MuleEvent event) |
protected void |
processCookies(MuleEvent event) |
protected boolean |
returnException(MuleEvent event,
HttpMethod httpMethod)
An exception is thrown if http.status >= 400 and exceptions are not disabled
through one of the following mechanisms in order of precedence:
- setting to true the flow variable "http.disable.status.code.exception.check"
- setting to true the outbound property "http.disable.status.code.exception.check"
- setting to false the outbound endpoint attribute "exceptionOnMessageError"
|
protected void |
setPropertyFromEndpoint(MuleEvent event,
MuleMessage msg,
String prop) |
applyOutboundTransformers, applyResponseTransformers, createLifecycleManager, doSendNonBlocking, getDispatcherName, getEndpoint, getWorkManager, isSupportsNonBlocking, process, returnResponse, returnResponse
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, createMuleMessage, createMuleMessage, getConnector, passivate, validate
connect, disconnect, getConnectionDescription, isConnected, validateConnection
initialise
dispose
getLifecycleState
public static final int ERROR_STATUS_CODE_RANGE_START
public static final int REDIRECT_STATUS_CODE_RANGE_START
protected final HttpConnector httpConnector
public HttpClientMessageDispatcher(OutboundEndpoint endpoint)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractTransportMessageHandler
InitialisationException
protected void doConnect() throws Exception
doConnect
in class AbstractTransportMessageHandler
Exception
protected void doDisconnect() throws Exception
doDisconnect
in class AbstractTransportMessageHandler
Exception
protected void doDispatch(MuleEvent event) throws Exception
doDispatch
in class AbstractMessageDispatcher
Exception
protected HttpMethod execute(MuleEvent event, HttpMethod httpMethod) throws Exception
Exception
protected void processCookies(MuleEvent event)
protected HttpMethod getMethod(MuleEvent event) throws TransformerException
TransformerException
protected void setPropertyFromEndpoint(MuleEvent event, MuleMessage msg, String prop)
protected HttpMethod createEntityMethod(MuleEvent event, Object body, EntityEnclosingMethod postMethod) throws TransformerException
TransformerException
protected MuleMessage doSend(MuleEvent event) throws Exception
doSend
in class AbstractMessageDispatcher
Exception
protected MuleMessage handleRedirect(HttpMethod method, MuleEvent event) throws HttpResponseException, MuleException, IOException
protected MuleMessage getResponseFromMethod(HttpMethod httpMethod, ExceptionPayload ep) throws IOException, MuleException
IOException
MuleException
protected boolean returnException(MuleEvent event, HttpMethod httpMethod)
protected HostConfiguration getHostConfig(URI uri) throws Exception
Exception
protected void doDispose()
doDispose
in class AbstractTransportMessageHandler
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.