org.mule.transport.http
Class HttpClientMessageRequester
java.lang.Object
org.mule.transport.AbstractConnectable
org.mule.transport.AbstractMessageRequester
org.mule.transport.http.HttpClientMessageRequester
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, Connectable, MessageRequester, MessageRequesting
public class HttpClientMessageRequester
- extends AbstractMessageRequester
Rquests Mule events over HTTP.
Methods inherited from class org.mule.transport.AbstractConnectable |
activate, callDoStartWhenItIsConnected, connect, connectAndThenStart, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, 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 |
connector
protected final HttpConnector connector
client
protected volatile HttpClient client
receiveTransformer
protected final Transformer receiveTransformer
HttpClientMessageRequester
public HttpClientMessageRequester(InboundEndpoint endpoint)
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
doRequest
protected MuleMessage doRequest(long timeout)
throws java.lang.Exception
- Make a specific request to the underlying transport
- Specified by:
doRequest
in class AbstractMessageRequester
- Parameters:
timeout
- the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returned
- Returns:
- the result of the request wrapped in a MuleMessage object. Null will be
returned if no data was avaialable
- Throws:
java.lang.Exception
- if the call to the underlying protocal cuases an exception
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractConnectable
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.