|
|||||||||||
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 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(UMOComponent component,
UMOEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map |
getReceivers()
Getter for property 'receivers'. |
boolean |
isEnableCookies()
|
UMOMessageReceiver |
registerListener(UMOComponent component,
UMOEndpoint endpoint)
This creates a UMOMessageReceiver associated with this endpoint
and registers it with the connector. |
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 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 InitialisationException
doInitialise
in class TcpConnector
InitialisationException
public UMOMessageReceiver registerListener(UMOComponent component, UMOEndpoint endpoint) throws Exception
AbstractConnector
UMOMessageReceiver
associated with this endpoint
and registers it with the connector.
registerListener
in interface UMOConnector
registerListener
in class AbstractConnector
Exception
UMOConnector.registerListener(UMOComponent, UMOEndpoint)
protected Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint)
getReceiverKey
in class AbstractConnector
component
- the component for which the endpoint is being registeredendpoint
- the endpoint being registered for the component
public String getProtocol()
getProtocol
in interface UMOConnector
getProtocol
in class TcpConnector
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()
AbstractConnector
getReceivers
in class AbstractConnector
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 |