|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.providers.tcp.TcpConnector
org.mule.providers.http.HttpConnector
HttpConnector provides a way of receiving and sending http requests
and responses. The UMOConnector itself handles dispatching http requests. The
HttpMessageReceiver handles the receiving requests and processing
of headers This endpoint recognises the following properties -
| Field Summary | |
protected org.apache.commons.httpclient.HttpConnectionManager |
clientConnectionManager
|
static String |
COOKIE_SPEC_NETSCAPE
|
static String |
COOKIE_SPEC_RFC2109
|
static String |
DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
|
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_REQUEST_PROPERTY
|
static String |
HTTP_STATUS_PROPERTY
Event property to pass back the status for the response |
static String |
HTTP_VERSION_PROPERTY
|
| Fields inherited from class org.mule.providers.tcp.TcpConnector |
DEFAULT_BACKLOG, DEFAULT_BUFFER_SIZE, DEFAULT_SOCKET_TIMEOUT, KEEP_SEND_SOCKET_OPEN_PROPERTY |
| Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, numberOfConcurrentTransactedReceivers, receivers, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
| Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
| Constructor Summary | |
HttpConnector()
|
|
| Method Summary | |
protected void |
doInitialise()
|
org.apache.commons.httpclient.HttpConnectionManager |
getClientConnectionManager()
|
String |
getCookieSpec()
|
String |
getProtocol()
|
String |
getProxyHostname()
|
String |
getProxyPassword()
|
int |
getProxyPort()
|
String |
getProxyUsername()
|
protected Object |
getReceiverKey(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map |
getReceivers()
|
boolean |
isEnableCookies()
|
org.mule.umo.provider.UMOMessageReceiver |
registerListener(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
|
void |
setClientConnectionManager(org.apache.commons.httpclient.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)
|
| Methods inherited from class org.mule.providers.tcp.TcpConnector |
doConnect, doDisconnect, doDispose, doStart, doStop, getBacklog, getBufferSize, getOutputStream, getReceiveBacklog, getReceiveBufferSize, getReceiveTimeout, getSendBufferSize, getSendSocketLinger, getSendTimeout, getServerSocket, getServerSocketFactory, getSocket, getSocketFactory, getTcpProtocol, getTcpProtocolClassName, isKeepAlive, isKeepSendSocketOpen, isRemoteSyncEnabled, isReuseAddress, isSendTcpNoDelay, isValidateConnections, setBacklog, setBufferSize, setKeepAlive, setKeepSendSocketOpen, setReceiveBacklog, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setSendBufferSize, setSendSocketLinger, setSendTcpNoDelay, setSendTimeout, setServerSocketFactory, setSocketFactory, setTcpProtocol, setTcpProtocolClassName, setTimeout, setValidateConnections |
| Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMessageAdapter, getName, getNumberOfConcurrentTransactedReceivers, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getStreamMessageAdapter, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isStarted, lookupReceiver, receive, receive, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setMaxDispatchersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, startConnector, stopConnector, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, 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_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 org.apache.commons.httpclient.HttpConnectionManager clientConnectionManager
| Constructor Detail |
public HttpConnector()
| Method Detail |
protected void doInitialise()
throws org.mule.umo.lifecycle.InitialisationException
org.mule.umo.lifecycle.InitialisationException
public org.mule.umo.provider.UMOMessageReceiver registerListener(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
throws Exception
ExceptionUMOConnector.registerListener(UMOComponent, UMOEndpoint)
protected Object getReceiverKey(org.mule.umo.UMOComponent component,
org.mule.umo.endpoint.UMOEndpoint endpoint)
component - the component for which the endpoint is being registeredendpoint - the endpoint being registered for the component
public String getProtocol()
UMOConnector.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()
public String getCookieSpec()
public void setCookieSpec(String cookieSpec)
public boolean isEnableCookies()
public void setEnableCookies(boolean enableCookies)
public org.apache.commons.httpclient.HttpConnectionManager getClientConnectionManager()
public void setClientConnectionManager(org.apache.commons.httpclient.HttpConnectionManager clientConnectionManager)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||