Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

com::prolixtech::jaminid::Protocol Class Reference

List of all members.


Detailed Description

This class captures the essential messages in the HTTP protocol. It behaves as a singleton.

Author:
Constantinos Michael

Definition at line 20 of file Protocol.java.


Static Public Member Functions

static String getHeaderResponseStatus (int statusCode)
static String getMIME (String extension)
static Protocol Instance ()
static void makeNewMIME ()
static boolean requestHeaderExists (String requestHeader)

Static Public Attributes

static final int ACCEPTED = 202
static final int BAD_GATEWAY = 502
static final int BAD_REQUEST = 400
static final int CONFLICT = 409
static final int CONTINUE = 100
static final int CREATED = 201
static final int EXPECTATION_FAILED = 417
static final int FORBIDDEN = 403
static final int GATEWAY_TIMEOUT = 504
static final int GONE = 410
static final String HQ_IFMODSINCE = "If-Modified-Since"
static final String HTTP_VERSION = "HTTP/1.1"
static final int HTTP_VERSION_NOT_SUPPORTED = 505
static final int INTERNAL_SERVER_ERROR = 500
static final int LENGTH_REQUIRED = 411
static final String MIMEFILE = "config/MIME.XML"
static final int MOVED_PERMANENTLY = 301
static final int MOVED_TEMPORARILY = 302
static final int MULTIPLE_CHOICE = 300
static final int NO_CONTENT = 204
static final int NONE_ACCEPTABLE = 406
static final int NOT_ALLOWED = 405
static final int NOT_FOUND = 404
static final int NOT_IMPLEMENTED = 501
static final int NOT_MODIFIED = 304
static final int OK = 200
static final int PARTIAL_CONTENT = 206
static final int PAYMENT_REQUIRED = 402
static final int PRECONDITION_FAILED = 412
static final int PROVISIONAL_INFORMATION = 203
static final int PROXY_AUTH_REQUIRED = 407
static final int REQUEST_ENTITY_TOO_LARGE = 413
static final int REQUEST_TIMEOUT = 408
static final int REQUEST_URI_TOO_LONG = 414
static final int REQUESTED_RANGE_NOT_SATISFIABLE = 416
static final int RESET_CONTENT = 205
static final int SEE_OTHER = 303
static final int SERVICE_UNAVAILABLE = 503
static final int SWITCHING = 101
static final int UNAUTHORIZED = 401
static final int UNSUPPORTED_MEDIA_TYPE = 415
static final int USE_PROXY = 305

Private Member Functions

 Protocol ()

Static Private Attributes

static HashMap< String, Boolean > headerEntity = new HashMap<String, Boolean>()
static HashMap< String, Boolean > headerRequest = new HashMap<String, Boolean>()
static HashMap< String, Boolean > headerResponse = new HashMap<String, Boolean>()
static HashMap< String, String > headerResponseStatus = new HashMap<String, String>()
static Properties MIME = new Properties()
static HashMap< String, Boolean > requestMethod = new HashMap<String, Boolean>()
static Protocol theInstance

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index