public class ServletSystemHandlerDelegate extends Object implements com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate
Constructor and Description |
---|
ServletSystemHandlerDelegate(ServerAuthConfig config,
WebServiceEndpoint ep) |
Modifier and Type | Method and Description |
---|---|
boolean |
processRequest(com.sun.xml.rpc.spi.runtime.SOAPMessageContext messageContext)
The processRequest method is invoked with an object that implements
com.sun.xml.rpc.spi.runtime.SOAPMessageContext.
|
void |
processResponse(com.sun.xml.rpc.spi.runtime.SOAPMessageContext messageContext)
The processResponse method is invoked with an object that implements
com.sun.xml.rpc.spi.runtime.SOAPMessageContext.
|
protected static final Logger _logger
public ServletSystemHandlerDelegate(ServerAuthConfig config, WebServiceEndpoint ep)
public boolean processRequest(com.sun.xml.rpc.spi.runtime.SOAPMessageContext messageContext)
When this method is called by the JAXRPCServletDelegate (on the server side of jaxrpc servlet container invocation processing) it must be called just before the call to implementor.getTie().handle(), and at the time of the request message and the following properties must have been set on the SOAPMessageContext.
com.sun.xml.rpc.server.http.MessageContextProperties.IMPLEMENTOR
This property must be set to the com.sun.xml.rpc.spi.runtime.Implementor object corresponding to
the target endpoint.
com.sun.xml.rpc.server.http.MessageContextProperties.HTTP_SERVLET_REQUEST
This property must be set to the javax.servlet.http.HttpServletRequest object containing the
JAXRPC invocation.
com.sun.xml.rpc.server.http.MessageContextProperties.HTTP_SERVLET_RESPONSE
This property must be set to the javax.servlet.http.HttpServletResponse object corresponding to
the JAXRPC invocation.
com.sun.xml.rpc.server.MessageContextProperties.HTTP_SERVLET_CONTEXT
This property must be set to the javax.servlet.ServletContext object corresponding to web
application in which the JAXRPC servlet is running.
processRequest
in interface com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate
messageContext
- the SOAPMessageContext object containing the request message and the
properties described above.RuntimeException
- when the processing by the delegate failed, without yielding a
response message. In this case, the expectation is that the caller will return a HTTP layer
response code reporting that an internal error occured.public void processResponse(com.sun.xml.rpc.spi.runtime.SOAPMessageContext messageContext)
When this method is called by the JAXRPCServletDelegate (on the server side of jaxrpc servlet container invocation processing) it must be called just just after the call to implementor.getTie().handle(). In the special case where the handle method throws an exception, the processResponse message must not be called.
The SOAPMessageContext passed to the processRequest and handle messages is passed to the processResponse method.
processResponse
in interface com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate
RuntimeException
- when the processing by the delegate failed, in which case the
caller is expected to return an HTTP layer response code reporting that an internal error
occured.Copyright © 2019. All rights reserved.