public class FilteredDavRequest extends Object implements DavRequest
| Constructor and Description |
|---|
FilteredDavRequest(DavRequest request,
boolean logInput) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharacterEncoding()
Returns request encoding.
|
long |
getContentLength()
Returns the length, in bytes, of the request body.
|
String |
getContentType()
Returns the MIME type of the body of the request, or
null. |
String |
getContextPath()
Returns the portion of the request URI that indicates the context
of the request.
|
String |
getHeader(String s)
Returns http header by name or null if not exists.
|
Enumeration |
getHeaderNames()
Returns an enumeration of all the header names
this request contains.
|
InputStream |
getInputStream()
Retrieves the body of the request as binary data using
a
InputStream. |
String |
getMethod()
Returns http method of the request.
|
Object |
getOriginalRequest()
Returns the original request that was sent by the chosen web container.
|
String |
getQueryString()
Returns the query string that is contained in the request
URL after the path.
|
String |
getRequestURI()
Returns the part of this request's URL from the protocol
name up to the query string in the first line of the HTTP request.
|
String |
getScheme()
Returns http or https server scheme.
|
String |
getServerName()
Returns server name.
|
String |
getServerPath()
Returns the part of this request's URL that calls
the server.
|
int |
getServerPort()
Returns port at which server is running.
|
String |
toString() |
public FilteredDavRequest(DavRequest request, boolean logInput)
public String getHeader(String s)
DavRequestgetHeader in interface DavRequests - Name of the header.public String getMethod()
DavRequestgetMethod in interface DavRequestpublic String getContextPath()
DavRequestgetContextPath in interface DavRequestString specifying the
portion of the request URI that indicates the context
of the request.public String getQueryString()
DavRequestgetQueryString in interface DavRequestString containing the query
string or null if the URL
contains no query string. The value is not
decoded by the container.public String getRequestURI()
DavRequestgetRequestURI in interface DavRequestString containing
the part of the URL from the
protocol name up to the query string.public String getServerPath()
DavRequestgetServerPath in interface DavRequestString containing
the name or path of the server being
called, as specified in the request URL,
decoded, or an empty string if the server
used to process the request is matched
using the "/*" pattern.public String getCharacterEncoding()
DavRequestgetCharacterEncoding in interface DavRequestpublic long getContentLength()
DavRequestgetContentLength in interface DavRequestpublic String getContentType()
DavRequestnull.getContentType in interface DavRequestString containing the name
of the MIME type of
the request, or null if the type is not known.public InputStream getInputStream() throws IOException
DavRequestInputStream.getInputStream in interface DavRequestInputStream object containing
the body of the request.IOException - if an input or output exception occurred.public String getScheme()
DavRequestgetScheme in interface DavRequestpublic String getServerName()
DavRequestgetServerName in interface DavRequestpublic int getServerPort()
DavRequestgetServerPort in interface DavRequestint port.public Enumeration getHeaderNames()
DavRequestgetHeaderNames in interface DavRequestpublic Object getOriginalRequest()
DavRequestgetOriginalRequest in interface DavRequestCopyright © ITHit. All Rights Reserved.