FileDocCategorySizeDatePackage
SimpleTargetedChain.javaAPI DocApache Axis 1.44034Sat Apr 22 18:57:28 BST 2006org.apache.axis

SimpleTargetedChain

public class SimpleTargetedChain extends SimpleChain implements TargetedChain
A SimpleTargetedChain has a request handler, a pivot handler, and a response handler (any of which may themselves be chains).
author
Doug Davis (dug@us.ibm.com)
author
Glyn Normington (norm@uk.ibm.com)

Fields Summary
protected static Log
log
protected Handler
requestHandler
protected Handler
pivotHandler
protected Handler
responseHandler
Constructors Summary
public SimpleTargetedChain()
Default no-arg constructor.

public SimpleTargetedChain(Handler handler)
Constructor for an instance with effectively only a pivot handler.

param
handler the Handler to use

        pivotHandler = handler;
        if (pivotHandler != null) {
            addHandler(pivotHandler);
            addHandler(new PivotIndicator());
        }
    
public SimpleTargetedChain(Handler reqHandler, Handler pivHandler, Handler respHandler)
Constructor which takes real or null request, pivot, and response handlers.

        init(reqHandler, null, pivHandler, null, respHandler);
    
Methods Summary
public HandlergetPivotHandler()

 return( pivotHandler ); 
public HandlergetRequestHandler()

 return( requestHandler ); 
public HandlergetResponseHandler()

 return( responseHandler ); 
protected voidinit(Handler reqHandler, Handler specialReqHandler, Handler pivHandler, Handler specialRespHandler, Handler respHandler)
Initialiser which takes real or null request, pivot, and response handlers and which allows for special request and response handlers to be inserted just before and after any pivot handler.

param
reqHandler the request Handler
param
specialReqHandler the special request Handler
param
pivHandler the pivot Handler
param
specialRespHandler the special response Handler
param
respHandler the response Handler


        requestHandler = reqHandler;
        if (requestHandler != null)
            addHandler(requestHandler);

        if (specialReqHandler != null)
            addHandler(specialReqHandler);

        pivotHandler = pivHandler;
        if (pivotHandler != null) {
            addHandler(pivotHandler);
            addHandler(new PivotIndicator());
        }

        if (specialRespHandler != null)
            addHandler(specialRespHandler);

        responseHandler = respHandler;
        if (responseHandler != null)
            addHandler(responseHandler);