|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.CombinedRequest
public class CombinedRequest
A VaadinRequest with path and parameters from one request and
VaadinRequest.BrowserDetails extracted from another request.
This class is intended to be used for a two request initialization where the
first request fetches the actual application page and the second request
contains information extracted from the browser using javascript.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.VaadinRequest |
|---|
VaadinRequest.BrowserDetails |
| Constructor Summary | |
|---|---|
CombinedRequest(VaadinRequest secondRequest)
Creates a new combined request based on the second request and some details from the first request. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets a request attribute. |
VaadinRequest.BrowserDetails |
getBrowserDetails()
Gets detailed information about the browser from which the request originated. |
int |
getContentLength()
Returns the length of the request content that can be read from the input stream returned by VaadinRequest.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 name)
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. |
VaadinRequest |
getSecondRequest()
Gets the original second request. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinedRequest(VaadinRequest secondRequest)
throws org.json.JSONException
secondRequest - the second request which will be used as the foundation of the
combined request
org.json.JSONException - if the initialParams parameter can not be decoded| Method Detail |
|---|
public java.lang.String getParameter(java.lang.String parameter)
VaadinRequest
getParameter in interface VaadinRequestparameter - the name of the parameter
null if no parameter with the
given name is presentServletRequest.getParameter(String),
PortletRequest.getParameter(String)public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
VaadinRequest
getParameterMap in interface VaadinRequestVaadinRequest.getParameter(String),
ServletRequest.getParameterMap(),
PortletRequest.getParameter(String)public int getContentLength()
VaadinRequestVaadinRequest.getInputStream().
getContentLength in interface VaadinRequestServletRequest.getContentLength(),
ClientDataRequest.getContentLength()
public java.io.InputStream getInputStream()
throws java.io.IOException
VaadinRequestVaadinRequest.getContentLength()
without reading the full stream contents.
getInputStream in interface VaadinRequestjava.io.IOException - if the input stream can not be openedServletRequest.getInputStream(),
ClientDataRequest.getPortletInputStream()public java.lang.Object getAttribute(java.lang.String name)
VaadinRequest
getAttribute in interface VaadinRequestname - the name of the attribute
null if there is no
attribute with the given nameServletRequest.getAttribute(String),
PortletRequest.getAttribute(String)
public void setAttribute(java.lang.String name,
java.lang.Object value)
VaadinRequest
setAttribute in interface VaadinRequestname - the name of the attributevalue - the attribute valueServletRequest.setAttribute(String, Object),
PortletRequest.setAttribute(String, Object)public java.lang.String getRequestPathInfo()
VaadinRequestnull if no path information is available. Does
always start with / if the path isn't null.
getRequestPathInfo in interface VaadinRequestHttpServletRequest.getPathInfo()public WrappedSession getWrappedSession()
VaadinRequest
getWrappedSession in interface VaadinRequestWrappedSession,
HttpServletRequest.getSession(),
PortletRequest.getPortletSession()public WrappedSession getWrappedSession(boolean allowSessionCreation)
VaadinRequest
getWrappedSession in interface VaadinRequestallowSessionCreation - 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)public java.lang.String getContentType()
VaadinRequest
getContentType in interface VaadinRequestServletRequest.getContentType(),
ClientDataRequest.getContentType()public VaadinRequest.BrowserDetails getBrowserDetails()
VaadinRequestUI.init(VaadinRequest).
getBrowserDetails in interface VaadinRequestnull if details are not
availableVaadinRequest.BrowserDetailspublic VaadinRequest getSecondRequest()
public java.util.Locale getLocale()
VaadinRequest
getLocale in interface VaadinRequestServletRequest.getLocale(),
PortletRequest.getLocale()public java.lang.String getRemoteAddr()
VaadinRequest
getRemoteAddr in interface VaadinRequestnull if the
address is not availableServletRequest.getRemoteAddr()public boolean isSecure()
VaadinRequest
isSecure in interface VaadinRequestServletRequest.isSecure(),
PortletRequest.isSecure()public java.lang.String getHeader(java.lang.String name)
VaadinRequestHttpServletRequest.
getHeader in interface VaadinRequestname - the name of the header
null if the header is not
present in the requestHttpServletRequest.getHeader(String)public VaadinService getService()
VaadinRequest
getService in interface VaadinRequestVaadinServicepublic java.lang.String getContextPath()
VaadinRequest
getContextPath in interface VaadinRequestHttpServletRequest.getContextPath(),
PortletRequest.getContextPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||