|
||||||||||
| 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 WrappedRequest with path and parameters from one request and
WrappedRequest.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.WrappedRequest |
|---|
WrappedRequest.BrowserDetails |
| Constructor Summary | |
|---|---|
CombinedRequest(WrappedRequest 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. |
WrappedRequest.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 WrappedRequest.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 |
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. |
WrappedRequest |
getSecondRequest()
Gets the original second request. |
VaadinService |
getVaadinService()
Gets the vaadin service for the context of this request. |
WrappedSession |
getWrappedSession()
Gets the session associated with this request. |
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(WrappedRequest 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)
WrappedRequest
getParameter in interface WrappedRequestparameter - 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()
WrappedRequest
getParameterMap in interface WrappedRequestWrappedRequest.getParameter(String),
ServletRequest.getParameterMap(),
PortletRequest.getParameter(String)public int getContentLength()
WrappedRequestWrappedRequest.getInputStream().
getContentLength in interface WrappedRequestServletRequest.getContentLength(),
ClientDataRequest.getContentLength()
public java.io.InputStream getInputStream()
throws java.io.IOException
WrappedRequestWrappedRequest.getContentLength()
without reading the full stream contents.
getInputStream in interface WrappedRequestjava.io.IOException - if the input stream can not be openedServletRequest.getInputStream(),
ClientDataRequest.getPortletInputStream()public java.lang.Object getAttribute(java.lang.String name)
WrappedRequest
getAttribute in interface WrappedRequestname - 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)
WrappedRequest
setAttribute in interface WrappedRequestname - the name of the attributevalue - the attribute valueServletRequest.setAttribute(String, Object),
PortletRequest.setAttribute(String, Object)public java.lang.String getRequestPathInfo()
WrappedRequestnull if no path information is available. Does
always start with / if the path isn't null.
getRequestPathInfo in interface WrappedRequestHttpServletRequest.getPathInfo()public WrappedSession getWrappedSession()
WrappedRequest
getWrappedSession in interface WrappedRequestWrappedSession,
HttpServletRequest.getSession(),
PortletRequest.getPortletSession()public java.lang.String getContentType()
WrappedRequest
getContentType in interface WrappedRequestServletRequest.getContentType(),
ClientDataRequest.getContentType()public WrappedRequest.BrowserDetails getBrowserDetails()
WrappedRequestUI.init(WrappedRequest).
getBrowserDetails in interface WrappedRequestnull if details are not
availableWrappedRequest.BrowserDetailspublic WrappedRequest getSecondRequest()
public java.util.Locale getLocale()
WrappedRequest
getLocale in interface WrappedRequestServletRequest.getLocale(),
PortletRequest.getLocale()public java.lang.String getRemoteAddr()
WrappedRequest
getRemoteAddr in interface WrappedRequestnull if the
address is not availableServletRequest.getRemoteAddr()public boolean isSecure()
WrappedRequest
isSecure in interface WrappedRequestServletRequest.isSecure(),
PortletRequest.isSecure()public java.lang.String getHeader(java.lang.String name)
WrappedRequestHttpServletRequest.
getHeader in interface WrappedRequestname - the name of the header
null if the header is not
present in the requestHttpServletRequest.getHeader(String)public VaadinService getVaadinService()
WrappedRequest
getVaadinService in interface WrappedRequestVaadinService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||