|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.monkeycoder.monkeynetwork.HttpHeaderData
public class HttpHeaderData
This class represents an HTTP response header. It parses and holds all values of the header in an easy to access container.
| Constructor Summary | |
|---|---|
HttpHeaderData(java.lang.String inHeader)
Creates an HttpHeaderData using the supplied raw response header. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHeaderValue(java.lang.String inKey)
Gets the HTTP Header value for the specified key. |
java.util.ArrayList<java.lang.String> |
getHeaderValues(java.lang.String inKey)
Gets all HTTP Header values for the specified key. |
int |
getHttpMajorVersion()
Gets the HTTP Major version number. |
int |
getHttpMinorVersion()
Gets the HTTP Minor version number. |
java.util.Set<java.lang.String> |
getKeys()
Get a list of available keys from this HTTP Header. |
java.lang.String |
getRawHeader()
Get the original raw HTTP Header. |
int |
getResponseCode()
Gets the HTTP Response Code number. |
java.lang.String |
getResponseMessage()
Gets the HTTP Response message. |
java.lang.String |
toString()
Formats the entire parsed HTTP response header into a String for display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpHeaderData(java.lang.String inHeader)
inHeader - The raw string data of the response header.| Method Detail |
|---|
public java.lang.String getRawHeader()
public java.util.Set<java.lang.String> getKeys()
public java.lang.String getHeaderValue(java.lang.String inKey)
null
is returned.
inKey - The key for which the value will be returned.
public java.util.ArrayList<java.lang.String> getHeaderValues(java.lang.String inKey)
null is returned.
inKey - The key for which the values will be returned.
public int getHttpMajorVersion()
public int getHttpMinorVersion()
public int getResponseCode()
public java.lang.String getResponseMessage()
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 | |||||||