com.ibm.etill.framework.io
Interface HTTPConst

All Known Implementing Classes:
HTTPOutputStream, HTTPInputStream

public interface HTTPConst

This class defines the constants used for the HTTP protocol All these values comes from the IBM SET Advantis Payment Gateway version 0.2 book. Please read this appendix if you want to understand why and how these values are used.


Field Summary
static String ACCEPT_ALL
           
static String ACCEPT_BITMAP
           
static String ACCEPT_GIF
           
static String ACCEPT_JPEG
           
static String ACCEPT_PJPEG
           
static String CA_AGENT
           
static String HTTP_ACCEPT
           
static String HTTP_CONNECTION
           
static String HTTP_EOL
           
static String HTTP_USER_AGENT
           
static String HTTP_VERSION
           
static String KEEP_ALIVE
           
static int MAX_SIZE_HTTPHEADER
          A HTTP Header is expecting to be smaller than MAX_SIZE_HTTPHEADER This value is arbitrary and corresponds to the maximum number of bytes in which a read method tries to find a HTTP header before it gives up and throws an exception.
static String POST
           
static int RC_BAD_REQUEST
           
static int RC_FORBIDDEN
           
static int RC_INTERNAL_SERVER_ERROR
           
static int RC_NOT_IMPLEMENTED
           
static int RC_OK
           
static int RC_SERVICE_UNAVAILABLE
           
static int RC_UNAUTHORIZED
           
static int RC_WRONG
          Response codes that we can receive from the Advantis gateway
static String RCS_BAD_REQUEST
           
static String RCS_FORBIDDEN
           
static String RCS_INTERNAL_SERVER_ERROR
           
static String RCS_NOT_IMPLEMENTED
           
static String RCS_OK
           
static String RCS_SERVICE_UNAVAILABLE
           
static String RCS_UNAUTHORIZED
           
static Object[][] responseCodeTable
           
static String UNKNOWN
           
 

Field Detail

MAX_SIZE_HTTPHEADER

public static final int MAX_SIZE_HTTPHEADER
A HTTP Header is expecting to be smaller than MAX_SIZE_HTTPHEADER This value is arbitrary and corresponds to the maximum number of bytes in which a read method tries to find a HTTP header before it gives up and throws an exception. If something goes wrong when a method tries to read an InputStream that method can not keep reading and looking for a HTTP header for ever.

POST

public static final String POST

HTTP_CONNECTION

public static final String HTTP_CONNECTION

KEEP_ALIVE

public static final String KEEP_ALIVE

CA_AGENT

public static final String CA_AGENT

ACCEPT_GIF

public static final String ACCEPT_GIF

ACCEPT_BITMAP

public static final String ACCEPT_BITMAP

ACCEPT_JPEG

public static final String ACCEPT_JPEG

ACCEPT_PJPEG

public static final String ACCEPT_PJPEG

ACCEPT_ALL

public static final String ACCEPT_ALL

HTTP_ACCEPT

public static final String HTTP_ACCEPT

HTTP_USER_AGENT

public static final String HTTP_USER_AGENT

HTTP_VERSION

public static final String HTTP_VERSION

HTTP_EOL

public static final String HTTP_EOL

RC_WRONG

public static final int RC_WRONG
Response codes that we can receive from the Advantis gateway

RC_OK

public static final int RC_OK

RC_BAD_REQUEST

public static final int RC_BAD_REQUEST

RC_UNAUTHORIZED

public static final int RC_UNAUTHORIZED

RC_FORBIDDEN

public static final int RC_FORBIDDEN

RC_INTERNAL_SERVER_ERROR

public static final int RC_INTERNAL_SERVER_ERROR

RC_NOT_IMPLEMENTED

public static final int RC_NOT_IMPLEMENTED

RC_SERVICE_UNAVAILABLE

public static final int RC_SERVICE_UNAVAILABLE

RCS_OK

public static final String RCS_OK

RCS_BAD_REQUEST

public static final String RCS_BAD_REQUEST

RCS_UNAUTHORIZED

public static final String RCS_UNAUTHORIZED

RCS_FORBIDDEN

public static final String RCS_FORBIDDEN

RCS_INTERNAL_SERVER_ERROR

public static final String RCS_INTERNAL_SERVER_ERROR

RCS_NOT_IMPLEMENTED

public static final String RCS_NOT_IMPLEMENTED

RCS_SERVICE_UNAVAILABLE

public static final String RCS_SERVICE_UNAVAILABLE

responseCodeTable

public static final Object[][] responseCodeTable

UNKNOWN

public static final String UNKNOWN