|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractConnector
org.mule.transport.tcp.TcpConnector
org.mule.transport.http.HttpConnector
public class HttpConnector
HttpConnector provides a way of receiving and sending http requests
and responses. The Connector itself handles dispatching http requests. The
HttpMessageReceiver handles the receiving requests and processing
of headers This endpoint recognises the following properties -
| Field Summary | |
|---|---|
protected HttpConnectionManager |
clientConnectionManager
|
static String |
COOKIE_SPEC_NETSCAPE
|
static String |
COOKIE_SPEC_RFC2109
|
static String |
DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
|
static String |
HTTP
|
static String |
HTTP_COOKIE_SPEC_PROPERTY
|
static String |
HTTP_COOKIES_PROPERTY
|
static String |
HTTP_CUSTOM_HEADERS_MAP_PROPERTY
|
static String |
HTTP_ENABLE_COOKIES_PROPERTY
|
static String |
HTTP_GET_BODY_PARAM_PROPERTY
|
static String |
HTTP_METHOD_PROPERTY
|
static String |
HTTP_PARAMS_PROPERTY
Allows the user to set a HttpMethodParams object in the client
request to be set on the HttpMethod request object |
static String |
HTTP_POST_BODY_PARAM_PROPERTY
|
static String |
HTTP_PREFIX
|
static String |
HTTP_REQUEST_PROPERTY
|
static String |
HTTP_STATUS_PROPERTY
MuleEvent property to pass back the status for the response |
static String |
HTTP_VERSION_PROPERTY
|
| Fields inherited from class org.mule.transport.tcp.TcpConnector |
|---|
CLIENT, DEFAULT_BACKLOG, DEFAULT_BUFFER_SIZE, DEFAULT_SO_LINGER, DEFAULT_SOCKET_TIMEOUT, KEEP_SEND_SOCKET_OPEN_PROPERTY, SERVER, TCP |
| Fields inherited from class org.mule.transport.AbstractConnector |
|---|
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
| Fields inherited from interface org.mule.api.transport.Connector |
|---|
INT_VALUE_NOT_SET |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Stoppable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
HttpConnector()
|
|
| Method Summary | |
|---|---|
protected HttpClient |
doClientConnect()
|
protected void |
doInitialise()
|
HttpConnectionManager |
getClientConnectionManager()
|
String |
getCookieSpec()
|
String |
getProtocol()
|
String |
getProxyHostname()
|
String |
getProxyPassword()
|
int |
getProxyPort()
|
String |
getProxyUsername()
|
protected Object |
getReceiverKey(org.mule.api.service.Service service,
org.mule.api.endpoint.InboundEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map |
getReceivers()
|
boolean |
isEnableCookies()
|
org.mule.api.transport.MessageReceiver |
registerListener(org.mule.api.service.Service service,
org.mule.api.endpoint.InboundEndpoint endpoint)
|
void |
setClientConnectionManager(HttpConnectionManager clientConnectionManager)
|
void |
setCookieSpec(String cookieSpec)
|
void |
setEnableCookies(boolean enableCookies)
|
void |
setProxyHostname(String host)
|
void |
setProxyPassword(String string)
|
void |
setProxyPort(int port)
|
void |
setProxyUsername(String string)
|
protected void |
setupClientAuthorization(org.mule.api.MuleEvent event,
HttpMethod httpMethod,
HttpClient client,
org.mule.api.endpoint.ImmutableEndpoint endpoint)
|
| Methods inherited from class org.mule.transport.tcp.TcpConnector |
|---|
configureSocket, doConnect, doDisconnect, doDispose, doStart, doStop, getBacklog, getBufferSize, getClientSoTimeout, getOutputStream, getReceiveBacklog, getReceiveBufferSize, getSendBufferSize, getServerSocket, getServerSocketFactory, getServerSoTimeout, getSocket, getSocketFactory, getSocketSoLinger, getTcpProtocol, isKeepAlive, isKeepSendSocketOpen, isRemoteSyncEnabled, isReuseAddress, isSendTcpNoDelay, isValidateConnections, setBacklog, setBufferSize, setClientSoTimeout, setKeepAlive, setKeepSendSocketOpen, setReceiveBacklog, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSendTcpNoDelay, setServerSocketFactory, setServerSoTimeout, setSocketFactory, setSocketSoLinger, setTcpProtocol, setTimeout, setValidateConnections |
| Methods inherited from class org.mule.transport.AbstractConnector |
|---|
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isStarted, isSyncEnabled, lookupReceiver, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String HTTP
public static final String HTTP_PREFIX
public static final String HTTP_STATUS_PROPERTY
public static final String HTTP_VERSION_PROPERTY
public static final String HTTP_CUSTOM_HEADERS_MAP_PROPERTY
public static final String HTTP_METHOD_PROPERTY
public static final String HTTP_REQUEST_PROPERTY
public static final String HTTP_PARAMS_PROPERTY
HttpMethodParams object in the client
request to be set on the HttpMethod request object
public static final String HTTP_GET_BODY_PARAM_PROPERTY
public static final String DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
public static final String HTTP_POST_BODY_PARAM_PROPERTY
public static final String HTTP_COOKIE_SPEC_PROPERTY
public static final String HTTP_COOKIES_PROPERTY
public static final String HTTP_ENABLE_COOKIES_PROPERTY
public static final String COOKIE_SPEC_NETSCAPE
public static final String COOKIE_SPEC_RFC2109
protected HttpConnectionManager clientConnectionManager
| Constructor Detail |
|---|
public HttpConnector()
| Method Detail |
|---|
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.transport.tcp.TcpConnectororg.mule.api.lifecycle.InitialisationException
public org.mule.api.transport.MessageReceiver registerListener(org.mule.api.service.Service service,
org.mule.api.endpoint.InboundEndpoint endpoint)
throws Exception
registerListener in interface org.mule.api.transport.ConnectorregisterListener in class org.mule.transport.AbstractConnectorExceptionConnector#registerListener(Service, Endpoint)
protected Object getReceiverKey(org.mule.api.service.Service service,
org.mule.api.endpoint.InboundEndpoint endpoint)
getReceiverKey in class org.mule.transport.AbstractConnectorservice - the service for which the endpoint is being registeredendpoint - the endpoint being registered for the service
public String getProtocol()
getProtocol in interface org.mule.api.transport.ConnectorgetProtocol in class org.mule.transport.tcp.TcpConnectorConnector.getProtocol()public String getProxyHostname()
public String getProxyPassword()
public int getProxyPort()
public String getProxyUsername()
public void setProxyHostname(String host)
host - public void setProxyPassword(String string)
string - public void setProxyPort(int port)
port - public void setProxyUsername(String string)
string - public Map getReceivers()
getReceivers in class org.mule.transport.AbstractConnectorpublic String getCookieSpec()
public void setCookieSpec(String cookieSpec)
public boolean isEnableCookies()
public void setEnableCookies(boolean enableCookies)
public HttpConnectionManager getClientConnectionManager()
public void setClientConnectionManager(HttpConnectionManager clientConnectionManager)
protected HttpClient doClientConnect()
throws Exception
Exception
protected void setupClientAuthorization(org.mule.api.MuleEvent event,
HttpMethod httpMethod,
HttpClient client,
org.mule.api.endpoint.ImmutableEndpoint endpoint)
throws UnsupportedEncodingException
UnsupportedEncodingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||