Methods Summary |
---|
public void | destroy()
|
public int | getHandleFaultInvocations()
return handleFaultInvocations;
|
public java.lang.Object | getHandleFaultReturnValue()
return handleFaultReturnValue;
|
public int | getHandleRequestInvocations()
return handleRequestInvocations;
|
public java.lang.Object | getHandleRequestReturnValue()
return handleRequestReturnValue;
|
public int | getHandleResponseInvocations()
return handleResponseInvocations;
|
public java.lang.Object | getHandleResponseReturnValue()
return handleResponseReturnValue;
|
public javax.xml.namespace.QName[] | getHeaders()
return new QName[0];
|
public boolean | handleFault(javax.xml.rpc.handler.MessageContext context)
handleFaultInvocations++;
return returnAppropriateValue(handleFaultReturnValue);
|
public boolean | handleRequest(javax.xml.rpc.handler.MessageContext context)
handleRequestInvocations++;
return returnAppropriateValue(handleRequestReturnValue);
|
public boolean | handleResponse(javax.xml.rpc.handler.MessageContext context)
handleResponseInvocations++;
return returnAppropriateValue(handleResponseReturnValue);
|
public void | init(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 boolean | returnAppropriateValue(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 void | setHandleFaultReturnValue(java.lang.Object handleFaultReturnValue)
this.handleFaultReturnValue = handleFaultReturnValue;
|
public void | setHandleRequestReturnValue(java.lang.Object handleRequestReturnValue)
this.handleRequestReturnValue = handleRequestReturnValue;
|
public void | setHandleResponseReturnValue(java.lang.Object handleResponseReturnValue)
this.handleResponseReturnValue = handleResponseReturnValue;
|