org.apache.ws.resource.impl
Class SimpleTypeResourceKey

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

public class SimpleTypeResourceKey
extends AbstractResourceKey

LOG-DONE A ResourceKey whose value is a String. It is required that the key SOAP header be an XML type.

Author:
Ian P. Springer
See Also:
Serialized Form

Constructor Summary
SimpleTypeResourceKey(javax.xml.namespace.QName name, java.lang.Object value)
           
SimpleTypeResourceKey(javax.xml.soap.SOAPHeaderElement headerElem)
          Creates a new XmlBeanResourceKey.
 
Method Summary
protected  java.lang.Object deserializeKey(javax.xml.soap.SOAPHeaderElement headerElem, java.lang.Class type)
          DOCUMENT_ME
protected  java.lang.String getStringValue()
          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

SimpleTypeResourceKey

public SimpleTypeResourceKey(javax.xml.namespace.QName name,
                             java.lang.Object value)

SimpleTypeResourceKey

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

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

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.

getStringValue

protected final java.lang.String getStringValue()
DOCUMENT_ME

Returns:
DOCUMENT_ME

deserializeKey

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

Specified by:
deserializeKey in class AbstractResourceKey
Parameters:
headerElem - 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.