|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.servlet.connectionMethods.https.HttpsHeaders
Class to store headers. This stores either a header or an array of headers, Depending if one or more instances of a header has been encountered. A hash table is not kept, as the order of writing headers seems to tickle bugs in certain browsers.
Constructor Summary | |
HttpsHeaders()
|
Method Summary | |
protected void |
add(java.lang.String hname,
java.lang.String hvalue)
Add a header. |
protected void |
clear()
Clear headers. |
protected boolean |
exists(java.lang.String hname)
Determine if a header exists. |
protected org.enhydra.servlet.connectionMethods.https.HttpsHeader |
get(java.lang.String hname)
Search for a header in the table. |
protected int |
getInt(java.lang.String hname)
Get a integer header. |
java.util.Enumeration |
getNames()
Get an enumeration of the headers. |
protected java.lang.String |
getValue(java.lang.String hname)
Get a header value. |
java.lang.String[] |
getValues(java.lang.String hname)
Return array of header values for a header that might have been sent multiple times. |
protected void |
set(java.lang.String hname,
java.lang.String hvalue)
Add a header. |
protected void |
write(org.enhydra.servlet.connectionMethods.https.HttpsOutputStream out)
Write headers to an output stream that have not already been written. |
protected void |
write(org.enhydra.servlet.connectionMethods.https.HttpsOutputStream out,
java.lang.String[] headerOrder)
Write specified headers to an output stream in the specified order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpsHeaders()
Method Detail |
protected org.enhydra.servlet.connectionMethods.https.HttpsHeader get(java.lang.String hname)
hname
- The name of the header to search for.
protected void add(java.lang.String hname, java.lang.String hvalue)
hname
- The header name.hvalue
- The header value.protected void set(java.lang.String hname, java.lang.String hvalue)
hname
- The header name.hvalue
- The header value.protected boolean exists(java.lang.String hname)
hname
- The header name.
protected java.lang.String getValue(java.lang.String hname)
hname
- The header name.
public java.lang.String[] getValues(java.lang.String hname)
hname
- The header name.
protected int getInt(java.lang.String hname)
hname
- The header name.
java.lang.NumberFormatException
- If value of header can't be
converted to an int.public java.util.Enumeration getNames()
protected void write(org.enhydra.servlet.connectionMethods.https.HttpsOutputStream out, java.lang.String[] headerOrder) throws java.io.IOException
headerOrder
- List of headers to write in the order they are
to be written.out
- Output stream to write.
java.io.IOException
- If an write error occured.protected void write(org.enhydra.servlet.connectionMethods.https.HttpsOutputStream out) throws java.io.IOException
out
- Output stream to write.
java.io.IOException
- If an write error occured.protected void clear()
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |