FileDocCategorySizeDatePackage
AAAHandler.javaAPI DocApache Axis 1.42902Sat Apr 22 18:57:28 BST 2006test.jaxrpc

AAAHandler

public class AAAHandler extends Object implements javax.xml.rpc.handler.Handler

Fields Summary
private int
handleRequestInvocations
private int
handleResponseInvocations
private int
handleFaultInvocations
public Object
handleRequestReturnValue
public Object
handleResponseReturnValue
public Object
handleFaultReturnValue
Constructors Summary
Methods Summary
public voiddestroy()

    
public intgetHandleFaultInvocations()

        return handleFaultInvocations;
    
public java.lang.ObjectgetHandleFaultReturnValue()

        return handleFaultReturnValue;
    
public intgetHandleRequestInvocations()

        return handleRequestInvocations;
    
public java.lang.ObjectgetHandleRequestReturnValue()

        return handleRequestReturnValue;
    
public intgetHandleResponseInvocations()

        return handleResponseInvocations;
    
public java.lang.ObjectgetHandleResponseReturnValue()

        return handleResponseReturnValue;
    
public javax.xml.namespace.QName[]getHeaders()

        return new QName[0];
    
public booleanhandleFault(javax.xml.rpc.handler.MessageContext context)

        handleFaultInvocations++;
        return returnAppropriateValue(handleFaultReturnValue);
    
public booleanhandleRequest(javax.xml.rpc.handler.MessageContext context)


        
        handleRequestInvocations++;
        return returnAppropriateValue(handleRequestReturnValue);
    
public booleanhandleResponse(javax.xml.rpc.handler.MessageContext context)

        handleResponseInvocations++;
        return returnAppropriateValue(handleResponseReturnValue);
    
public voidinit(javax.xml.rpc.handler.HandlerInfo config)

        Map map = config.getHandlerConfig();
        handleRequestReturnValue = map.get("HANDLE_REQUEST_RETURN_VALUE");
        handleResponseReturnValue = map.get("HANDLE_RESPONSE_RETURN_VALUE");
        handleFaultReturnValue = map.get("HANDLE_FAULT_RETURN_VALUE");
    
private booleanreturnAppropriateValue(java.lang.Object returnValue)

        if (returnValue == null)
            return true;
        else if (returnValue instanceof Boolean)
            return ((Boolean) returnValue).booleanValue();
        else if (returnValue instanceof RuntimeException)
            throw (RuntimeException) returnValue;
        else {
            throw new RuntimeException();
        }
    
public voidsetHandleFaultReturnValue(java.lang.Object handleFaultReturnValue)

        this.handleFaultReturnValue = handleFaultReturnValue;
    
public voidsetHandleRequestReturnValue(java.lang.Object handleRequestReturnValue)

        this.handleRequestReturnValue = handleRequestReturnValue;
    
public voidsetHandleResponseReturnValue(java.lang.Object handleResponseReturnValue)

        this.handleResponseReturnValue = handleResponseReturnValue;