|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ogf.graap.wsag.client.api.RemoteClient
org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient
public class WsrfResourceClient
AbstractClient
| Field Summary | |
|---|---|
static EndpointReferenceType |
ANONYMOUS_EPR
Definition of an anonymous SOAP sender EPR. |
static String |
EXTRA_HEADERS
Deprecated. |
| Constructor Summary | |
|---|---|
WsrfResourceClient(EndpointReferenceType destination,
Properties properties,
ISecurityProperties securityProperties)
Creates a WSRFResourceClient with the given endpoint and the provided security properties. |
|
| Method Summary | |
|---|---|
void |
deleteResourceProperty(QName qname)
|
void |
destroy()
|
static Axis2SoapClient |
getDefaultSOAPClient()
|
EndpointReferenceType |
getEndpoint()
|
Element[] |
getMultipleResourceProperties(QName[] qnames)
Retrieves multiple resource properties from a WSRF resource. |
Properties |
getProperties()
Returns the properties used by the web-service client. |
Element[] |
getResourceProperty(QName qname)
Retrieves a single resource property from a WSRF resource. |
Element |
getResourcePropertyDocument()
Retrieves a resource property document from a WSRF resource |
ISecurityProperties |
getSecurityProperties()
Returns the security properties used by the web-service client. |
Element |
invoke(String action,
Element soapBody)
Invokes an action on a WSRF resource |
static boolean |
isUseDefaultSOAPClient()
|
boolean |
isUsingTrace()
Determines whether or not a client prints the web-service messages to the console. |
Node[] |
queryResourceProperties(String query,
String dialect)
Queries multiple resource properties from a WSRF resource. |
static void |
setDefaultSOAPClient(Axis2SoapClient defaultSOAPClient)
|
void |
setProperties(Properties properties)
Sets the properties used for the web-service client. |
void |
setResourceProperties(org.apache.muse.ws.resource.properties.set.SetRequest request)
Sets a resource property. |
Date |
setTerminationTime(Date time)
Sets the termination time for a WSRF resource. |
void |
setTrace(boolean trace)
Sets the clients trace mode. |
static void |
setUseDefaultSOAPClient(boolean useDefaultSOAPClient)
|
void |
updateResourceProperty(QName qname,
Object[] values)
Updates a resource property. |
| Methods inherited from class org.ogf.graap.wsag.client.api.RemoteClient |
|---|
getRemoteReference, setSecurityProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EndpointReferenceType ANONYMOUS_EPR
@Deprecated public static final String EXTRA_HEADERS
| Constructor Detail |
|---|
public WsrfResourceClient(EndpointReferenceType destination,
Properties properties,
ISecurityProperties securityProperties)
destination - the WSRF resource endpointsecurityProperties - the security properties to use| Method Detail |
|---|
public static Axis2SoapClient getDefaultSOAPClient()
public static void setDefaultSOAPClient(Axis2SoapClient defaultSOAPClient)
defaultSOAPClient - the default SOAP client to setpublic static boolean isUseDefaultSOAPClient()
public static void setUseDefaultSOAPClient(boolean useDefaultSOAPClient)
useDefaultSOAPClient - the useDefaultSOAPClient to setpublic Properties getProperties()
RemoteClient
getProperties in class RemoteClientpublic void setProperties(Properties properties)
RemoteClient
setProperties in class RemoteClientproperties - The properties to set.public ISecurityProperties getSecurityProperties()
RemoteClient
getSecurityProperties in class RemoteClientpublic EndpointReferenceType getEndpoint()
public void deleteResourceProperty(QName qname)
throws org.apache.muse.ws.addressing.soap.SoapFault
qname - the name of the resource property to delete
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error that occurred while deleting the resource propertyWsResourceClient.deleteResourceProperty(javax.xml.namespace.QName)
public void destroy()
throws org.apache.muse.ws.addressing.soap.SoapFault
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while destroying the WS resourceWsResourceClient.destroy()
public Element[] getMultipleResourceProperties(QName[] qnames)
throws org.apache.muse.ws.addressing.soap.SoapFault
qnames - the QNames of the resource properties
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while retrieving the resource propertiesWsResourceClient.getMultipleResourceProperties(javax.xml.namespace.QName[])
public Element[] getResourceProperty(QName qname)
throws org.apache.muse.ws.addressing.soap.SoapFault
qname - the QName of the resource property
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while retrieving the resource propertyWsResourceClient.getResourceProperty(javax.xml.namespace.QName)
public Element getResourcePropertyDocument()
throws org.apache.muse.ws.addressing.soap.SoapFault
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while retrieving the resource properties documentWsResourceClient.getResourcePropertyDocument()public boolean isUsingTrace()
RemoteClient
isUsingTrace in class RemoteClientisUsingTrace()
public Node[] queryResourceProperties(String query,
String dialect)
throws org.apache.muse.ws.addressing.soap.SoapFault
query - the querydialect - the query dialect (e.g. XPath)
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while querying the resource propertiesWsResourceClient.queryResourceProperties(java.lang.String,
java.lang.String)
public void setResourceProperties(org.apache.muse.ws.resource.properties.set.SetRequest request)
throws org.apache.muse.ws.addressing.soap.SoapFault
request - the request object
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while setting the resource propertyWsResourceClient.setResourceProperties(org.apache.muse.ws.resource.properties.set.SetRequest)
public Date setTerminationTime(Date time)
throws org.apache.muse.ws.addressing.soap.SoapFault
time - the termination time
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while setting the termination timeWsResourceClient.setTerminationTime(java.util.Date)public void setTrace(boolean trace)
RemoteClient
setTrace in class RemoteClienttrace - toggles the trace capabilitiessetTrace(boolean)
public void updateResourceProperty(QName qname,
Object[] values)
throws org.apache.muse.ws.addressing.soap.SoapFault
qname - the name of the resource property to updatevalues - the value(s) of the property
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while updating the resource propertyWsResourceClient.updateResourceProperty(javax.xml.namespace.QName,
java.lang.Object[])
public Element invoke(String action,
Element soapBody)
throws org.apache.muse.ws.addressing.soap.SoapFault
action - the WSA actionsoapBody - the SOAP body to send
org.apache.muse.ws.addressing.soap.SoapFault - indicates an error while invoking the SOAP clientAbstractResourceClient.invoke(java.lang.String, org.w3c.dom.Element)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||