public class HttpClientMessageDispatcher
extends org.mule.transport.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, defaultResponseTransformersconnected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate| Constructor and Description |
|---|
HttpClientMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpMethod |
createEntityMethod(org.mule.api.MuleEvent event,
Object body,
org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod) |
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispatch(org.mule.api.MuleEvent event) |
protected void |
doDispose() |
protected void |
doInitialise() |
protected org.mule.api.MuleMessage |
doSend(org.mule.api.MuleEvent event) |
protected org.apache.commons.httpclient.HttpMethod |
execute(org.mule.api.MuleEvent event,
org.apache.commons.httpclient.HttpMethod httpMethod) |
protected org.apache.commons.httpclient.HostConfiguration |
getHostConfig(URI uri) |
protected org.apache.commons.httpclient.HttpMethod |
getMethod(org.mule.api.MuleEvent event) |
protected org.mule.api.MuleMessage |
getResponseFromMethod(org.apache.commons.httpclient.HttpMethod httpMethod,
org.mule.api.ExceptionPayload ep) |
protected org.mule.api.MuleMessage |
handleRedirect(org.apache.commons.httpclient.HttpMethod method,
org.mule.api.MuleEvent event) |
protected void |
processCookies(org.mule.api.MuleEvent event) |
protected boolean |
returnException(org.mule.api.MuleEvent event,
org.apache.commons.httpclient.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(org.mule.api.MuleEvent event,
org.mule.api.MuleMessage msg,
String prop) |
applyOutboundTransformers, applyResponseTransformers, createLifecycleManager, getDispatcherName, getEndpoint, getWorkManager, process, returnResponse, returnResponseactivate, 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, validateConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, createMuleMessage, createMuleMessage, getConnector, passivate, validatepublic static final int ERROR_STATUS_CODE_RANGE_START
public static final int REDIRECT_STATUS_CODE_RANGE_START
protected final HttpConnector httpConnector
public HttpClientMessageDispatcher(org.mule.api.endpoint.OutboundEndpoint endpoint)
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.transport.AbstractTransportMessageHandlerorg.mule.api.lifecycle.InitialisationExceptionprotected void doConnect()
throws Exception
doConnect in class org.mule.transport.AbstractTransportMessageHandlerExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class org.mule.transport.AbstractTransportMessageHandlerExceptionprotected void doDispatch(org.mule.api.MuleEvent event)
throws Exception
doDispatch in class org.mule.transport.AbstractMessageDispatcherExceptionprotected org.apache.commons.httpclient.HttpMethod execute(org.mule.api.MuleEvent event,
org.apache.commons.httpclient.HttpMethod httpMethod)
throws Exception
Exceptionprotected void processCookies(org.mule.api.MuleEvent event)
protected org.apache.commons.httpclient.HttpMethod getMethod(org.mule.api.MuleEvent event)
throws org.mule.api.transformer.TransformerException
org.mule.api.transformer.TransformerExceptionprotected void setPropertyFromEndpoint(org.mule.api.MuleEvent event,
org.mule.api.MuleMessage msg,
String prop)
protected org.apache.commons.httpclient.HttpMethod createEntityMethod(org.mule.api.MuleEvent event,
Object body,
org.apache.commons.httpclient.methods.EntityEnclosingMethod postMethod)
throws org.mule.api.transformer.TransformerException
org.mule.api.transformer.TransformerExceptionprotected org.mule.api.MuleMessage doSend(org.mule.api.MuleEvent event)
throws Exception
doSend in class org.mule.transport.AbstractMessageDispatcherExceptionprotected org.mule.api.MuleMessage handleRedirect(org.apache.commons.httpclient.HttpMethod method,
org.mule.api.MuleEvent event)
throws HttpResponseException,
org.mule.api.MuleException,
IOException
HttpResponseExceptionorg.mule.api.MuleExceptionIOExceptionprotected org.mule.api.MuleMessage getResponseFromMethod(org.apache.commons.httpclient.HttpMethod httpMethod,
org.mule.api.ExceptionPayload ep)
throws IOException,
org.mule.api.MuleException
IOExceptionorg.mule.api.MuleExceptionprotected boolean returnException(org.mule.api.MuleEvent event,
org.apache.commons.httpclient.HttpMethod httpMethod)
protected org.apache.commons.httpclient.HostConfiguration getHostConfig(URI uri) throws Exception
Exceptionprotected void doDispose()
doDispose in class org.mule.transport.AbstractTransportMessageHandlerCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.