|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.SimpleResourceKey
A basic implementation of ResourceKey.
| Field Summary | |
private static org.apache.commons.logging.Log |
logger
|
private javax.xml.namespace.QName |
name
|
private java.lang.Object |
value
|
| Constructor Summary | |
SimpleResourceKey(javax.xml.namespace.QName name,
java.lang.Object value)
Creates a new SimpleResourceKey. |
|
SimpleResourceKey(javax.xml.soap.SOAPElement header,
java.lang.Class type)
Creates a new SimpleResourceKey. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
javax.xml.namespace.QName |
getName()
The name of the key. |
java.lang.Object |
getValue()
The actual key value. |
int |
hashCode()
|
javax.xml.soap.SOAPElement |
toSOAPElement()
Converts the resource key into a SOAPElement. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
private javax.xml.namespace.QName name
private java.lang.Object value
| Constructor Detail |
public SimpleResourceKey(javax.xml.soap.SOAPElement header,
java.lang.Class type)
throws InvalidResourceKeyException
header - 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().
InvalidResourceKeyException - if deserialization of the key fails.
public SimpleResourceKey(javax.xml.namespace.QName name,
java.lang.Object value)
name - the name of the keyvalue - 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.| Method Detail |
public javax.xml.namespace.QName getName()
ResourceKey
getName in interface ResourceKeypublic java.lang.Object getValue()
ResourceKey
getValue in interface ResourceKey
public javax.xml.soap.SOAPElement toSOAPElement()
throws SerializationException
ResourceKeySOAPElement.
The element name and namespace must match the name of the key.
toSOAPElement in interface ResourceKeySOAPElement
SerializationException - in case the conversion fails.public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||