|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.ResourceContext
org.globus.wsrf.impl.ResourceContextImpl
| Field Summary | |
private javax.xml.rpc.handler.soap.SOAPMessageContext |
context
|
private ResourceHome |
home
|
private java.lang.String |
homeLocation
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
private javax.xml.soap.SOAPMessage |
message
|
private java.lang.String |
service
|
private java.net.URL |
serviceURL
|
| Constructor Summary | |
ResourceContextImpl()
|
|
ResourceContextImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
|
|
ResourceContextImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx,
javax.xml.soap.SOAPMessage msg)
|
|
| Method Summary | |
boolean |
containsProperty(java.lang.String name)
|
java.lang.Object |
getProperty(java.lang.String name)
|
java.util.Iterator |
getPropertyNames()
|
Resource |
getResource()
Gets actual resource. |
ResourceHome |
getResourceHome()
Gets ResourceHome associated with the service. |
java.lang.String |
getResourceHomeLocation()
|
ResourceKey |
getResourceKey()
Gets ResourceKey instance using ResourceHome
lookup. |
ResourceKey |
getResourceKey(javax.xml.namespace.QName keyName,
java.lang.Class keyClass)
Gets ResourceKey of a given name and type. |
javax.xml.soap.SOAPHeaderElement |
getResourceKeyHeader()
Gets SOAPHeaderElement that contains the resource key
for the service using ResourceHome lookup. |
javax.xml.soap.SOAPHeaderElement |
getResourceKeyHeader(javax.xml.namespace.QName keyName)
Gets SOAPHeaderElement of the specified name that contains
the resource key. |
static javax.xml.soap.SOAPHeaderElement |
getResourceKeyHeader(javax.xml.soap.SOAPMessage msg,
javax.xml.namespace.QName keyName,
java.lang.String actorURI)
|
java.lang.String |
getService()
Returns target service associated with this context. |
static java.lang.String |
getService(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
|
java.net.URL |
getServiceURL()
Gets the full URL of the service |
static java.net.URL |
getServiceURL(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
|
void |
removeProperty(java.lang.String name)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
setService(java.lang.String service)
Sets the target service of this context. |
| Methods inherited from class org.globus.wsrf.ResourceContext |
getResourceContext, getResourceContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private javax.xml.rpc.handler.soap.SOAPMessageContext context
private javax.xml.soap.SOAPMessage message
private ResourceHome home
private java.lang.String homeLocation
private java.lang.String service
private java.net.URL serviceURL
| Constructor Detail |
public ResourceContextImpl()
public ResourceContextImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
public ResourceContextImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx,
javax.xml.soap.SOAPMessage msg)
| Method Detail |
public ResourceKey getResourceKey()
throws ResourceContextException
ResourceContextResourceKey instance using ResourceHome
lookup.
getResourceKey in class ResourceContextResourceKey of name and type associated with the
target service' ResourceHome. Returns null if key
is not found in the message.
ResourceContextException - if error occurs during lookup.ResourceContext.getResourceHome()
public ResourceKey getResourceKey(javax.xml.namespace.QName keyName,
java.lang.Class keyClass)
throws ResourceContextException
ResourceContextResourceKey of a given name and type.
getResourceKey in class ResourceContextResourceKey of the given type and name. Returns
null if the key of the specified name was not found in the
message.
ResourceContextException - if error occurs during lookup.
public ResourceHome getResourceHome()
throws NoResourceHomeException,
ResourceContextException
ResourceContextResourceHome associated with the service.
getResourceHome in class ResourceContextResourceHome associated with the service. Cannot be
null.
ResourceContextException - if any other error.
NoResourceHomeException - if ResourceHome is not
configured for the specified service.public java.lang.String getResourceHomeLocation()
public javax.xml.soap.SOAPHeaderElement getResourceKeyHeader()
throws ResourceContextException
ResourceContextSOAPHeaderElement that contains the resource key
for the service using ResourceHome lookup.
getResourceKeyHeader in class ResourceContextSOAPHeaderElement that contains the resource
key for the service. Returns null if one not found.
ResourceContextException - if error occurs during lookup.ResourceContext.getResourceHome()
public javax.xml.soap.SOAPHeaderElement getResourceKeyHeader(javax.xml.namespace.QName keyName)
throws ResourceContextException
ResourceContextSOAPHeaderElement of the specified name that contains
the resource key.
getResourceKeyHeader in class ResourceContextSOAPHeaderElement that contains the resource
key of the given name. Returns null if one not found.
ResourceContextException - if error occurs during lookup.
public Resource getResource()
throws ResourceContextException,
ResourceException
ResourceContext
getResource in class ResourceContextResourceContextException - if error occurs during resource lookup.
ResourceExceptionpublic void setService(java.lang.String service)
service - service name.public java.lang.String getService()
getService in class ResourceContextsetService(). If set to
null or not set at all, by default it returns the
target service associated with the underlying SOAP message
context.public java.net.URL getServiceURL()
ResourceContext
getServiceURL in class ResourceContextpublic boolean containsProperty(java.lang.String name)
containsProperty in class ResourceContextMessageContext.containsProperty(String)public java.lang.Object getProperty(java.lang.String name)
getProperty in class ResourceContextMessageContext.getProperty(String)public void removeProperty(java.lang.String name)
removeProperty in class ResourceContextMessageContext.removeProperty(String)
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in class ResourceContextMessageContext.setProperty(String, Object)public java.util.Iterator getPropertyNames()
getPropertyNames in class ResourceContextMessageContext.getPropertyNames()
public static javax.xml.soap.SOAPHeaderElement getResourceKeyHeader(javax.xml.soap.SOAPMessage msg,
javax.xml.namespace.QName keyName,
java.lang.String actorURI)
throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionpublic static java.lang.String getService(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
public static java.net.URL getServiceURL(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||