|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.kano.joscar.OscarTools.HttpHeaderInfo
A structure containing HTTP header information along with the binary data sent in the HTTP stream.
Method Summary | |
java.lang.String |
get(java.lang.String headerName)
Returns the value of the header with the given name. |
ByteBlock |
getData()
Returns the block of data sent in the associated HTTP stream. |
java.util.Map |
getHeaders()
Returns an immutable Map that contains the HTTP header
names as keys and the associated header values as values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String get(java.lang.String headerName)
headerName
- the name of the header to retrieve, like
"content-type"
null
if the
given header was not sent in the associated HTTP streampublic java.util.Map getHeaders()
Map
that contains the HTTP header
names as keys and the associated header values as values. See
OscarTools.parseHttpHeader(ByteBlock)
for details.
public ByteBlock getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |