org.apache.ws.resource.handler.axis
Class AxisResourceKey

java.lang.Object
  extended byorg.apache.ws.resource.impl.AbstractResourceKey
      extended byorg.apache.ws.resource.handler.axis.AxisResourceKey
All Implemented Interfaces:
ResourceKey, java.io.Serializable

public class AxisResourceKey
extends AbstractResourceKey

LOG-DONE

Author:
Sal Campana
See Also:
Serialized Form

Constructor Summary
AxisResourceKey(javax.xml.namespace.QName name, java.lang.Object value)
          Creates a new AbstractResourceKey.
AxisResourceKey(javax.xml.soap.SOAPHeaderElement headerElem, java.lang.Class type)
          Creates a new AbstractResourceKey.
 
Method Summary
protected  java.lang.Object deserializeKey(javax.xml.soap.SOAPHeaderElement header, java.lang.Class type)
          DOCUMENT_ME
 java.lang.Class getType()
          Returns the class representation of the ResourceKey implementation.
 javax.xml.soap.SOAPElement toSOAPElement()
          DOCUMENT_ME
 
Methods inherited from class org.apache.ws.resource.impl.AbstractResourceKey
equals, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisResourceKey

public AxisResourceKey(javax.xml.namespace.QName name,
                       java.lang.Object value)
Creates a new AbstractResourceKey.

Parameters:
name - the name of the key
value - the value of the key. The value of the key can be any simple/primitive type or any WSDL2Java generated type or any other type with proper type mappings.

AxisResourceKey

public AxisResourceKey(javax.xml.soap.SOAPHeaderElement headerElem,
                       java.lang.Class type)
                throws InvalidResourceKeyException
Creates a new AbstractResourceKey.

Parameters:
headerElem - the SOAPElement containing the key. The element's name and namespace are used as key name.
type - the type of the key. The SOAPElement will be deserialized into this type using ObjectDeserializer.toObject().
Throws:
InvalidResourceKeyException - if deserialization of the key fails.
Method Detail

toSOAPElement

public javax.xml.soap.SOAPElement toSOAPElement()
                                         throws org.apache.commons.lang.SerializationException
DOCUMENT_ME

Specified by:
toSOAPElement in interface ResourceKey
Specified by:
toSOAPElement in class AbstractResourceKey
Returns:
DOCUMENT_ME
Throws:
org.apache.commons.lang.SerializationException - DOCUMENT_ME

getType

public java.lang.Class getType()
Description copied from interface: ResourceKey
Returns the class representation of the ResourceKey implementation.

Returns:
The Class of the key type.

deserializeKey

protected java.lang.Object deserializeKey(javax.xml.soap.SOAPHeaderElement header,
                                          java.lang.Class type)
                                   throws org.apache.commons.lang.SerializationException,
                                          InvalidResourceKeyException
DOCUMENT_ME

Specified by:
deserializeKey in class AbstractResourceKey
Parameters:
header - DOCUMENT_ME
type - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
org.apache.commons.lang.SerializationException - DOCUMENT_ME
InvalidResourceKeyException - DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.