|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.httpgw.HTTPResponse
wt.wrmf.transport.httptransport.GZIPHTTPResponse
Field Summary | |
private static String |
CLASSNAME
|
private GZIPOutputStream |
gzos
|
private OutputStream |
os
|
private static String |
RESOURCE
|
private HTTPResponse |
response
|
private static String |
versionID
|
Fields inherited from class wt.httpgw.HTTPResponse |
respException |
Constructor Summary | |
GZIPHTTPResponse(HTTPResponse response)
|
Method Summary | |
boolean |
containsHeader(String str)
Checks if the response header is present. |
void |
finish()
|
Object |
get(String key)
Gets the value of this response header key. |
OutputStream |
getOutputStream()
Called to get the output stream to write the data to. |
Enumeration |
keys()
Gets the response header keys. |
void |
setDateHeader(String name,
long date)
Sets a date type response header. |
void |
setHeader(String name,
String value)
Sets a string type response header. |
void |
setIntHeader(String name,
int value)
Sets a int type response header. |
void |
setRemoteHost(String remoteHost)
Setter for the remote host that will be displayed in exception tracebacks. |
void |
setRespTarget(Method method,
Object[] args)
Setter for the target method that will generate the real response to the output stream. |
void |
setStatus(int code)
Sets a simple Status response header. |
void |
setStatus(int code,
String reason)
Sets a Status response header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private HTTPResponse response
private GZIPOutputStream gzos
private static final String versionID
private OutputStream os
Constructor Detail |
public GZIPHTTPResponse(HTTPResponse response)
Method Detail |
public OutputStream getOutputStream() throws IOException
HTTPResponse
getOutputStream
in class HTTPResponse
IOException
- if not marshaling response in writeObject.
the output stream is null until such time.
Also, if the response target class or method is
null. There is not a proper business class or
method to write the response.public void finish() throws IOException
IOException
public void setStatus(int code)
HTTPResponse
setStatus
in class HTTPResponse
code
- Integer Status codepublic void setStatus(int code, String reason)
HTTPResponse
setStatus
in class HTTPResponse
code
- Integer Status codereason
- String Status reason codepublic void setIntHeader(String name, int value)
HTTPResponse
setIntHeader
in class HTTPResponse
name
- String name of the headervalue
- int value to which header is setpublic boolean containsHeader(String str)
HTTPResponse
containsHeader
in class HTTPResponse
str
- String the header to search for.
public Object get(String key)
HTTPResponse
get
in class HTTPResponse
key
- the key, as a string, to get the value of.
public Enumeration keys()
HTTPResponse
keys
in class HTTPResponse
public void setDateHeader(String name, long date)
HTTPResponse
setDateHeader
in class HTTPResponse
name
- String name of the headerdate
- long value to which header is set
value is milliseconds since the epoch.public void setHeader(String name, String value)
HTTPResponse
setHeader
in class HTTPResponse
name
- String name of the headervalue
- String value to which header is setpublic void setRemoteHost(String remoteHost)
HTTPResponse
setRemoteHost
in class HTTPResponse
public void setRespTarget(Method method, Object[] args)
HTTPResponse
setRespTarget
in class HTTPResponse
method
- is the target business Methodargs
- are the object array of arguments
needed my the target method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |