|
||||||||||
| 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.soap.SoapEndpoint
org.apache.servicemix.http.HttpEndpoint
public class HttpEndpoint
an HTTP endpoint. This is the base for all HTTP endpoints.
| Field Summary | |
|---|---|
protected java.lang.String |
authMethod
|
protected BasicAuthCredentials |
basicAuthentication
|
protected javax.wsdl.extensions.ExtensibilityElement |
binding
|
protected java.lang.String |
locationURI
|
protected ProxyParameters |
proxy
|
protected boolean |
responseContentTypeCheck
|
protected java.lang.String |
soapAction
|
protected SslParameters |
ssl
|
protected boolean |
synchronous
|
protected int |
timeout
|
protected boolean |
wantContentTypeHeaderFromExchangeIntoHttpRequest
|
| Fields inherited from class org.apache.servicemix.soap.SoapEndpoint |
|---|
activated, defaultMep, defaultOperation, dynamic, policies, processor, role, soap, soapVersion, targetEndpoint, targetInterfaceName, targetService, wsdlResource, wsdls |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
HttpEndpoint()
|
|
HttpEndpoint(boolean dynamic)
|
|
| Method Summary | |
|---|---|
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 |
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 |
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 |
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 |
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()
|
| Methods inherited from class org.apache.servicemix.soap.SoapEndpoint |
|---|
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, stop |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public HttpEndpoint()
public HttpEndpoint(boolean dynamic)
| Method Detail |
|---|
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 SoapEndpoint
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentException
protected javax.jbi.management.DeploymentException failure(java.lang.String task,
java.lang.String info,
java.lang.Throwable e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||