Handler

   
GenericHandler javax.xml.rpc.handler

JAX-RPC 1.0; JWSDP 1.0, J2EE 1.4
 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.


   


Java Web Services in a Nutshell
Java Web Services in a Nutshell
ISBN: 0596003994
EAN: 2147483647
Year: 2003
Pages: 257
Authors: Kim Topley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net