public interface Request
| Modifier and Type | Interface and Description |
|---|---|
static class |
Request.CacheControlRequest |
static class |
Request.Depth |
static class |
Request.Header |
static class |
Request.Method |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsolutePath()
Return the path portion of the url.
|
String |
getAbsoluteUrl()
Return the complete URL, including protocol, host and port (if specified)
and path
|
String |
getAcceptEncodingHeader() |
String |
getAcceptHeader() |
String |
getAcceptLanguage()
Get the user-agents preferred languages.
|
Map<String,Object> |
getAttributes()
Return a writable map of arbitrary values to be associated with the
request
|
Auth |
getAuthorization() |
Long |
getContentLengthHeader() |
String |
getContentRangeHeader()
Used for partial PUTs
|
String |
getContentTypeHeader() |
Cookie |
getCookie(String name)
This is used to acquire a cookie using the name of that cookie.
|
List<Cookie> |
getCookies()
This is used to acquire all cookies that were sent in the header.
|
int |
getDepthHeader() |
String |
getDestinationHeader() |
String |
getExpectHeader() |
Map<String,FileItem> |
getFiles()
Note to implementors: the parameters will be created by the core handler
classes and added to the attributes map.
|
String |
getFromAddress()
equivalent to Servlet Request getRemoteHost
Returns the fully qualified name of the client or the last proxy that sent the request.
|
Map<String,String> |
getHeaders() |
String |
getHostHeader() |
String |
getIfHeader() |
String |
getIfMatchHeader() |
Date |
getIfModifiedHeader() |
String |
getIfNoneMatchHeader() |
String |
getIfRangeHeader() |
InputStream |
getInputStream() |
Locale |
getLocale()
Use the Accept-Language header to derive a java Locale
|
String |
getLockTokenHeader() |
Request.Method |
getMethod() |
String |
getOriginHeader() |
Boolean |
getOverwriteHeader()
Used for MOVE and COPY methods.
|
Map<String,String> |
getParams()
Note to implementors: the parameters will be created by the core handler
classes and added to the attributes map.
|
String |
getRangeHeader() |
String |
getRefererHeader() |
String |
getRemoteAddr()
Returns the IP of the remote client.
|
String |
getRequestHeader(Request.Header header) |
String |
getTimeoutHeader() |
String |
getUserAgentHeader() |
void |
parseRequestParameters(Map<String,String> params,
Map<String,FileItem> files) |
void |
setAuthorization(Auth auth)
Maybe called by the milton framework after successful non-http
authentication
|
String getFromAddress()
String getLockTokenHeader()
String getRequestHeader(Request.Header header)
Request.Method getMethod()
Auth getAuthorization()
void setAuthorization(Auth auth)
auth - - the new auth objectString getRefererHeader()
String getTimeoutHeader()
String getIfHeader()
String getIfRangeHeader()
String getIfMatchHeader()
String getIfNoneMatchHeader()
Date getIfModifiedHeader()
int getDepthHeader()
String getAbsoluteUrl()
String getAbsolutePath()
String getHostHeader()
String getDestinationHeader()
String getExpectHeader()
InputStream getInputStream() throws IOException
IOExceptionvoid parseRequestParameters(Map<String,String> params, Map<String,FileItem> files) throws RequestParseException
RequestParseExceptionString getContentTypeHeader()
Long getContentLengthHeader()
String getAcceptHeader()
String getAcceptEncodingHeader()
String getAcceptLanguage()
String getRangeHeader()
String getContentRangeHeader()
Boolean getOverwriteHeader()
String getOriginHeader()
String getUserAgentHeader()
Map<String,Object> getAttributes()
Map<String,String> getParams()
Map<String,FileItem> getFiles()
Cookie getCookie(String name)
Cookie object. Otherwise this method will return null. Each
cookie object will contain the name, value and path of the cookie as well
as the optional domain part.name - this is the name of the cookie object to acquireList<Cookie> getCookies()
Cookie objects. Otherwise this method will an empty list.
Each cookie object will contain the name, value and path of the cookie as
well as the optional domain part.String getRemoteAddr()
Locale getLocale()