public class HttpRequestEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
protected java.io.OutputStream |
output |
protected java.lang.String |
request |
protected java.io.Writer |
writer |
Constructor and Description |
---|
HttpRequestEvent(java.lang.Object source,
java.lang.String request,
java.io.OutputStream out)
Creates an http request event.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.lang.String request
protected java.io.OutputStream output
protected java.io.Writer writer
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 streampublic 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()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details