org.apache.axis.message.addressing.handler
Class AxisServerSideAddressingHandler

java.lang.Object
  extended by javax.xml.rpc.handler.GenericHandler
      extended by org.apache.ws.addressing.handler.AbstractAddressingHandler
          extended by org.apache.ws.addressing.handler.ServerSideAddressingHandler
              extended by org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler
All Implemented Interfaces:
java.io.Serializable, javax.xml.rpc.handler.Handler

public class AxisServerSideAddressingHandler
extends ServerSideAddressingHandler
implements org.apache.axis.Handler

Axis-specific server-side WS-Addressing handler.

Version:
$Revision: 14 $
Author:
Davanum Srinivas, Ian P. Springer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ws.addressing.handler.ServerSideAddressingHandler
TRANSFORMER_FACTORY
 
Fields inherited from class org.apache.ws.addressing.handler.AbstractAddressingHandler
CONFIG_PROP_ACTOR, CONFIG_PROP_REFERENCE_PROPERTY_NAMES, CONFIG_PROP_REMOVE_HEADERS, CONTINUE_HANDLER_CHAIN_PROCESSING
 
Constructor Summary
AxisServerSideAddressingHandler()
           
 
Method Summary
 boolean canHandleBlock(javax.xml.namespace.QName qname)
          
 void cleanup()
          
protected  void forwardMessage(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext, EndpointReference endpointRef)
          Forward the SOAP message contained in the specified SOAP message context on to the specified end-point reference.
protected  java.lang.String generateUUId()
          Use the UUID generator that comes with Axis.
 void generateWSDL(org.apache.axis.MessageContext msgContext)
          
 org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
          
 java.lang.String getName()
          
 java.lang.Object getOption(java.lang.String name)
          
 java.util.Hashtable<?,?> getOptions()
          
 java.util.List<?> getUnderstoodHeaders()
          
 void init()
          
 void invoke(org.apache.axis.MessageContext msgContext)
          
 void onFault(org.apache.axis.MessageContext msgContext)
          
 void setName(java.lang.String name)
          
 void setOption(java.lang.String name, java.lang.Object value)
          
 boolean setOptionDefault(java.lang.String name, java.lang.Object value)
          Set a default value for the given option: if the option is not already set, then set it.
 void setOptions(java.util.Hashtable opts)
          
protected  void setTargetService(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext, AddressingHeaders headers)
          Platform-specific subclasses can optionally implement this method.
 
Methods inherited from class org.apache.ws.addressing.handler.ServerSideAddressingHandler
configureCall, getService, getTargetServiceName, handleFault, handleRequest, handleResponse, removeAllChildElements
 
Methods inherited from class org.apache.ws.addressing.handler.AbstractAddressingHandler
createMessageID, getActor, getHandlerConfigProperties, getHandlerConfigProperty, getHeaders, getReferencePropertyQNames, init, initReferencePropertyQNames, isHandlerConfigPropertyTrue, isMustUnderstandEnabled, isPropertyTrue, isRemoveHeadersEnabled
 
Methods inherited from class javax.xml.rpc.handler.GenericHandler
destroy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisServerSideAddressingHandler

public AxisServerSideAddressingHandler()
Method Detail

init

public void init()


cleanup

public void cleanup()


canHandleBlock

public boolean canHandleBlock(javax.xml.namespace.QName qname)


setOption

public void setOption(java.lang.String name,
                      java.lang.Object value)


setOptionDefault

public boolean setOptionDefault(java.lang.String name,
                                java.lang.Object value)
Set a default value for the given option: if the option is not already set, then set it. if the option is already set, then do not set it.

If this is called multiple times, the first with a non-null value if 'value' will set the default, remaining calls will be ignored.

Parameters:
name - Option name
value - Default value
Returns:
true if value set (by this call), otherwise false;

getOption

public java.lang.Object getOption(java.lang.String name)


getOptions

public java.util.Hashtable<?,?> getOptions()


setOptions

public void setOptions(java.util.Hashtable opts)


setName

public void setName(java.lang.String name)


getName

public java.lang.String getName()


getDeploymentData

public org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)


getUnderstoodHeaders

public java.util.List<?> getUnderstoodHeaders()


generateWSDL

public void generateWSDL(org.apache.axis.MessageContext msgContext)
                  throws org.apache.axis.AxisFault

Throws:
org.apache.axis.AxisFault

invoke

public void invoke(org.apache.axis.MessageContext msgContext)
            throws org.apache.axis.AxisFault

Throws:
org.apache.axis.AxisFault

onFault

public void onFault(org.apache.axis.MessageContext msgContext)


generateUUId

protected java.lang.String generateUUId()
Use the UUID generator that comes with Axis.

Overrides:
generateUUId in class AbstractAddressingHandler
Returns:
a UUID

forwardMessage

protected void forwardMessage(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext,
                              EndpointReference endpointRef)
Forward the SOAP message contained in the specified SOAP message context on to the specified end-point reference.

Overrides:
forwardMessage in class ServerSideAddressingHandler
Parameters:
soapMsgContext - Message context to get the message from
endpointRef - End-point reference to forward to

setTargetService

protected void setTargetService(javax.xml.rpc.handler.soap.SOAPMessageContext soapMsgContext,
                                AddressingHeaders headers)
                         throws java.lang.Exception
Platform-specific subclasses can optionally implement this method.

Overrides:
setTargetService in class ServerSideAddressingHandler
Parameters:
soapMsgContext - Context to get information from
headers - Headers to use
Throws:
java.lang.Exception - If an error occurs


Copyright © 2008-2009 Rodrigo Ruiz. All Rights Reserved.