|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.servlet.HttpRequest
public class HttpRequest
| Constructor Summary | |
|---|---|
HttpRequest(HttpServletRequest request)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRequest(HttpServletRequest request)
throws EngineException
EngineException| Method Detail |
|---|
public void init(StateStore stateStore)
RequestStateStore.
This method is only there to be used by the web engine, it should never be called manually.
init in interface RequeststateStore - the StateStore that will be used to
initialize the requestpublic RequestMethod getMethod()
RequestHttpServletRequest.getMethod().
getMethod in interface Requestpublic Map<String,String[]> getParameters()
Request
getParameters in interface RequestMap with all the parameter names and valuespublic Map<String,UploadedFile[]> getFiles()
Request
getFiles in interface RequestMap with all the uploaded filesRequest.hasFile(String),
Request.getFile(String),
Request.getFiles(String)public boolean hasFile(String name)
Request
hasFile in interface Requestname - the name of the file, as declared in the submission
true if the file was uploaded; or
false otherwise
Request.getFiles(),
Request.getFile(String),
Request.getFiles(String)public UploadedFile getFile(String name)
Request
getFile in interface Requestname - the name of the file, as declared in the submission
null if no file was uploaded
Request.getFiles(),
Request.hasFile(String),
Request.getFiles(String)public UploadedFile[] getFiles(String name)
Request
getFiles in interface Requestname - the name of the file, as declared in the submission
null if no files were uploaded for that name
Request.getFiles(),
Request.hasFile(String),
Request.getFile(String)public boolean hasCookie(String name)
Request
hasCookie in interface Requestname - the name of the cookie
true if the cookie was present; or
false otherwise
Request.getCookie(String),
Request.getCookies()public Cookie getCookie(String name)
Request
getCookie in interface Requestname - the name of the cookie.
null if no such cookie is present
Request.hasCookie(String),
Request.getCookies()public Cookie[] getCookies()
RequestHttpServletRequest.getCookies().
getCookies in interface Requestpublic Object getAttribute(String name)
RequestServletRequest.getAttribute(String).
getAttribute in interface Requestpublic boolean hasAttribute(String name)
Request
hasAttribute in interface Requestname - a String specifying the name of the attribute
false otherwise
public Enumeration getAttributeNames()
RequestServletRequest.getAttributeNames().
getAttributeNames in interface Requestpublic String getCharacterEncoding()
RequestServletRequest.getCharacterEncoding().
getCharacterEncoding in interface Requestpublic String getContentType()
RequestServletRequest.getContentType().
getContentType in interface Requestpublic long getDateHeader(String name)
RequestHttpServletRequest.getDateHeader(String).
getDateHeader in interface Requestpublic String getHeader(String name)
RequestHttpServletRequest.getHeader(String).
getHeader in interface Requestpublic Enumeration getHeaderNames()
RequestHttpServletRequest.getHeaderNames().
getHeaderNames in interface Requestpublic Enumeration getHeaders(String name)
RequestHttpServletRequest.getHeaders(String).
getHeaders in interface Requestpublic int getIntHeader(String name)
RequestHttpServletRequest.getIntHeader(String).
getIntHeader in interface Requestpublic Locale getLocale()
RequestServletRequest.getLocale().
getLocale in interface Requestpublic Enumeration getLocales()
RequestServletRequest.getLocales().
getLocales in interface Requestpublic String getProtocol()
RequestServletRequest.getProtocol().
getProtocol in interface Requestpublic String getRemoteAddr()
RequestServletRequest.getRemoteAddr().
getRemoteAddr in interface Requestpublic String getRemoteUser()
RequestHttpServletRequest.getRemoteUser().
getRemoteUser in interface Requestpublic String getRemoteHost()
RequestServletRequest.getRemoteHost().
getRemoteHost in interface Requestpublic RequestDispatcher getRequestDispatcher(String url)
RequestServletRequest.getRequestDispatcher(String).
getRequestDispatcher in interface Requestpublic HttpSession getSession()
RequestHttpServletRequest.getSession().
getSession in interface Requestpublic HttpSession getSession(boolean create)
RequestHttpServletRequest.getSession(boolean).
getSession in interface Requestpublic int getServerPort()
RequestServletRequest.getServerPort().
getServerPort in interface Requestpublic String getScheme()
RequestServletRequest.getScheme().
getScheme in interface Requestpublic String getServerName()
RequestServletRequest.getServerName().
getServerName in interface Requestpublic String getContextPath()
RequestHttpServletRequest.getContextPath().
getContextPath in interface Requestpublic boolean isSecure()
RequestServletRequest.isSecure().
isSecure in interface Requestpublic void removeAttribute(String name)
RequestServletRequest.removeAttribute(String).
removeAttribute in interface Request
public void setAttribute(String name,
Object object)
RequestServletRequest.setAttribute(String, Object).
setAttribute in interface Requestpublic String getServerRootUrl(int port)
RequestThis includes the protocol, the server name and the server port, for
example: http://www.somehost.com:8080.
getServerRootUrl in interface Requestpublic HttpServletRequest getHttpServletRequest()
RequestHttpServletRequest.
getHttpServletRequest in interface RequestHttpServletRequest 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 | |||||||||