org.apache.axis
Class SimpleTargetedChain

java.lang.Object
  |
  +--org.apache.axis.handlers.BasicHandler
        |
        +--org.apache.axis.SimpleTargetedChain
All Implemented Interfaces:
Handler, java.io.Serializable, TargetedChain
Direct Known Subclasses:
SOAPService, Transport

public class SimpleTargetedChain
extends BasicHandler
implements TargetedChain

Author:
Doug Davis (dug@us.ibm.com)
See Also:
Serialized Form

Field Summary
protected  Handler pivotHandler
           
protected  Handler requestHandler
           
protected  Handler responseHandler
           
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
name, options
 
Constructor Summary
SimpleTargetedChain()
           
 
Method Summary
 boolean canHandleBlock(QName qname)
          Can this Handler process this QName?
 void cleanup()
          Cleanup is called when the chain containing this Handler object is done processing the chain.
 void clear()
          Clears the Handlers
 void fillInDeploymentData(org.w3c.dom.Element root)
          Used by subclasses (i.e.
 void generateWSDL(MessageContext msgContext)
          Obtain WSDL information.
 org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
          This will return the root element of an XML doc that describes the deployment information about this handler.
 Handler getPivotHandler()
          Returns the Pivot Handler
 Handler getRequestHandler()
          Returns the Request handler
 Handler getResponseHandler()
          Returns the Response Handler
 void init()
          Init is called when the chain containing this Handler object is instantiated.
 void invoke(MessageContext msgContext)
          Invoke the request chain, pivot handler and response chain.
 void setPivotHandler(Handler handler)
          Sets the Pivot Handler
 void setRequestHandler(Handler reqHandler)
          Sets the Request Chain
 void setResponseHandler(Handler respHandler)
          Sets the Response Handler
 void undo(MessageContext msgContext)
          Undo all of the work - in reverse order.
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
addOption, getName, getOption, getOptions, setName, setOption, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis.Handler
addOption, getName, getOption, getOptions, setName, setOption, setOptions
 

Field Detail

requestHandler

protected Handler requestHandler

pivotHandler

protected Handler pivotHandler

responseHandler

protected Handler responseHandler
Constructor Detail

SimpleTargetedChain

public SimpleTargetedChain()
Method Detail

init

public void init()
Description copied from interface: Handler
Init is called when the chain containing this Handler object is instantiated.
Specified by:
init in interface Handler
Overrides:
init in class BasicHandler

cleanup

public void cleanup()
Description copied from interface: Handler
Cleanup is called when the chain containing this Handler object is done processing the chain.
Specified by:
cleanup in interface Handler
Overrides:
cleanup in class BasicHandler

invoke

public void invoke(MessageContext msgContext)
            throws AxisFault
Invoke the request chain, pivot handler and response chain. If there's a fault we need to make sure that we undo any completed handler that has been successfully invoked and then rethrow the fault.
Specified by:
invoke in interface Handler
Overrides:
invoke in class BasicHandler

generateWSDL

public void generateWSDL(MessageContext msgContext)
                  throws AxisFault
Description copied from interface: Handler
Obtain WSDL information. Some Handlers will implement this by merely setting properties in the MessageContext, others (providers) will take responsibility for doing the "real work" of generating WSDL for a given service.
Specified by:
generateWSDL in interface Handler
Overrides:
generateWSDL in class BasicHandler

undo

public void undo(MessageContext msgContext)
Undo all of the work - in reverse order.
Specified by:
undo in interface Handler
Overrides:
undo in class BasicHandler

canHandleBlock

public boolean canHandleBlock(QName qname)
Description copied from interface: Handler
Can this Handler process this QName?
Specified by:
canHandleBlock in interface Handler
Overrides:
canHandleBlock in class BasicHandler

getRequestHandler

public Handler getRequestHandler()
Description copied from interface: TargetedChain
Returns the Request handler
Specified by:
getRequestHandler in interface TargetedChain

setRequestHandler

public void setRequestHandler(Handler reqHandler)
Description copied from interface: TargetedChain
Sets the Request Chain
Specified by:
setRequestHandler in interface TargetedChain

getPivotHandler

public Handler getPivotHandler()
Description copied from interface: TargetedChain
Returns the Pivot Handler
Specified by:
getPivotHandler in interface TargetedChain

setPivotHandler

public void setPivotHandler(Handler handler)
Description copied from interface: TargetedChain
Sets the Pivot Handler
Specified by:
setPivotHandler in interface TargetedChain

getResponseHandler

public Handler getResponseHandler()
Description copied from interface: TargetedChain
Returns the Response Handler
Specified by:
getResponseHandler in interface TargetedChain

setResponseHandler

public void setResponseHandler(Handler respHandler)
Description copied from interface: TargetedChain
Sets the Response Handler
Specified by:
setResponseHandler in interface TargetedChain

clear

public void clear()
Description copied from interface: TargetedChain
Clears the Handlers
Specified by:
clear in interface TargetedChain

getDeploymentData

public org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
Description copied from interface: Handler
This will return the root element of an XML doc that describes the deployment information about this handler. This is NOT the WSDL, this is all of the static internal data use by Axis - WSDL takes into account run-time information (like which service we're talking about) this is just the data that's stored in the registry. Used by the 'list' Admin function.
Specified by:
getDeploymentData in interface Handler
Overrides:
getDeploymentData in class BasicHandler

fillInDeploymentData

public void fillInDeploymentData(org.w3c.dom.Element root)
Used by subclasses (i.e. SOAPService) to fill in deployment data into an Element which might not be named "chain".
Parameters:
root - the Element to fill in with deployment data.


Copyright © 2001 Apache XML Project. All Rights Reserved.