Name
GenericHandler
Synopsis
public abstract class GenericHandler implements javax.xml.rpc.handler.Handler { // Protected Constructors protected GenericHandler( ); // Methods Implementing Handler public void destroy( ); // empty public abstract javax.xml.namespace.QName[ ] getHeaders( ); public boolean handleFault( MessageContextcontext
); // constant public boolean handleRequest( MessageContextcontext
); // constant public boolean handleResponse( MessageContextcontext
); // constant public void init( HandlerInfoconfig
); // empty }
GenericHandler
is a convenience class that can
optionally be used as a base class for message handlers.
MessageHandler
provides default implementations of
all of the methods of the Handler
interface apart
from getHeaders( )
, which must be provided by
subclasses. The default implementations do the following:
The
handleRequest( )
,handleResponse( )
, andhandleFault( )
methods all return true, indicating the processing of the message should continue.The
init( )
anddestroy( )
methods do nothing.
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.