org.apache.ws.resource.impl
Class XmlBeanResourceKey

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

public class XmlBeanResourceKey
extends AbstractResourceKey

LOG-DONE A ResourceKey whose value is an XmlObject.

Author:
Ian P. Springer, Sal Campana
See Also:
Serialized Form

Constructor Summary
XmlBeanResourceKey(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
 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

XmlBeanResourceKey

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

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.