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, java.beans.ExceptionListener, Initialisable, Startable, Stoppable, UMOConnector
- Direct Known Subclasses:
- HttpsConnector
- 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: 1.3 $
- Author:
- Ross Mason
Fields inherited from class org.mule.providers.AbstractConnector |
DEFAULT_RETRY_COUNT, DEFAULT_RETRY_FREQUENCY, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, exceptionStrategy, initialised, logger, name, receivers, started |
Methods inherited from class org.mule.providers.AbstractConnector |
createDispatcher, destroyReceiver, dispose, disposeConnector, exceptionThrown, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcher, getDispatcherFactory, getDispatcherThreadingProfile, getExceptionStrategy, getName, getReceiverKey, getReceiverThreadingProfile, getReplyToHandler, getRetryCount, getRetryFrequency, handleException, initialise, isDisposed, isDisposeDispatcherOnCompletion, isStarted, registerListener, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setDisposeDispatcherOnCompletion, setExceptionStrategy, setName, setReceiverThreadingProfile, setRetryCount, setRetryFrequency, start, startConnector, stop, stopConnector, unregisterListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP_STATUS_PROPERTY
public static final java.lang.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 java.lang.String HTTP_VERSION_PROPERTY
- See Also:
- Constant Field Values
HTTP_CUSTOM_HEADERS_MAP_PROPERTY
public static final java.lang.String HTTP_CUSTOM_HEADERS_MAP_PROPERTY
- See Also:
- Constant Field Values
HTTP_METHOD_PROPERTY
public static final java.lang.String HTTP_METHOD_PROPERTY
- See Also:
- Constant Field Values
HTTP_REQUEST_PROPERTY
public static final java.lang.String HTTP_REQUEST_PROPERTY
- See Also:
- Constant Field Values
HTTP_PARAMS
public static final java.lang.String HTTP_PARAMS
- See Also:
- Constant Field Values
HTTP_GET_BODY_PARAM_PROPERTY
public static final java.lang.String HTTP_GET_BODY_PARAM_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
public static final java.lang.String DEFAULT_HTTP_GET_BODY_PARAM_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
DEFAULT_HTTP_VERSION
public static java.lang.String DEFAULT_HTTP_VERSION
HttpConnector
public HttpConnector()
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in interface UMOConnector
- Overrides:
getProtocol
in class TcpConnector
getProxyHostname
public java.lang.String getProxyHostname()
- Returns:
getProxyPassword
public java.lang.String getProxyPassword()
- Returns:
getProxyPort
public int getProxyPort()
- Returns:
getProxyUsername
public java.lang.String getProxyUsername()
- Returns:
setProxyHostname
public void setProxyHostname(java.lang.String host)
- Parameters:
host
-
setProxyPassword
public void setProxyPassword(java.lang.String string)
- Parameters:
string
-
setProxyPort
public void setProxyPort(int port)
- Parameters:
port
-
setProxyUsername
public void setProxyUsername(java.lang.String string)
- Parameters:
string
-
getKeepAliveTimeout
public long getKeepAliveTimeout()
setKeepAliveTimeout
public void setKeepAliveTimeout(long keepAliveTimeout)
isKeepAlive
public boolean isKeepAlive()
setKeepAlive
public void setKeepAlive(boolean keepAlive)
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.