|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tensegrity.palojava.http.handlers.HttpHeaderHandler
public class HttpHeaderHandler
This HttpHandler
is used to parse header strings of a palo
server http response. It provides usefull methods for accessing the fields.
Furthermore it will notice if a header field changed due to changes in the
palo server. In future version one can register an listener to get notified
about those changes
Constructor Summary | |
---|---|
HttpHeaderHandler()
|
Method Summary | |
---|---|
int |
getContentLength()
Returns the length of the subsequent content data |
long |
getCubeToken()
Returns the value of the cube token header field |
long |
getDatabaseToken()
Returns the value of the database token header field |
long |
getDimensionToken()
Returns the value of the dimension token header field |
long |
getServerToken()
Returns the value of the server token header field |
void |
parse(java.io.BufferedReader reader)
Parses the palo serverresponse and reads out all known header fields |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpHeaderHandler()
Method Detail |
---|
public final void parse(java.io.BufferedReader reader) throws java.lang.NumberFormatException, java.io.IOException
reader
- a BufferedReader
which contains the palo
server response
java.lang.NumberFormatException
java.io.IOException
public final int getContentLength()
public final long getServerToken()
public final long getDatabaseToken()
public final long getDimensionToken()
public final long getCubeToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |