| java.lang.Object seda.sandStorm.core.TimeStampedEvent seda.sandStorm.lib.http.httpRequest
Field Summary | |
final public static int | HTTPVER_09 getHttpVer() code corresponding to HTTP/0.9. | final public static int | HTTPVER_10 getHttpVer() code corresponding to HTTP/1.0. | final public static int | HTTPVER_11 getHttpVer() code corresponding to HTTP/1.1. | final public static String | QUERY_KEY_SET Default value for a query key. | final public static int | REQUEST_GET getRequest() code corresponding to a GET request. | final public static int | REQUEST_HEAD getRequest() code corresponding to a HEAD request. | final public static int | REQUEST_POST getRequest() code corresponding to a POST request. |
Constructor Summary | |
| httpRequest(httpConnection conn, String requestStr, String orig_url, int httpver, Vector header, String req_body) Package-internal: Create an httpRequest from the given connection,
request string, URL, HTTP version, and header. |
HTTPVER_09 | final public static int HTTPVER_09(Code) | | getHttpVer() code corresponding to HTTP/0.9.
|
HTTPVER_10 | final public static int HTTPVER_10(Code) | | getHttpVer() code corresponding to HTTP/1.0.
|
HTTPVER_11 | final public static int HTTPVER_11(Code) | | getHttpVer() code corresponding to HTTP/1.1.
|
QUERY_KEY_SET | final public static String QUERY_KEY_SET(Code) | | Default value for a query key.
|
REQUEST_GET | final public static int REQUEST_GET(Code) | | getRequest() code corresponding to a GET request.
|
REQUEST_HEAD | final public static int REQUEST_HEAD(Code) | | getRequest() code corresponding to a HEAD request.
|
REQUEST_POST | final public static int REQUEST_POST(Code) | | getRequest() code corresponding to a POST request.
|
getHeader | public String getHeader(String key)(Code) | | Return the header line corresponding to the given key.
For example, to get the 'User-Agent' field from the header,
use getHeader("User-Agent").
|
getHttpVer | public int getHttpVer()(Code) | | Return the code corresponding to the HTTP version. Each code has
one of the HTTPVER_* values from this class.
|
getQuery | public String getQuery(String key)(Code) | | Return the value associated with the given query key.
If a key as more than one value then only the first value
will be returned.
|
getQueryKeys | public Enumeration getQueryKeys()(Code) | | Return an enumeration of keys in the query string, if any.
|
getQuerySet | public String[] getQuerySet(String key)(Code) | | Return the set of values associated with the given query key.
|
getRequest | public int getRequest()(Code) | | Return the code corresponding to the request. Each code has
one of the REQUEST_* values from this class.
|
getRequestClass | public int getRequestClass()(Code) | | |
getServerPort | public int getServerPort()(Code) | | |
headerNeeded | public boolean headerNeeded()(Code) | | Indicates whether this request requires a header to be sent
in the response (that is, whether this is HTTP/1.0 or later).
|
setRequestClass | public void setRequestClass(int theclass)(Code) | | |
setServerPort | public void setServerPort(int val)(Code) | | |
Fields inherited from seda.sandStorm.core.TimeStampedEvent | public long timestamp(Code)(Java Doc)
|
|
|