Class GASSProtocol
- java.lang.Object
-
- org.globus.io.gass.client.internal.GASSProtocol
-
public class GASSProtocol extends java.lang.Object
This is a pure Java implementation of the Globus GASS protocol. Normally one does not need to use this class directly but instead uses the Client class.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
APPEND_URI
the default gass append urlprivate static java.lang.String
TYPE
private static java.lang.String
USER_AGENT
the default user agent string
-
Constructor Summary
Constructors Constructor Description GASSProtocol()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
GET(java.lang.String path, java.lang.String host)
This method concatenates a properly formatted header for performing Globus Gass GETs with the given information.static java.lang.String
PUT(java.lang.String path, java.lang.String host, long length, boolean append)
This method concatenates a properly formatted header for performing Globus Gass PUTs with the given information.static java.lang.String
SHUTDOWN(java.lang.String path, java.lang.String host)
-
-
-
Field Detail
-
USER_AGENT
private static final java.lang.String USER_AGENT
the default user agent string- See Also:
- Constant Field Values
-
APPEND_URI
private static final java.lang.String APPEND_URI
the default gass append url- See Also:
- Constant Field Values
-
TYPE
private static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
GET
public static java.lang.String GET(java.lang.String path, java.lang.String host)
This method concatenates a properly formatted header for performing Globus Gass GETs with the given information.- Parameters:
path
- the path of the file to gethost
- the host which contains the file to get- Returns:
String
the properly formatted header to be sent to a gass server
-
PUT
public static java.lang.String PUT(java.lang.String path, java.lang.String host, long length, boolean append)
This method concatenates a properly formatted header for performing Globus Gass PUTs with the given information.- Parameters:
path
- the path of the remote file to put tohost
- the host of the remote file to put tolength
- the length of data which will be sent (the size of the file)append
- append mode- Returns:
String
the properly formatted header to be sent to a gass server
-
SHUTDOWN
public static java.lang.String SHUTDOWN(java.lang.String path, java.lang.String host)
-
-