public interface DavRequest
| 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 name)
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 getHeader(String name)
name - Name of the header.String getMethod()
String getRequestURI()
String containing
the part of the URL from the
protocol name up to the query string.String getQueryString()
String containing the query
string or null if the URL
contains no query string. The value is not
decoded by the container.String getContextPath()
String specifying the
portion of the request URI that indicates the context
of the request.String getServerPath()
String 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.int getServerPort()
int port.String getScheme()
String getServerName()
String getCharacterEncoding()
InputStream getInputStream() throws IOException
InputStream.InputStream object containing
the body of the request.IOException - if an input or output exception occurred.long getContentLength()
String getContentType()
null.String containing the name
of the MIME type of
the request, or null if the type is not known.Enumeration getHeaderNames()
Object getOriginalRequest()
Copyright © ITHit. All Rights Reserved.