| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
headers
Header entries, percent decoded and forced to lower
case.
|
String |
method
"GET", "POST" etc.
|
LinkedHashMap<String,Vector<String>> |
params
Parsed, percent decoded parameters from URI and, in case of a POST
request body using ,
data.
|
String |
uri
Percent-decoded URI without parameters, for example "/index.cgi"
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryContent()
Return the request body.
|
int |
getContentLength()
Return the length of the request body if known and
-1
otherwise. |
String |
getContentType()
Return the
Content-Type header -or- null if
that header was not present in the request. |
InputStream |
getInputStream()
The input stream.
|
String |
getStringContent() |
public final String uri
public final String method
public final Map<String,String> headers
public final LinkedHashMap<String,Vector<String>> params
Strings containing the bindings for the named
parameter. The order of the URL parameters is preserved by the
LinkedHashMap. The order of the bindings for each parameter
is preserved by the Vector.public InputStream getInputStream()
params.
Otherwise, this argument may be used to read the request body. The
input stream will be closed regardless by the caller.public int getContentLength()
-1
otherwise.public String getContentType()
Content-Type header -or- null if
that header was not present in the request.public byte[] getBinaryContent()
throws IOException
IOException - a variety of reasons, including if it has already been
read.public String getStringContent() throws IOException
IOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.