|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Request
This interface contains all the methods that the web engine needs to be able to correctly handle incoming requests.
| Method Detail |
|---|
void init(StateStore stateStore)
StateStore.
This method is only there to be used by the web engine, it should never be called manually.
stateStore - the StateStore that will be used to
initialize the requestRequestMethod getMethod()
HttpServletRequest.getMethod().
Map<String,String[]> getParameters()
Map with all the parameter names and valuesMap<String,UploadedFile[]> getFiles()
Map with all the uploaded fileshasFile(String),
getFile(String),
getFiles(String)boolean hasFile(String name)
name - the name of the file, as declared in the submission
true if the file was uploaded; or
false otherwise
getFiles(),
getFile(String),
getFiles(String)UploadedFile getFile(String name)
name - the name of the file, as declared in the submission
null if no file was uploaded
getFiles(),
hasFile(String),
getFiles(String)UploadedFile[] getFiles(String name)
name - the name of the file, as declared in the submission
null if no files were uploaded for that name
getFiles(),
hasFile(String),
getFile(String)String getServerRootUrl(int port)
This includes the protocol, the server name and the server port, for
example: http://www.somehost.com:8080.
boolean hasCookie(String name)
name - the name of the cookie
true if the cookie was present; or
false otherwise
getCookie(String),
getCookies()Cookie getCookie(String name)
name - the name of the cookie.
null if no such cookie is present
hasCookie(String),
getCookies()Cookie[] getCookies()
HttpServletRequest.getCookies().
Object getAttribute(String name)
ServletRequest.getAttribute(String).
boolean hasAttribute(String name)
name - a String specifying the name of the attribute
false otherwise
Enumeration getAttributeNames()
ServletRequest.getAttributeNames().
void removeAttribute(String name)
ServletRequest.removeAttribute(String).
void setAttribute(String name,
Object object)
ServletRequest.setAttribute(String, Object).
String getCharacterEncoding()
ServletRequest.getCharacterEncoding().
String getContentType()
ServletRequest.getContentType().
long getDateHeader(String name)
HttpServletRequest.getDateHeader(String).
String getHeader(String name)
HttpServletRequest.getHeader(String).
Enumeration getHeaderNames()
HttpServletRequest.getHeaderNames().
Enumeration getHeaders(String name)
HttpServletRequest.getHeaders(String).
int getIntHeader(String name)
HttpServletRequest.getIntHeader(String).
Locale getLocale()
ServletRequest.getLocale().
Enumeration getLocales()
ServletRequest.getLocales().
String getProtocol()
ServletRequest.getProtocol().
String getRemoteAddr()
ServletRequest.getRemoteAddr().
String getRemoteUser()
HttpServletRequest.getRemoteUser().
String getRemoteHost()
ServletRequest.getRemoteHost().
RequestDispatcher getRequestDispatcher(String url)
ServletRequest.getRequestDispatcher(String).
HttpSession getSession()
HttpServletRequest.getSession().
HttpSession getSession(boolean create)
HttpServletRequest.getSession(boolean).
int getServerPort()
ServletRequest.getServerPort().
String getScheme()
ServletRequest.getScheme().
String getServerName()
ServletRequest.getServerName().
String getContextPath()
HttpServletRequest.getContextPath().
boolean isSecure()
ServletRequest.isSecure().
HttpServletRequest getHttpServletRequest()
HttpServletRequest.
HttpServletRequest instance; or
null if this request isn't backed by
HttpServletRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||