|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.bbn.openmap.util.http.HttpRequestEvent
public class HttpRequestEvent
An event corresponding to a single HTTP request ("GET" command).
Field Summary | |
---|---|
protected java.io.OutputStream |
output
|
protected java.lang.String |
request
|
protected java.io.Writer |
writer
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
HttpRequestEvent(java.lang.Object source,
java.lang.String request,
java.io.OutputStream out)
Creates an http request event. |
Method Summary | |
---|---|
java.io.OutputStream |
getOutputStream()
Gets the output stream connected to the http client. |
java.lang.String |
getRequest()
Gets the http request, which is the target of the "GET" command. |
java.io.Writer |
getWriter()
Get a Writer associated with the output stream connected to the http client. |
boolean |
isWriterUsed()
Find out if anyone used the writer. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String request
protected java.io.OutputStream output
protected java.io.Writer writer
Constructor Detail |
---|
public HttpRequestEvent(java.lang.Object source, java.lang.String request, java.io.OutputStream out)
source
- the source objectrequest
- the parsed target of the "GET" commandout
- the http client output streamMethod Detail |
---|
public java.lang.String getRequest()
For the URL
http://www.bbn.com/openmap/docs/index.html
the request string is /openmap/docs/index.html
public java.io.OutputStream getOutputStream()
public java.io.Writer getWriter()
Writer
public boolean isWriterUsed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |