|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.Client
A simple client for OGSA-DAI data services and configurable data services.
The client has the following syntax:
java uk.org.ogsadai.client.Client
-u DATA-SERVICE-URI
[-k DATA-SERVICE-RESOURCE-ID ACTION]
[-mls CLIENT_SECURITY_DESCRIPTOR]
[-tls [encrypt]]
where action is one of:
PERFORM-DOCUMENT-FILE
- location of Perform document to submit to data service resource exposed by data service.deploy
- for use by service deployers, this action is compatible with configurable data services. It instructs a data service to expose a new data service resource with the given data service resource ID. The data service resource configuration files are assumed to be located within a directory dai.config.files.root/DATA-SERVICE-RESOURCE-ID
where dai.config.files.root
is the value of this parameter within the data service's deployment descriptor.updeploy
- for use by service deployers, this action is compatible with configurable data services. It instructs a data service to no longet expose a data service resource.getProperty PROPERTY-NAME[_PROPERTY-NAME]
- name of a property whose value is to be retrieved from a data service resource and displayed.If no data service resource ID is provided then the service version and a list of the data service resources it exposes are displayed.
The -mls
argument specifies that message level security should be used and the CLIENT_SECURITY_DESCRIPTOR
value specifies the name of the Globus client security descriptor to use. This option will only work with WSRF services.
The -tls
flag specifies that transport level security should be used. To use transport level security you must specify the https protocol in the DATA-SERVICE-URI
. By default transport level security will provide data integrity to also encrypt the data you include encrypt
after the -tls
argument. Transport level security will only work with WSRF services.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement. |
private static java.lang.String |
mAction Action. |
private static boolean |
mApplyMessageLevelSecurity Have we to apply message level security? |
private static boolean |
mApplyTransportLevelEncryption Have we to apply transport level security encryption? |
private static boolean |
mApplyTransportLevelSecurity Have we to apply transport level security? |
private static java.lang.String |
mClientSecurityDescriptor Message level security security descriptor file name. |
private static java.lang.String |
mID Data service resource name. |
private static java.lang.String |
mProperty Property name. |
private static java.lang.String |
mURL Data service URL. |
Constructor Summary | |
Client() |
Method Summary | |
private static void |
displayProperty(Property property) Display the name and value of a property. |
private static void |
displaySyntax() Display the client syntax. |
static void |
exitClient(java.lang.Throwable e) Display an exception. |
private static Property[] |
getProperties(ConfigurableDataService service, java.lang.String[] properties) Contact a service and return multiple properties. |
private static Property |
getProperty(ConfigurableDataService service, java.lang.String property) Contact a service and return a single property. |
private static org.w3c.dom.Document |
loadPerformDoc() Load a perform document into a DOM object. |
static void |
main(java.lang.String[] args) Invoke the client. |
private static void |
parse(java.lang.String[] args) Extract command-line arguments into local variables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static java.lang.String mURL
private static java.lang.String mID
private static java.lang.String mAction
private static java.lang.String mProperty
private static boolean mApplyMessageLevelSecurity
private static java.lang.String mClientSecurityDescriptor
private static boolean mApplyTransportLevelSecurity
private static boolean mApplyTransportLevelEncryption
Constructor Detail |
public Client()
Method Detail |
public static void main(java.lang.String[] args)
args
- Arguments to the client as described above.private static Property getProperty(ConfigurableDataService service, java.lang.String property) throws java.lang.Exception
service
- Service stubproperty
- Property name as a string.java.lang.Exception
- If any problems occurprivate static Property[] getProperties(ConfigurableDataService service, java.lang.String[] properties) throws java.lang.Exception
service
- Service stubproperties
- Property namesjava.lang.Exception
- If any problems occurprivate static void displayProperty(Property property)
property
- Property to displayprivate static void parse(java.lang.String[] args)
This method will exit if there is a problem, displaying the command-line syntax.
args
- Command line arguments.private static void displaySyntax()
public static void exitClient(java.lang.Throwable e)
e
- Exception to display stack trace for. If null
then no trace is printed.private static org.w3c.dom.Document loadPerformDoc()
This method will exit if there is a problem.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |