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.
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