Package org.globus.util.http
Class HTTPProtocol
java.lang.Object
org.globus.util.http.HTTPProtocol
- Direct Known Subclasses:
GRAMProtocol
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createGETHeader
(String path, String host, String user_agent) protected static String
createHTTPHeader
(String service, String hostname, String application, StringBuffer msg) static String
createPUTHeader
(String path, String host, String user_agent, String type, long length, boolean append) static String
ErrorReply
(int error, String msg) static String
static String
getErrorReply
(int error, String message) static String
static String
static String
getOKReply
(String application) static String
getOKReply
(String application, String msg) static String
-
Field Details
-
CRLF
- See Also:
-
HTTP_VERSION
- See Also:
-
METHOD
- See Also:
-
HOST
- See Also:
-
CONTENT_LENGTH
- See Also:
-
CONTENT_TYPE
- See Also:
-
USER_AGENT
- See Also:
-
SERVER
- See Also:
-
CONNECTION
- See Also:
-
LOCATION
- See Also:
-
CHUNKED
- See Also:
-
CONNECTION_CLOSE
- See Also:
-
CHUNKING
- See Also:
-
-
Constructor Details
-
HTTPProtocol
public HTTPProtocol()
-
-
Method Details
-
createHTTPHeader
protected static String createHTTPHeader(String service, String hostname, String application, StringBuffer msg) -
createGETHeader
-
createPUTHeader
-
ErrorReply
-
getErrorReply
-
getBadRequestErrorReply
-
getFileNotFoundErrorReply
-
getServerErrorReply
-
getForbiddenErrorReply
-
getOKReply
-
getOKReply
-