|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.agents.pra.server.http.HttpRequestHdr
public class HttpRequestHdr
Parses and stores a http server request.
Field Summary | |
---|---|
String |
accept
A list of mime types the client can accept. |
String |
authorization
The clients authorization. |
int |
contentLength
The length of the content following the header. |
String |
contentType
The type of content following the request header. |
String |
ifModifiedSince
A internet address date of the remote copy. |
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. |
String |
queryString
|
String |
referer
The requesting documents that contained the url link. |
String |
unrecognized
Anything in the header that was unrecognized by this class. |
String |
uri
|
String |
url
The requested url. |
String |
userAgent
The client's browser's name. |
String |
version
Version of http being used. |
Constructor Summary | |
---|---|
HttpRequestHdr()
|
Method Summary | |
---|---|
Map<String,String> |
getParameters()
|
String |
getQueryString()
|
String |
getUri()
|
void |
parse(InputStream In)
Parses a http header from a stream. |
void |
setQueryString(String queryString)
|
void |
setUri(String uri)
|
String |
toString()
(Re)builds the header in a string. |
String |
toString(boolean sendUnknowen)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String method
public String url
public String uri
public String queryString
public String version
public String userAgent
public String referer
public String ifModifiedSince
public String accept
public String authorization
public String contentType
public int contentLength
public int oldContentLength
public String unrecognized
public boolean pragmaNoCache
Constructor Detail |
---|
public HttpRequestHdr()
Method Detail |
---|
public void parse(InputStream In) throws HttpHeaderParseException
In
- The stream to parse.
HttpHeaderParseException
public String toString(boolean sendUnknowen)
public String toString()
toString
in class Object
public String getQueryString()
public void setQueryString(String queryString)
queryString
- The queryString to set.public String getUri()
public void setUri(String uri)
uri
- The uri to set.public Map<String,String> getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |