org.apache.ws.resource.impl
Class AbstractResourceKey

java.lang.Object
  extended byorg.apache.ws.resource.impl.AbstractResourceKey
All Implemented Interfaces:
ResourceKey, java.io.Serializable
Direct Known Subclasses:
AxisResourceKey, SimpleTypeResourceKey, XmlBeanResourceKey, XmlStringResourceKey

public abstract class AbstractResourceKey
extends java.lang.Object
implements ResourceKey

LOG-DONE A basic implementation of ResourceKey.

See Also:
Serialized Form

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

Constructor Detail

AbstractResourceKey

public AbstractResourceKey(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.

AbstractResourceKey

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

Parameters:
headerElem - the SOAP header element containing the key. The element's name and namespace are used as key name.
type - the type of the key. The SOAP header element will be deserialized into this type.
Throws:
InvalidResourceKeyException - if deserialization of the key fails.

AbstractResourceKey

public AbstractResourceKey(javax.xml.soap.SOAPHeaderElement headerElem)
                    throws InvalidResourceKeyException
Creates a new AbstractResourceKey.

Parameters:
headerElem - the SOAPElement containing the key. The element's name and namespace are used as key name.
Throws:
InvalidResourceKeyException - if deserialization of the key fails.
Method Detail

getName

public javax.xml.namespace.QName getName()
DOCUMENT_ME

Specified by:
getName in interface ResourceKey
Returns:
DOCUMENT_ME

getValue

public java.lang.Object getValue()
DOCUMENT_ME

Specified by:
getValue in interface ResourceKey
Returns:
DOCUMENT_ME

toSOAPElement

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

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

equals

public boolean equals(java.lang.Object obj)
DOCUMENT_ME

Parameters:
obj - DOCUMENT_ME
Returns:
DOCUMENT_ME

hashCode

public int hashCode()
DOCUMENT_ME

Returns:
DOCUMENT_ME

toString

public java.lang.String toString()
DOCUMENT_ME

Returns:
DOCUMENT_ME

deserializeKey

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

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.