|
||||||||||
| 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.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
HttpProviderEndpoint()
|
|
HttpProviderEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
|
HttpProviderEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
|
|
| Method Summary | |
|---|---|
int |
getClientSoTimeout()
|
protected org.mortbay.jetty.client.HttpClient |
getConnectionPool()
|
java.lang.String |
getCredentials()
|
java.lang.String |
getLocationURI()
Returns the URI to which the endpoint sends requests. |
HttpProviderMarshaler |
getMarshaler()
|
int |
getMaxConnectionsPerAddress()
|
java.lang.String |
getPrincipal()
|
int |
getProviderExpirationTime()
|
java.lang.String |
getProxyHost()
|
java.lang.String |
getProxyPassword()
|
int |
getProxyPort()
|
java.lang.String |
getProxyUsername()
|
SslParameters |
getSsl()
|
protected void |
handle(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange)
|
protected void |
handleException(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange,
java.lang.Throwable ex)
|
boolean |
isExpectGzippedResponse()
|
boolean |
isGzipRequest()
|
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 |
setCredentials(java.lang.String credentials)
Credentials used by authentication realm. |
void |
setExpectGzippedResponse(boolean expectGzippedResponse)
If true, the accept-encoding http header will be set to gzip and the response will be un-gzipped. |
void |
setGzipRequest(boolean gzipRequest)
If true, the request content will be gzipped and sent over the wire. |
void |
setLocationURI(java.lang.String locationURI)
Sets the URI to which an endpoint sends requests. |
void |
setMarshaler(HttpProviderMarshaler marshaler)
Sets the class used to marshal messages. |
void |
setMaxConnectionsPerAddress(int maxConnectionsPerAddress)
Sets the number of the maximum connections per address that JettyClient creates for each destination. |
void |
setPrincipal(java.lang.String principal)
Principal used by authentication realm. |
void |
setProviderExpirationTime(int providerExpirationTime)
Sets the number of milliseconds the endpoint will wait to read the response. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the host name of the HTTP proxy used |
void |
setProxyPassword(java.lang.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(java.lang.String proxyUsername)
Sets the user name for the HTTP proxy authentication |
void |
setSsl(SslParameters ssl)
Sets the SSL parameters |
void |
start()
|
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 |
| 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(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
public HttpProviderEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint)
| Method Detail |
|---|
public java.lang.String getLocationURI()
public void setLocationURI(java.lang.String locationURI)
locationURI - a string representing the URIpublic HttpProviderMarshaler getMarshaler()
public void setMarshaler(HttpProviderMarshaler marshaler)
marshaler - the marshaler to setpublic java.lang.String getProxyHost()
public void setProxyHost(java.lang.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 java.lang.String getProxyUsername()
public void setProxyUsername(java.lang.String proxyUsername)
proxyUsername - the user name for the HTTP proxy authenticationpublic java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword - the password for the HTTP proxy authenticationpublic SslParameters getSsl()
public void setSsl(SslParameters ssl)
ssl - the SSL parameterspublic boolean isExpectGzippedResponse()
public void setExpectGzippedResponse(boolean expectGzippedResponse)
expectGzippedResponse - if the response should be unzippedpublic boolean isGzipRequest()
public void setGzipRequest(boolean gzipRequest)
gzipRequest - if the request should be compressed using gzippublic java.lang.String getPrincipal()
public void setPrincipal(java.lang.String principal)
Principal used by authentication realm.
principal - the principal used by authentication realm.public java.lang.String getCredentials()
public void setCredentials(java.lang.String credentials)
Credentials used by authentication realm.
credentials - the credentials used by authentication realm.
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class ProviderEndpointjava.lang.Exception
public void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exception
protected void handle(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange)
throws java.io.IOException
java.io.IOException
protected void handleException(SmxHttpExchange httpExchange,
javax.jbi.messaging.MessageExchange exchange,
java.lang.Throwable ex)
protected org.mortbay.jetty.client.HttpClient getConnectionPool()
throws java.lang.Exception
java.lang.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 requestpublic int getProviderExpirationTime()
public void setProviderExpirationTime(int providerExpirationTime)
providerExpirationTime - an int specifying the number of milliseconds to wait for a response before expiring.public int getMaxConnectionsPerAddress()
public void setMaxConnectionsPerAddress(int maxConnectionsPerAddress)
maxConnectionsPerAddress - the maxConnectionsPerAddress to set
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||