|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.http.endpoints.HttpProviderEndpoint
public class HttpProviderEndpoint
A plain HTTP provider. This type of endpoint can be used to send non-SOAP requests to HTTP endpoints.
| Nested Class Summary | |
|---|---|
protected class |
HttpProviderEndpoint.Exchange
|
protected class |
HttpProviderEndpoint.SSLManagedHttpClient
|
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
HttpProviderEndpoint()
|
|
HttpProviderEndpoint(org.apache.servicemix.common.DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
|
HttpProviderEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
QName service,
String endpoint)
|
|
| Method Summary | |
|---|---|
int |
getClientSoTimeout()
|
protected org.mortbay.jetty.client.HttpClient |
getConnectionPool()
|
String |
getLocationURI()
Returns the URI to which the endpoint sends requests. |
HttpProviderMarshaler |
getMarshaler()
|
String |
getProxyHost()
|
String |
getProxyPassword()
|
int |
getProxyPort()
|
String |
getProxyUsername()
|
SslParameters |
getSsl()
|
protected void |
handle(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange)
|
protected void |
handleException(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange,
Throwable ex)
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
setClientSoTimeout(int clientTimeout)
Sets the number of milliseconds the endpoint will block while attempting to read a request. |
void |
setLocationURI(String locationURI)
Sets the URI to which an endpoint sends requests. |
void |
setMarshaler(HttpProviderMarshaler marshaler)
Sets the class used to marshal messages. |
void |
setProxyHost(String proxyHost)
Sets the host name of the HTTP proxy used |
void |
setProxyPassword(String proxyPassword)
Sets the password for the HTTP proxy authentication |
void |
setProxyPort(int proxyPort)
Sets the host port of the HTTP proxy used (defaults to 80) |
void |
setProxyUsername(String proxyUsername)
Sets the user name for the HTTP proxy authentication |
void |
setSsl(SslParameters ssl)
Sets the SSL parameters |
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, processInOnly, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpProviderEndpoint()
public HttpProviderEndpoint(org.apache.servicemix.common.DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
public HttpProviderEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
QName service,
String endpoint)
| Method Detail |
|---|
public String getLocationURI()
public void setLocationURI(String locationURI)
locationURI - a string representing the URIpublic HttpProviderMarshaler getMarshaler()
public void setMarshaler(HttpProviderMarshaler marshaler)
marshaler - the marshaler to setpublic String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - the host name of the HTTP proxypublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - the host name of the HTTP proxypublic String getProxyUsername()
public void setProxyUsername(String proxyUsername)
proxyUsername - the user name for the HTTP proxy authenticationpublic String getProxyPassword()
public void setProxyPassword(String proxyPassword)
proxyPassword - the password for the HTTP proxy authenticationpublic SslParameters getSsl()
public void setSsl(SslParameters ssl)
ssl - the SSL parameters
public void process(javax.jbi.messaging.MessageExchange exchange)
throws Exception
process in interface org.apache.servicemix.common.Endpointprocess in class org.apache.servicemix.common.endpoints.ProviderEndpointException
public void stop()
throws Exception
stop in interface org.apache.servicemix.common.Endpointstop in class org.apache.servicemix.common.endpoints.SimpleEndpointException
protected void handle(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange)
throws IOException
IOException
protected void handleException(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange,
Throwable ex)
protected org.mortbay.jetty.client.HttpClient getConnectionPool()
throws Exception
Exceptionpublic int getClientSoTimeout()
public void setClientSoTimeout(int clientTimeout)
clientTimeout - an int specifying the number of milliseconds the socket will block while attempting to read a request
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface org.apache.servicemix.common.Endpointvalidate in class org.apache.servicemix.common.endpoints.AbstractEndpointjavax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||