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( MessageContext context);
               // constant
    public boolean handleRequest( MessageContext context);
               // constant
    public boolean handleResponse( MessageContext context);
               // constant
    public void init( HandlerInfo config);
               // 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( ), and handleFault( ) methods all return true, indicating the processing of the message should continue.

  • The init( ) and destroy( ) 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.