Package org.globus.util.http
Class HTTPProtocol
- java.lang.Object
-
- org.globus.util.http.HTTPProtocol
-
- Direct Known Subclasses:
GRAMProtocol
public class HTTPProtocol extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHUNKED
static String
CHUNKING
static String
CONNECTION
static String
CONNECTION_CLOSE
static String
CONTENT_LENGTH
static String
CONTENT_TYPE
static String
CRLF
static String
HOST
static String
HTTP_VERSION
static String
LOCATION
static String
METHOD
static String
SERVER
static String
USER_AGENT
-
Constructor Summary
Constructors Constructor Description HTTPProtocol()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
getBadRequestErrorReply()
static String
getErrorReply(int error, String message)
static String
getFileNotFoundErrorReply()
static String
getForbiddenErrorReply()
static String
getOKReply(String application)
static String
getOKReply(String application, String msg)
static String
getServerErrorReply()
-
-
-
Field Detail
-
CRLF
public static final String CRLF
- See Also:
- Constant Field Values
-
HTTP_VERSION
public static final String HTTP_VERSION
- See Also:
- Constant Field Values
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
CONTENT_LENGTH
public static final String CONTENT_LENGTH
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
- See Also:
- Constant Field Values
-
SERVER
public static final String SERVER
- See Also:
- Constant Field Values
-
CONNECTION
public static final String CONNECTION
- See Also:
- Constant Field Values
-
LOCATION
public static final String LOCATION
- See Also:
- Constant Field Values
-
CHUNKED
public static final String CHUNKED
- See Also:
- Constant Field Values
-
CONNECTION_CLOSE
public static final String CONNECTION_CLOSE
- See Also:
- Constant Field Values
-
CHUNKING
public static final String CHUNKING
- See Also:
- Constant Field Values
-
-
Method Detail
-
createHTTPHeader
protected static String createHTTPHeader(String service, String hostname, String application, StringBuffer msg)
-
createPUTHeader
public static String createPUTHeader(String path, String host, String user_agent, String type, long length, boolean append)
-
getBadRequestErrorReply
public static String getBadRequestErrorReply()
-
getFileNotFoundErrorReply
public static String getFileNotFoundErrorReply()
-
getServerErrorReply
public static String getServerErrorReply()
-
getForbiddenErrorReply
public static String getForbiddenErrorReply()
-
-