|
||||||||||
| 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.ConsumerEndpoint
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint
public class HttpConsumerEndpoint
Plain HTTP consumer endpoint. This endpoint can be used to handle plain HTTP request (without SOAP) or to be able to process the request in a non standard way. For HTTP requests, a WSDL2 HTTP binding can be used.
| Field Summary | |
|---|---|
static String |
MAIN_WSDL
|
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
HttpConsumerEndpoint()
|
|
HttpConsumerEndpoint(org.apache.servicemix.common.DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
|
HttpConsumerEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
QName service,
String endpoint)
|
|
| Method Summary | |
|---|---|
void |
activate()
|
protected void |
addResource(String path,
Object resource)
|
javax.jbi.messaging.MessageExchange |
createExchange(HttpServletRequest request)
|
void |
deactivate()
|
String |
getAuthMethod()
Returns a string describing the authentication scheme being used by an endpoint. |
URI |
getDefaultMep()
Returns a URI representing the default message exachange pattern(MEP) used by an endpoint. |
String |
getLocationURI()
Returns the URI at which the endpoint listens for new requests. |
HttpConsumerMarshaler |
getMarshaler()
|
protected Object |
getResource(String path)
|
protected ContextManager |
getServerManager()
|
SslParameters |
getSsl()
|
long |
getTimeout()
Returns the timeout value for an HTTP endpoint. |
protected boolean |
handleStaticResource(HttpServletRequest request,
HttpServletResponse response)
Handle static resources |
protected void |
loadStaticResources()
|
void |
process(HttpServletRequest request,
HttpServletResponse response)
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
void |
sendAccepted(javax.jbi.messaging.MessageExchange exchange,
HttpServletRequest request,
HttpServletResponse response)
|
void |
sendError(javax.jbi.messaging.MessageExchange exchange,
Exception error,
HttpServletRequest request,
HttpServletResponse response)
|
void |
sendFault(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.Fault fault,
HttpServletRequest request,
HttpServletResponse response)
|
void |
sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
HttpServletRequest request,
HttpServletResponse response)
|
void |
setAuthMethod(String authMethod)
Specifies the authentication method used by a secure endpoint. |
void |
setDefaultMep(URI defaultMep)
Sets the default message exchange pattern(MEP) for an endpoint. |
void |
setLocationURI(String locationURI)
Sets the URI at which an endpoint listens for requests. |
void |
setMarshaler(HttpConsumerMarshaler marshaler)
Sets the class used to marshal messages. |
void |
setSsl(SslParameters ssl)
Sets the properties used to configure SSL for the endpoint. |
void |
setTimeout(long timeout)
Specifies the timeout value for an HTTP consumer endpoint. |
void |
start()
|
void |
stop()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint |
|---|
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri |
| 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 |
| Field Detail |
|---|
public static final String MAIN_WSDL
| Constructor Detail |
|---|
public HttpConsumerEndpoint()
public HttpConsumerEndpoint(org.apache.servicemix.common.DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
public HttpConsumerEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
QName service,
String endpoint)
| Method Detail |
|---|
public String getLocationURI()
getLocationURI in class org.apache.servicemix.common.endpoints.ConsumerEndpointpublic void setLocationURI(String locationURI)
locationURI - a string representing the URIpublic long getTimeout()
public void setTimeout(long timeout)
timeout - the length time, in milliseconds, to wait before timing outpublic HttpConsumerMarshaler getMarshaler()
public void setMarshaler(HttpConsumerMarshaler marshaler)
marshaler - the marshaler to setpublic String getAuthMethod()
getAuthMethod in interface HttpProcessorpublic void setAuthMethod(String authMethod)
authMethod - a string naming the authentication scheme a secure endpoint should usepublic SslParameters getSsl()
getSsl in interface HttpProcessorpublic void setSsl(SslParameters ssl)
ssl - an SslParameters object containing the SSL propertiespublic URI getDefaultMep()
public void setDefaultMep(URI defaultMep)
JbiConstants.IN_OUT.
defaultMep - a URI representing the default MEP of the endpoint
public void activate()
throws Exception
activate in interface org.apache.servicemix.common.Endpointactivate in class org.apache.servicemix.common.endpoints.ConsumerEndpointException
public void deactivate()
throws Exception
deactivate in interface org.apache.servicemix.common.Endpointdeactivate in class org.apache.servicemix.common.endpoints.ConsumerEndpointException
public void start()
throws Exception
start in interface org.apache.servicemix.common.Endpointstart in class org.apache.servicemix.common.endpoints.SimpleEndpointException
public void stop()
throws Exception
stop in interface org.apache.servicemix.common.Endpointstop in class org.apache.servicemix.common.endpoints.SimpleEndpointException
public void process(javax.jbi.messaging.MessageExchange exchange)
throws Exception
process in interface org.apache.servicemix.common.Endpointprocess in class org.apache.servicemix.common.endpoints.AbstractEndpointException
public void process(HttpServletRequest request,
HttpServletResponse response)
throws Exception
process in interface HttpProcessorExceptionprotected void loadStaticResources()
protected boolean handleStaticResource(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
request - the http requestresponse - the http response
true if the request has been handled
IOException
ServletExceptionprotected Object getResource(String path)
protected void addResource(String path,
Object resource)
protected ContextManager getServerManager()
public javax.jbi.messaging.MessageExchange createExchange(HttpServletRequest request)
throws Exception
Exception
public void sendAccepted(javax.jbi.messaging.MessageExchange exchange,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Exception
public void sendError(javax.jbi.messaging.MessageExchange exchange,
Exception error,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Exception
public void sendFault(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.Fault fault,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Exception
public void sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
Exception
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface org.apache.servicemix.common.Endpointvalidate in class org.apache.servicemix.common.endpoints.ConsumerEndpointjavax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||