|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handler
defines the interface for a pluggable handler
in the SOAP server. This class does not imply any policies about
when the handler in invoked.
A handler implementation must:
Field Summary | |
static int |
ERROR_TYPE
Handler invocation is part of error chain. |
static int |
REQUEST_TYPE
Handler invocation is part of request chain. |
static int |
RESPONSE_TYPE
Handler invocation is part of response chain. |
Method Summary | |
void |
destroy()
One-time handler cleanup. |
java.lang.String |
getName()
Get this handler's name. |
java.util.Properties |
getOptions()
Get this handler's options. |
void |
init(SOAPServerContext ssc)
One-time handler initialization. |
void |
invoke(int chainType,
RequestContext requestContext)
Invoke the requested handler as part of the specified chain type. |
void |
setName(java.lang.String name)
Set the name of the handler. |
void |
setOptions(java.util.Properties options)
Set the options for the handler for subsequent use by init. |
Field Detail |
public static final int REQUEST_TYPE
public static final int RESPONSE_TYPE
public static final int ERROR_TYPE
Method Detail |
public void init(SOAPServerContext ssc) throws SOAPException
setOptions
.ssc
- The SOAP server context, which contains the logger for informational
messages.SOAPException
- Unable to initialize the handler.public void setOptions(java.util.Properties options)
init
.options
- Options that are specific to the handler implementation.init(oracle.soap.server.SOAPServerContext)
public java.util.Properties getOptions()
setOptions(java.util.Properties)
public void setName(java.lang.String name)
init
.name
- The name of the handler instance.getName()
public java.lang.String getName()
setName(java.lang.String)
public void destroy() throws SOAPException
SOAPException
- Unable to destroy.init(oracle.soap.server.SOAPServerContext)
public void invoke(int chainType, RequestContext requestContext) throws SOAPException
SOAPException
. In contrast, all handlers in an
error chain will be invoked, regardless of whether any handler
throws an exception. In case of an exception in an error handler,
the exception is logged and discarded.chainType
- Handler.REQUEST_TYPE
if the handler is being invoked
as part of a request chain (i.e., before the service is invoked);
Handler.RESPONSE_TYPE
if the handler is being invoked
as part of a response chain (i.e., after the service has been invoked);
Handler.ERROR_TYPE
if the handler is being invoked
as part of an error chain (i.e., in case of an error during any
one of request chain, service invocation, or response chain).requestContext
- The relevant request context.SOAPException
- Handler invocation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |