|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
wt.httpgw.HTTPResponseHeaders
Class to facilitate holding and processing HTTP response headers. These headers could be destine for either the standard java.io.PrintStream of the CGI wrapper, or the HttpServletResponse from our HTTPGatewayServlet. The later had methods to perform most of the needed sets.
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
boolean |
invalidateSession
|
(package private) static long |
serialVersionUID
|
private static String |
versionID
|
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
HTTPResponseHeaders()
public noarg Constructor. |
Method Summary | |
boolean |
containsHeader(String s)
Checks if the response header is present. |
Object |
get(String s)
Gets the value of this response header key. |
Enumeration |
keys()
Gets the response header keys. |
void |
setDateHeader(String s1,
long date)
Sets a date type response header. |
void |
setHeader(String s1,
String s2)
Sets a string type response header. |
void |
setIntHeader(String s1,
int v1)
Sets a int type response header. |
void |
setStatus(int v1)
Sets a simple Status response header. |
void |
setStatus(int v1,
String s1)
Sets a Status response header. |
void |
writeHeaders(javax.servlet.http.HttpServletResponse response)
Causes all response headers presently set to be writen as appropriate using the servlet's header methods. |
void |
writeHeaders(OutputStream outputStream)
Causes all response headers presently set to be writen as appropriate to the output stream of the CGI. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
static final long serialVersionUID
public boolean invalidateSession
Constructor Detail |
public HTTPResponseHeaders()
Method Detail |
public boolean containsHeader(String s)
s
- String the header to search for.
public Enumeration keys()
public Object get(String s)
s
- the key, as a string, to get the value of.
public void setHeader(String s1, String s2)
s1
- String name of the headers2
- String value to which header is setpublic void setDateHeader(String s1, long date)
s1
- String name of the headerdate
- long value to which header is set
value is milliseconds since the epoch.public void setIntHeader(String s1, int v1)
s1
- String name of the headerv1
- int value to which header is setpublic void setStatus(int v1)
v1
- Integer Status codepublic void setStatus(int v1, String s1)
v1
- Integer Status codes1
- String Status reason codepublic void writeHeaders(javax.servlet.http.HttpServletResponse response)
public void writeHeaders(OutputStream outputStream)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |