|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.javarmi.CGIHandlerTS
A thread-safe version of the sun.rmi.transport.proxy.CGIHandler class
sun.rmi.transport.proxy
Field Summary | |
private Hashtable |
commandLookup
|
private CGICommandHandlerTS[] |
commands
|
private int |
contentLength
|
private InputStream |
in
|
private OutputStream |
out
|
private String |
queryString
|
private javax.servlet.http.HttpServletRequest |
request
|
private String |
requestMethod
|
private javax.servlet.http.HttpServletResponse |
response
|
private String |
serverName
|
private int |
serverPort
|
Constructor Summary | |
CGIHandlerTS(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Standard constructor, takes a Properties object and input and output streams. |
Method Summary | |
int |
getContentLength()
This and the other 'get' methods are accessors for the relevant properties and streams. |
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
String |
getQueryString()
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
String |
getServerName()
|
int |
getServerPort()
|
private void |
returnClientError(String error)
Writes a client error to the OutputStream |
private void |
returnServerError(String error)
Writes a server error to the OutputStream |
void |
run()
The body of the thread, it parses the query string and calls one of the four CGICommandHandlerTS implementations appropriately |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.servlet.http.HttpServletRequest request
private javax.servlet.http.HttpServletResponse response
private InputStream in
private OutputStream out
private int contentLength
private String queryString
private String requestMethod
private String serverName
private int serverPort
private CGICommandHandlerTS[] commands
private Hashtable commandLookup
Constructor Detail |
public CGIHandlerTS(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method Detail |
public int getContentLength()
public String getQueryString()
public String getServerName()
public int getServerPort()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public InputStream getInputStream()
public OutputStream getOutputStream()
public void run()
run
in interface Runnable
private void returnClientError(String error)
private void returnServerError(String error)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |