|
||||||||||
| 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 -
| Fields inherited from class org.mule.transport.tcp.TcpConnector |
|---|
CLIENT, DEFAULT_BACKLOG, DEFAULT_BUFFER_SIZE, DEFAULT_SO_LINGER, DEFAULT_SOCKET_TIMEOUT, DEFAULT_WAIT_TIMEOUT, KEEP_SEND_SOCKET_OPEN_PROPERTY, SERVER, TCP |
| Fields inherited from class org.mule.transport.AbstractConnector |
|---|
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect |
| Fields inherited from interface org.mule.api.transport.Connector |
|---|
INT_VALUE_NOT_SET |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
HttpConnector(org.mule.api.MuleContext context)
|
|
| 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.construct.FlowConstruct flowConstruct,
org.mule.api.endpoint.InboundEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map |
getReceivers()
|
boolean |
isEnableCookies()
|
boolean |
isProxyNtlmAuthentication()
|
static String |
normalizeUrl(String url)
Ensures that the supplied URL starts with a '/'. |
void |
registerListener(org.mule.api.endpoint.InboundEndpoint endpoint,
org.mule.api.processor.MessageProcessor listener,
org.mule.api.construct.FlowConstruct flowConstruct)
|
void |
setClientConnectionManager(HttpConnectionManager clientConnectionManager)
|
void |
setCookieSpec(String cookieSpec)
|
void |
setEnableCookies(boolean enableCookies)
|
void |
setProxyHostname(String host)
|
void |
setProxyNtlmAuthentication(boolean proxyNtlmAuthentication)
|
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, getDispatchers, getKeepAliveMonitor, getKeepAliveTimeout, getOutputStream, getReceiveBacklog, getReceiveBufferSize, getSendBufferSize, getServerSocket, getServerSocketFactory, getServerSoTimeout, getSocket, getSocketFactory, getSocketMaxWait, getSocketSoLinger, getSocketsPoolMaxActive, getSocketsPoolMaxIdle, getSocketsPoolMaxWait, getSocketsPoolNumActive, getTcpProtocol, isKeepAlive, isKeepSendSocketOpen, isResponseEnabled, isReuseAddress, isSendTcpNoDelay, setBacklog, setBufferSize, setClientSoTimeout, setDispatcherFactory, setKeepAlive, setKeepAliveTimeout, setKeepSendSocketOpen, setReceiveBacklog, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSendTcpNoDelay, setServerSocketFactory, setServerSoTimeout, setSocketFactory, setSocketMaxWait, setSocketSoLinger, setTcpProtocol, setTimeout |
| Methods inherited from class org.mule.transport.AbstractConnector |
|---|
clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDispatcherMessageProcessor, createMuleMessageFactory, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, 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
@Deprecated 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_REQUEST_PATH_PROPERTY
public static final String HTTP_CONTEXT_PATH_PROPERTY
public static final String HTTP_SERVLET_REQUEST_PROPERTY
public static final String HTTP_SERVLET_RESPONSE_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_DISABLE_STATUS_CODE_EXCEPTION_CHECK
public static final String HTTP_ENCODE_PARAMVALUE
public static final Set<String> HTTP_INBOUND_PROPERTIES
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(org.mule.api.MuleContext context)
| Method Detail |
|---|
protected void doInitialise()
throws org.mule.api.lifecycle.InitialisationException
doInitialise in class org.mule.transport.tcp.TcpConnectororg.mule.api.lifecycle.InitialisationException
public void registerListener(org.mule.api.endpoint.InboundEndpoint endpoint,
org.mule.api.processor.MessageProcessor listener,
org.mule.api.construct.FlowConstruct flowConstruct)
throws Exception
registerListener in interface org.mule.api.transport.ConnectorregisterListener in class org.mule.transport.AbstractConnectorException
protected Object getReceiverKey(org.mule.api.construct.FlowConstruct flowConstruct,
org.mule.api.endpoint.InboundEndpoint endpoint)
getReceiverKey in class org.mule.transport.AbstractConnectorendpoint - 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)
public void setProxyPassword(String string)
public void setProxyPort(int port)
public void setProxyUsername(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
UnsupportedEncodingExceptionpublic static String normalizeUrl(String url)
public boolean isProxyNtlmAuthentication()
public void setProxyNtlmAuthentication(boolean proxyNtlmAuthentication)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||