org.mule.providers.http
Class HttpConnector
java.lang.Object
org.mule.providers.AbstractConnector
org.mule.providers.AbstractServiceEnabledConnector
org.mule.providers.tcp.TcpConnector
org.mule.providers.http.HttpConnector
- All Implemented Interfaces:
- Disposable, ExceptionListener, Initialisable, UMOConnectable, UMOConnector
- Direct Known Subclasses:
- HttpsConnector, JettyConnector
- public class HttpConnector
- extends TcpConnector
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 -
- hostname - The hostname to send and receive http requests
- port - The port to listen on. The industry standard is 80 and if this propert
is not set it will default to 80
- proxyHostname - If you access the web through a proxy, this holds the server
address
- proxyPort - The port the proxy is configured on
- proxyUsername - If the proxy requires authentication supply a username
- proxyPassword - If the proxy requires authentication supply a password
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
| Fields inherited from class org.mule.providers.tcp.TcpConnector |
backlog, bufferSize, DEFAULT_BACKLOG, DEFAULT_BUFFER_SIZE, DEFAULT_SOCKET_TIMEOUT, keepAlive, keepSendSocketOpen, receiveTimeout, sendTimeout, tcpProtocol, tcpProtocolClassName |
| Fields inherited from class org.mule.providers.AbstractConnector |
connected, connecting, createDispatcherPerRequest, createMultipleTransactedReceivers, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, receivers, serverSide, sessionHandler, started, startOnConnect |
| Methods inherited from class org.mule.providers.tcp.TcpConnector |
doInitialise, getBacklog, getBufferSize, getReceiveTimeout, getSendTimeout, getTcpProtocol, getTcpProtocolClassName, isKeepAlive, isKeepSendSocketOpen, isRemoteSyncEnabled, setBacklog, setBufferSize, setKeepAlive, setReceiveTimeout, setSendTimeout, setTcpProtocol, setTcpProtocolClassName, setTimeout |
| Methods inherited from class org.mule.providers.AbstractConnector |
checkDisposed, connect, createDispatcher, destroyReceiver, disconnect, dispose, disposeDispatchers, disposeReceivers, doConnect, doDisconnect, doDispose, doStart, doStop, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcher, getDispatcherFactory, getDispatchers, getDispatcherThreadingProfile, getExceptionListener, getName, getReceiver, getReceiver, getReceivers, getReceiverThreadingProfile, getReplyToHandler, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initialise, isConnected, isCreateDispatcherPerRequest, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isServerSide, isStarted, isUseSingleDispatcherThreadPool, isUseSingleReceiverThreadPool, lookupDispatcher, lookupReceiver, registerSupportedProtocol, registerSupportedProtocolWithotPrefix, setConnectionStrategy, setCreateDispatcherPerRequest, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setName, setReceiverThreadingProfile, setServerSide, setSessionHandler, setSupportedProtocols, setUseSingleDispatcherThreadPool, setUseSingleReceiverThreadPool, startConnector, stopConnector, supportsProtocol, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP_STATUS_PROPERTY
public static final String HTTP_STATUS_PROPERTY
- Event property to pass back the status for the response
- See Also:
- Constant Field Values
HTTP_VERSION_PROPERTY
public static final String HTTP_VERSION_PROPERTY
- See Also:
- Constant Field Values
HTTP_CUSTOM_HEADERS_MAP_PROPERTY
public static final String HTTP_CUSTOM_HEADERS_MAP_PROPERTY
- See Also:
- Constant Field Values
HTTP_METHOD_PROPERTY
public static final String HTTP_METHOD_PROPERTY
- See Also:
- Constant Field Values
HTTP_REQUEST_PROPERTY
public static final String HTTP_REQUEST_PROPERTY
- See Also:
- Constant Field Values
HTTP_PARAMS
public static final String HTTP_PARAMS
- See Also:
- Constant Field Values
HTTP_GET_BODY_PARAM_PROPERTY
public static final String HTTP_GET_BODY_PARAM_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
public static final String DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
- See Also:
- Constant Field Values
HTTP_POST_BODY_PARAM_PROPERTY
public static final String HTTP_POST_BODY_PARAM_PROPERTY
- See Also:
- Constant Field Values
HTTP_COOKIE_SPEC_PROPERTY
public static final String HTTP_COOKIE_SPEC_PROPERTY
- See Also:
- Constant Field Values
HTTP_COOKIES_PROPERTY
public static final String HTTP_COOKIES_PROPERTY
- See Also:
- Constant Field Values
HTTP_ENABLE_COOKIES_PROPERTY
public static final String HTTP_ENABLE_COOKIES_PROPERTY
- See Also:
- Constant Field Values
COOKIE_SPEC_NETSCAPE
public static final String COOKIE_SPEC_NETSCAPE
- See Also:
- Constant Field Values
COOKIE_SPEC_RFC2109
public static final String COOKIE_SPEC_RFC2109
- See Also:
- Constant Field Values
HttpConnector
public HttpConnector()
registerListener
public UMOMessageReceiver registerListener(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
- Description copied from interface:
UMOConnector
- This creates a
UMOMessageReceiver associated with this endpoint
and registers it with the connector
- Specified by:
registerListener in interface UMOConnector- Overrides:
registerListener in class AbstractConnector
- Throws:
Exception- See Also:
UMOConnector.registerListener(UMOComponent, UMOEndpoint)
getReceiverKey
protected Object getReceiverKey(UMOComponent component,
UMOEndpoint endpoint)
- The method determines the key used to store the receiver against.
- Overrides:
getReceiverKey in class AbstractConnector
- Parameters:
component - the component for which the endpoint is being registeredendpoint - the endpoint being registered for the component
- Returns:
- the key to store the newly created receiver against
getProtocol
public String getProtocol()
- Specified by:
getProtocol in interface UMOConnector- Overrides:
getProtocol in class TcpConnector
- See Also:
UMOConnector.getProtocol()
getProxyHostname
public String getProxyHostname()
- Returns:
getProxyPassword
public String getProxyPassword()
- Returns:
getProxyPort
public int getProxyPort()
- Returns:
getProxyUsername
public String getProxyUsername()
- Returns:
setProxyHostname
public void setProxyHostname(String host)
- Parameters:
host -
setProxyPassword
public void setProxyPassword(String string)
- Parameters:
string -
setProxyPort
public void setProxyPort(int port)
- Parameters:
port -
setProxyUsername
public void setProxyUsername(String string)
- Parameters:
string -
getReceivers
public Map getReceivers()
- Overrides:
getReceivers in class AbstractConnector
getCookieSpec
public String getCookieSpec()
setCookieSpec
public void setCookieSpec(String cookieSpec)
isEnableCookies
public boolean isEnableCookies()
setEnableCookies
public void setEnableCookies(boolean enableCookies)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.