public class HttpEndpoint extends SoapEndpoint implements HttpEndpointType
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
authMethod |
protected BasicAuthCredentials |
basicAuthentication |
protected javax.wsdl.extensions.ExtensibilityElement |
binding |
protected java.lang.String |
lateResponseStrategy |
protected java.lang.String |
locationURI |
protected ProxyParameters |
proxy |
protected boolean |
responseContentTypeCheck |
protected java.lang.String |
soapAction |
protected SslParameters |
ssl |
protected boolean |
supportAllHttpMethods |
protected boolean |
synchronous |
protected int |
timeout |
protected boolean |
wantContentTypeHeaderFromExchangeIntoHttpRequest |
activated, defaultMep, defaultOperation, dynamic, policies, processor, role, soap, soapVersion, targetEndpoint, targetInterfaceName, targetService, wsdlResource, wsdlsdefinition, description, endpoint, interfaceName, logger, service, serviceUnit| Constructor and Description |
|---|
HttpEndpoint() |
HttpEndpoint(boolean dynamic) |
| Modifier and Type | Method and Description |
|---|---|
protected SoapExchangeProcessor |
createConsumerProcessor() |
protected javax.jbi.servicedesc.ServiceEndpoint |
createExternalEndpoint() |
protected SoapExchangeProcessor |
createProviderProcessor() |
protected javax.jbi.management.DeploymentException |
failure(java.lang.String task,
java.lang.String info,
java.lang.Throwable e) |
AuthenticationService |
getAuthenticationService() |
java.lang.String |
getAuthMethod()
Returns a string describing the authentication scheme being used by an endpoint.
|
BasicAuthCredentials |
getBasicAuthentication()
Gets the authentication data used for provider endpoints using basic authentication.
|
javax.wsdl.extensions.ExtensibilityElement |
getBinding() |
KeystoreManager |
getKeystoreManager() |
java.lang.String |
getLateResponseStrategy() |
java.lang.String |
getLocationURI()
Returns the URI to which the endpoint sends requests.
|
ProxyParameters |
getProxy() |
java.lang.String |
getSoapAction() |
SslParameters |
getSsl() |
protected javax.wsdl.PortType |
getTargetPortType(javax.wsdl.Definition def) |
int |
getTimeout()
Returns the timeout value for an HTTP endpoint.
|
boolean |
isResponseContentTypeCheck() |
boolean |
isSupportAllHttpMethods() |
boolean |
isSynchronous() |
boolean |
isWantContentTypeHeaderFromExchangeIntoHttpRequest()
Determines if the HTTP provider processor copies the HTTP headers from the HTTP response into the JBI exchange.
|
protected void |
overrideDefinition(javax.wsdl.Definition def) |
void |
reloadWsdl() |
void |
setAuthMethod(java.lang.String authMethod)
Specifies the authentication method used by a secure endpoint.
|
void |
setBasicAuthentication(BasicAuthCredentials basicAuthCredentials)
Sets the authentication data used for provider endpoints using basic authentication.
|
void |
setBinding(javax.wsdl.extensions.ExtensibilityElement binding) |
void |
setLateResponseStrategy(java.lang.String value)
Set the strategy to be used for handling a late response from the ESB (i.e.
|
void |
setLocationURI(java.lang.String locationUri)
Sets the URI to which an endpoint sends requests.
|
void |
setProxy(ProxyParameters proxy)
Sets the configuration information for the proxy used by a HTTP consumer endpoint.
|
void |
setResponseContentTypeCheck(boolean responseContentTypeCheck)
Specifies if the http provider checks the response content type for the
keyword xml.
|
void |
setRoleAsString(java.lang.String role)
Sets the endpoint's role.
|
void |
setSoapAction(java.lang.String soapAction) |
void |
setSsl(SslParameters ssl)
Sets the properties used to configure SSL for the endpoint.
|
void |
setSupportAllHttpMethods(boolean supportAllHttpMethods)
Sets the configuration information to support all HTTP methods by a HTTP consumer endpoint.
|
void |
setSynchronous(boolean synchronous) |
void |
setTimeout(int timeout)
Specifies the timeout value for an HTTP endpoint.
|
void |
setWantContentTypeHeaderFromExchangeIntoHttpRequest(boolean wantContentTypeHeaderFromExchangeIntoHttpRequest)
Specifies if the HTTP provider processor copies the HTTP headers from the HTTP response into the JBI exchange.
|
void |
validate() |
activate, createWsdlReader, createWsdlWriter, deactivate, getDefaultMep, getDefaultOperation, getPolicies, getRole, getSoapVersion, getTargetEndpoint, getTargetInterfaceName, getTargetService, getWsdlResource, getWsdls, isSoap, loadWsdl, mapDefinition, mapImports, process, registerExtensions, retrieveProxiedEndpointDefinition, setDefaultMep, setDefaultOperation, setDescription, setPolicies, setRole, setSoap, setSoapVersion, setTargetEndpoint, setTargetInterfaceName, setTargetService, setWsdlResource, start, stopgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setEndpoint, setInterfaceName, setService, setServiceUnit, toStringprotected javax.wsdl.extensions.ExtensibilityElement binding
protected java.lang.String locationURI
protected SslParameters ssl
protected java.lang.String authMethod
protected java.lang.String soapAction
protected BasicAuthCredentials basicAuthentication
protected ProxyParameters proxy
protected boolean synchronous
protected boolean wantContentTypeHeaderFromExchangeIntoHttpRequest
protected int timeout
protected boolean responseContentTypeCheck
protected boolean supportAllHttpMethods
protected java.lang.String lateResponseStrategy
public HttpEndpoint()
public HttpEndpoint(boolean dynamic)
public boolean isWantContentTypeHeaderFromExchangeIntoHttpRequest()
true if the HTTP headers will be copied into the exchangepublic void setWantContentTypeHeaderFromExchangeIntoHttpRequest(boolean wantContentTypeHeaderFromExchangeIntoHttpRequest)
true leads to an error.wantContentTypeHeaderFromExchangeIntoHttpRequest - true if the HTTP headers will be copied into the exchangepublic boolean isResponseContentTypeCheck()
true it the http provider checks the content type agains the keyword xmlpublic void setResponseContentTypeCheck(boolean responseContentTypeCheck)
responseContentTypeCheck - public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
synchronous - the synchronous to setpublic java.lang.String getSoapAction()
public void setSoapAction(java.lang.String soapAction)
soapAction - the soapAction to setpublic java.lang.String getAuthMethod()
public void setAuthMethod(java.lang.String authMethod)
authMethod - a string naming the authentication scheme a secure endpoint should usepublic SslParameters getSsl()
public void setSsl(SslParameters ssl)
ssl - an SslParameters object containing the SSL propertiespublic javax.wsdl.extensions.ExtensibilityElement getBinding()
public void setBinding(javax.wsdl.extensions.ExtensibilityElement binding)
public java.lang.String getLocationURI()
public void setLocationURI(java.lang.String locationUri)
locationUri - a string representing the URIpublic void setBasicAuthentication(BasicAuthCredentials basicAuthCredentials)
basicAuthCredentials - the BasicAuthCredentials that will be used for authenticationpublic BasicAuthCredentials getBasicAuthentication()
BasicAuthCredentials to use for authenticationpublic ProxyParameters getProxy()
public void setProxy(ProxyParameters proxy)
proxy - The proxy to set.public void setRoleAsString(java.lang.String role)
consumer for the role
defines the endpoint as a consumer which exposes an endpoint at a URL. Specifying provider for the role defines
the endpoint as a provider that sends HTTP requests to a URL.setRoleAsString in class SoapEndpointrole - a string specifying the role of the endpointpublic void setTimeout(int timeout)
timeout - the length time, in milliseconds, to wait before timing outpublic int getTimeout()
public void reloadWsdl()
protected javax.wsdl.PortType getTargetPortType(javax.wsdl.Definition def)
protected void overrideDefinition(javax.wsdl.Definition def)
throws java.lang.Exception
overrideDefinition in class SoapEndpointjava.lang.Exceptionprotected SoapExchangeProcessor createProviderProcessor()
createProviderProcessor in class SoapEndpointprotected SoapExchangeProcessor createConsumerProcessor()
createConsumerProcessor in class SoapEndpointprotected javax.jbi.servicedesc.ServiceEndpoint createExternalEndpoint()
createExternalEndpoint in class SoapEndpointpublic AuthenticationService getAuthenticationService()
getAuthenticationService in class SoapEndpointpublic KeystoreManager getKeystoreManager()
getKeystoreManager in class SoapEndpointpublic void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentExceptionprotected javax.jbi.management.DeploymentException failure(java.lang.String task,
java.lang.String info,
java.lang.Throwable e)
public boolean isSupportAllHttpMethods()
public void setSupportAllHttpMethods(boolean supportAllHttpMethods)
supportAllHttpMethods - Indicates whether all HTTP methods are supported by a HTTP consumer endpointpublic void setLateResponseStrategy(java.lang.String value)
error
error will terminate the exchange with an ERROR status and log an exception for the late responsewarning will end the exchange with a DONE status and log a warning for the late response insteadvalue - public java.lang.String getLateResponseStrategy()
Copyright © 2005-2015 FuseSource. All Rights Reserved.