|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VaadinRequest
A generic request to the server, wrapping a more specific request type, e.g. HttpServletReqest or PortletRequest.
| Nested Class Summary | |
|---|---|
static interface |
VaadinRequest.BrowserDetails
Deprecated. might be refactored or removed before 7.0.0 |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets a request attribute. |
VaadinRequest.BrowserDetails |
getBrowserDetails()
Deprecated. might be refactored or removed before 7.0.0 |
int |
getContentLength()
Returns the length of the request content that can be read from the input stream returned by getInputStream(). |
java.lang.String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is not known. |
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
java.lang.String |
getHeader(java.lang.String headerName)
Gets the value of a request header, e.g. |
java.io.InputStream |
getInputStream()
Returns an input stream from which the request content can be read. |
java.util.Locale |
getLocale()
Gets locale information from the query, e.g. |
java.lang.String |
getParameter(java.lang.String parameter)
Gets the named request parameter This is typically a HTTP GET or POST parameter, though other request types might have other ways of representing parameters. |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap()
Gets all the parameters of the request. |
java.lang.String |
getRemoteAddr()
Returns the IP address from which the request came. |
java.lang.String |
getRequestPathInfo()
Gets the path of the requested resource relative to the application. |
VaadinService |
getService()
Gets the vaadin service for the context of this request. |
WrappedSession |
getWrappedSession()
Gets the session associated with this request, creating a new if there is no session. |
WrappedSession |
getWrappedSession(boolean allowSessionCreation)
Gets the session associated with this request, optionally creating a new if there is no session. |
boolean |
isSecure()
Checks whether the request was made using a secure channel, e.g. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Defines a request attribute. |
| Method Detail |
|---|
java.lang.String getParameter(java.lang.String parameter)
parameter - the name of the parameter
null if no parameter with the
given name is presentServletRequest.getParameter(String),
PortletRequest.getParameter(String)java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameter(String),
ServletRequest.getParameterMap(),
PortletRequest.getParameter(String)int getContentLength()
getInputStream().
ServletRequest.getContentLength(),
ClientDataRequest.getContentLength()
java.io.InputStream getInputStream()
throws java.io.IOException
getContentLength()
without reading the full stream contents.
java.io.IOException - if the input stream can not be openedServletRequest.getInputStream(),
ClientDataRequest.getPortletInputStream()java.lang.Object getAttribute(java.lang.String name)
name - the name of the attribute
null if there is no
attribute with the given nameServletRequest.getAttribute(String),
PortletRequest.getAttribute(String)
void setAttribute(java.lang.String name,
java.lang.Object value)
name - the name of the attributevalue - the attribute valueServletRequest.setAttribute(String, Object),
PortletRequest.setAttribute(String, Object)java.lang.String getRequestPathInfo()
null if no path information is available. Does
always start with / if the path isn't null.
HttpServletRequest.getPathInfo()java.lang.String getContextPath()
HttpServletRequest.getContextPath(),
PortletRequest.getContextPath()WrappedSession getWrappedSession()
WrappedSession,
HttpServletRequest.getSession(),
PortletRequest.getPortletSession()WrappedSession getWrappedSession(boolean allowSessionCreation)
allowSessionCreation - true to create a new session for this request if
necessary; false to return null if
there's no current session
WrappedSession,
HttpServletRequest.getSession(boolean),
PortletRequest.getPortletSession(boolean)java.lang.String getContentType()
ServletRequest.getContentType(),
ClientDataRequest.getContentType()@Deprecated VaadinRequest.BrowserDetails getBrowserDetails()
UI.init(VaadinRequest).
null if details are not
availableVaadinRequest.BrowserDetailsjava.util.Locale getLocale()
ServletRequest.getLocale(),
PortletRequest.getLocale()java.lang.String getRemoteAddr()
null if the
address is not availableServletRequest.getRemoteAddr()boolean isSecure()
ServletRequest.isSecure(),
PortletRequest.isSecure()java.lang.String getHeader(java.lang.String headerName)
HttpServletRequest.
headerName - the name of the header
null if the header is not
present in the requestHttpServletRequest.getHeader(String)VaadinService getService()
VaadinService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||