org.tranche.httpd
Class HttpConstant

java.lang.Object
  extended by org.tranche.httpd.HttpConstant

public final class HttpConstant
extends java.lang.Object

HTTP ontologies are wrappered as HTTPConstants. Because these are immutable and defined by the protocol this class is declared and made final and the constructor is private.

Author:
TPapoulias

Field Summary
static HttpConstant CONTENT_LENGTH
           
static HttpConstant CONTENT_TYPE
           
static HttpConstant CONTENT_TYPE_JNLP
           
static HttpConstant CONTENT_TYPE_TEXT_HTML
           
static HttpConstant DEFAULT_HOME_PAGE
           
static HttpConstant ERROR_FILE_NOT_FOUND
           
static HttpConstant ERROR_INVALID_METHOD
           
static HttpConstant ERROR_REQUEST_NOT_UNDERSTOOD
           
static HttpConstant HTTP_VERSION
           
static HttpConstant METHOD_CONNECT
           
static HttpConstant METHOD_DELETE
           
static HttpConstant METHOD_GET
           
static HttpConstant METHOD_OPTIONS
           
static HttpConstant METHOD_POST
           
static HttpConstant METHOD_PUT
           
static HttpConstant METHOD_TRACE
           
static HttpConstant PARAM_VALUE_SEPARATOR
           
static HttpConstant SEPARATOR
           
static HttpConstant SERVICE_UNAVAILABLE
           
static HttpConstant STATUS_OK
           
static HttpConstant STATUS_REQUEST_TIMEOUT
           
 
Method Summary
 java.lang.String getName()
          Getter for the name of this constant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_OPTIONS

public static final HttpConstant METHOD_OPTIONS

METHOD_GET

public static final HttpConstant METHOD_GET

METHOD_POST

public static final HttpConstant METHOD_POST

METHOD_PUT

public static final HttpConstant METHOD_PUT

METHOD_DELETE

public static final HttpConstant METHOD_DELETE

METHOD_TRACE

public static final HttpConstant METHOD_TRACE

METHOD_CONNECT

public static final HttpConstant METHOD_CONNECT

HTTP_VERSION

public static final HttpConstant HTTP_VERSION

SEPARATOR

public static final HttpConstant SEPARATOR

PARAM_VALUE_SEPARATOR

public static final HttpConstant PARAM_VALUE_SEPARATOR

CONTENT_TYPE

public static final HttpConstant CONTENT_TYPE

CONTENT_LENGTH

public static final HttpConstant CONTENT_LENGTH

CONTENT_TYPE_TEXT_HTML

public static final HttpConstant CONTENT_TYPE_TEXT_HTML

CONTENT_TYPE_JNLP

public static final HttpConstant CONTENT_TYPE_JNLP

STATUS_OK

public static final HttpConstant STATUS_OK

STATUS_REQUEST_TIMEOUT

public static final HttpConstant STATUS_REQUEST_TIMEOUT

SERVICE_UNAVAILABLE

public static final HttpConstant SERVICE_UNAVAILABLE

ERROR_INVALID_METHOD

public static final HttpConstant ERROR_INVALID_METHOD

ERROR_FILE_NOT_FOUND

public static final HttpConstant ERROR_FILE_NOT_FOUND

ERROR_REQUEST_NOT_UNDERSTOOD

public static final HttpConstant ERROR_REQUEST_NOT_UNDERSTOOD

DEFAULT_HOME_PAGE

public static final HttpConstant DEFAULT_HOME_PAGE
Method Detail

getName

public final java.lang.String getName()
Getter for the name of this constant

Returns:


This code is free for use both commercially and non-commercially as stated in the project's license