public class HttpProviderEndpoint extends ProviderEndpoint implements HttpEndpointType
| Modifier and Type | Class and Description |
|---|---|
protected class |
HttpProviderEndpoint.Exchange |
protected class |
HttpProviderEndpoint.SSLManagedHttpClient |
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
HttpProviderEndpoint() |
HttpProviderEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint) |
HttpProviderEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
int |
getClientConnectTimeout() |
protected org.eclipse.jetty.client.HttpClient |
getConnectionPool() |
java.lang.String |
getCredentials() |
HttpProviderListener |
getListener() |
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 |
setClientConnectTimeout(int clientConnectTimeout)
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 |
setListener(HttpProviderListener listener)
Sets the class used to marshal messages.
|
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() |
activate, deactivate, getRole, processInOnly, processInOutdone, fail, getChannel, getContext, getExchangeFactory, send, sendSyncgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toStringpublic HttpProviderEndpoint()
public HttpProviderEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
public HttpProviderEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
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 HttpProviderListener getListener()
public void setListener(HttpProviderListener listener)
listener - 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.Exceptionpublic void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
stop in interface Endpointstop in class SimpleEndpointjava.lang.Exceptionprotected void handle(SmxHttpExchange httpExchange, javax.jbi.messaging.MessageExchange exchange) throws java.io.IOException
java.io.IOExceptionprotected void handleException(SmxHttpExchange httpExchange, javax.jbi.messaging.MessageExchange exchange, java.lang.Throwable ex)
protected org.eclipse.jetty.client.HttpClient getConnectionPool()
throws java.lang.Exception
java.lang.Exceptionpublic int getClientConnectTimeout()
public void setClientConnectTimeout(int clientConnectTimeout)
clientConnectTimeout - 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 setpublic void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.