|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bitmechanic.maxq.HttpRequestHeader
public class HttpRequestHeader
Parses and stores a http server request. Originally posted to comp.lang.java in 1996.
Field Summary | |
---|---|
java.lang.String |
accept
A list of mime types the client can accept. |
java.lang.String |
authorization
The clients authorization. |
int |
contentLength
The length of the content following the header. |
java.lang.String |
contentType
The type of content following the request header. |
java.lang.String |
ifModifiedSince
A internet address date of the remote copy. |
java.lang.String |
method
Http Request method. |
int |
oldContentLength
The content length of a remote copy of the requested object. |
boolean |
pragmaNoCache
Indicates that no cached versions of the requested object are to be sent. |
java.lang.String |
referer
The requesting documents that contained the url link. |
java.lang.String |
unrecognized
Anything in the header that was unrecognized by this class. |
java.lang.String |
url
The requested url. |
java.lang.String |
userAgent
The client's browser's name. |
java.lang.String |
version
Version of http being used. |
Constructor Summary | |
---|---|
HttpRequestHeader(java.io.InputStream in)
Parses a http header from a stream. |
Method Summary | |
---|---|
java.lang.String |
toString()
(Re)builds the header in a string. |
java.lang.String |
toString(boolean sendUnknowen)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String method
public java.lang.String url
public java.lang.String version
public java.lang.String userAgent
public java.lang.String referer
public java.lang.String ifModifiedSince
public java.lang.String accept
public java.lang.String authorization
public java.lang.String contentType
public int contentLength
public int oldContentLength
public java.lang.String unrecognized
public boolean pragmaNoCache
Constructor Detail |
---|
public HttpRequestHeader(java.io.InputStream in) throws java.io.IOException
in
- The stream to parse.
java.io.IOException
Method Detail |
---|
public java.lang.String toString(boolean sendUnknowen)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |