xsul.xhandler
Class BaseHandler

java.lang.Object
  extended byxsul.xhandler.BaseHandler
All Implemented Interfaces:
MessageProcessingNode, XHandler
Direct Known Subclasses:
ClientCapabilityHandler, ClientSecConvHandler, ClientSignatureHandler, DenRoutingHandler, ServerCapabilityHandler, ServerSecConvHandler, ServerSignatureHandler, WorkloadHandler

public class BaseHandler
extends java.lang.Object
implements XHandler

Base class to simplify writing handlers: simply override processIncoming|OutgoingXml method


Constructor Summary
BaseHandler(java.lang.String name)
           
 
Method Summary
 void done(XHandlerContext handlerConfig)
           
 java.lang.String getName()
           
 void init(XHandlerContext handlerConfig)
           
 boolean isHandlerDisabled()
           
 boolean process(MessageContext context)
          Return true to indicate that processingis should be finished (no more links in chain will be called).
 boolean processIncomingXml(XmlElement message, MessageContext context)
           
 boolean processOutgoingXml(XmlElement message, MessageContext context)
           
 void setHandlerDisabled(boolean handlerDisabled)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHandler

public BaseHandler(java.lang.String name)
Method Detail

init

public void init(XHandlerContext handlerConfig)
Specified by:
init in interface XHandler

done

public void done(XHandlerContext handlerConfig)
Specified by:
done in interface XHandler

processOutgoingXml

public boolean processOutgoingXml(XmlElement message,
                                  MessageContext context)
                           throws DynamicInfosetInvokerException
Throws:
DynamicInfosetInvokerException

processIncomingXml

public boolean processIncomingXml(XmlElement message,
                                  MessageContext context)
                           throws DynamicInfosetInvokerException
Throws:
DynamicInfosetInvokerException

process

public boolean process(MessageContext context)
                throws MessageProcessingException
Description copied from interface: XHandler
Return true to indicate that processingis should be finished (no more links in chain will be called).

Specified by:
process in interface XHandler
Throws:
MessageProcessingException

getName

public java.lang.String getName()
Specified by:
getName in interface XHandler

setHandlerDisabled

public void setHandlerDisabled(boolean handlerDisabled)

isHandlerDisabled

public boolean isHandlerDisabled()


IU Extreme! Lab (http://www.extreme.indiana.edu)