|
||||||||||
| 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 String |
authMethod
|
protected BasicAuthCredentials |
basicAuthentication
|
protected javax.wsdl.extensions.ExtensibilityElement |
binding
|
protected String |
locationURI
|
protected ProxyParameters |
proxy
|
protected 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 org.apache.servicemix.soap.SoapExchangeProcessor |
createConsumerProcessor()
|
protected javax.jbi.servicedesc.ServiceEndpoint |
createExternalEndpoint()
|
protected org.apache.servicemix.soap.SoapExchangeProcessor |
createProviderProcessor()
|
protected javax.jbi.management.DeploymentException |
failure(String task,
String info,
Throwable e)
|
org.apache.servicemix.common.security.AuthenticationService |
getAuthenticationService()
|
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()
|
org.apache.servicemix.common.security.KeystoreManager |
getKeystoreManager()
|
String |
getLocationURI()
Returns the URI to which the endpoint sends requests. |
ProxyParameters |
getProxy()
|
String |
getSoapAction()
|
SslParameters |
getSsl()
|
protected javax.wsdl.PortType |
getTargetPortType(javax.wsdl.Definition def)
|
int |
getTimeout()
Returns the timeout value for an HTTP endpoint. |
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(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(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 |
setRoleAsString(String role)
Sets the endpoint's role. |
void |
setSoapAction(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, 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, setDescription, 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 String locationURI
protected SslParameters ssl
protected String authMethod
protected String soapAction
protected BasicAuthCredentials basicAuthentication
protected ProxyParameters proxy
protected boolean synchronous
protected boolean wantContentTypeHeaderFromExchangeIntoHttpRequest
protected int timeout
| 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 isSynchronous()
public void setSynchronous(boolean synchronous)
synchronous - the synchronous to setpublic String getSoapAction()
public void setSoapAction(String soapAction)
soapAction - the soapAction to setpublic String getAuthMethod()
public void setAuthMethod(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 String getLocationURI()
public void setLocationURI(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(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 org.apache.servicemix.soap.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 Exception
overrideDefinition in class org.apache.servicemix.soap.SoapEndpointExceptionprotected org.apache.servicemix.soap.SoapExchangeProcessor createProviderProcessor()
createProviderProcessor in class org.apache.servicemix.soap.SoapEndpointprotected org.apache.servicemix.soap.SoapExchangeProcessor createConsumerProcessor()
createConsumerProcessor in class org.apache.servicemix.soap.SoapEndpointprotected javax.jbi.servicedesc.ServiceEndpoint createExternalEndpoint()
createExternalEndpoint in class org.apache.servicemix.soap.SoapEndpointpublic org.apache.servicemix.common.security.AuthenticationService getAuthenticationService()
getAuthenticationService in class org.apache.servicemix.soap.SoapEndpointpublic org.apache.servicemix.common.security.KeystoreManager getKeystoreManager()
getKeystoreManager in class org.apache.servicemix.soap.SoapEndpoint
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
protected javax.jbi.management.DeploymentException failure(String task,
String info,
Throwable e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||