|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.WrappedPortletRequest
public class WrappedPortletRequest
Wrapper for PortletRequest and its subclasses.
WrappedRequest,
WrappedPortletResponse,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.WrappedRequest |
|---|
WrappedRequest.BrowserDetails |
| Constructor Summary | |
|---|---|
WrappedPortletRequest(javax.portlet.PortletRequest request,
VaadinPortlet.PortletService vaadinService)
Wraps a portlet request and an associated vaadin service |
|
| Method Summary | |
|---|---|
static WrappedPortletRequest |
cast(WrappedRequest request)
Helper method to get a WrappedPortlettRequest from a
WrappedRequest. |
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 string)
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 name)
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 |
getPortalProperty(java.lang.String name)
Reads a portal property from the portal context of the wrapped request. |
javax.portlet.PortletRequest |
getPortletRequest()
Gets the original, unwrapped portlet 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. |
VaadinPortlet.PortletService |
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 o)
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 WrappedPortletRequest(javax.portlet.PortletRequest request,
VaadinPortlet.PortletService vaadinService)
request - the portlet request to wrapvaadinService - the associated vaadin service| Method Detail |
|---|
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 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.String getParameter(java.lang.String name)
WrappedRequest
getParameter in interface WrappedRequestname - 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 void setAttribute(java.lang.String name,
java.lang.Object o)
WrappedRequest
setAttribute in interface WrappedRequestname - the name of the attributeo - 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 javax.portlet.PortletRequest getPortletRequest()
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 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 string)
WrappedRequestHttpServletRequest.
getHeader in interface WrappedRequeststring - the name of the header
null if the header is not
present in the requestHttpServletRequest.getHeader(String)public java.lang.String getPortalProperty(java.lang.String name)
name - a string with the name of the portal property to get
null if
the property is not definedpublic VaadinPortlet.PortletService getVaadinService()
WrappedRequest
getVaadinService in interface WrappedRequestVaadinServicepublic static WrappedPortletRequest cast(WrappedRequest request)
WrappedPortlettRequest from a
WrappedRequest. Aside from casting, this method also takes
care of situations where there's another level of wrapping.
request - a wrapped request
java.lang.ClassCastException - if the wrapped request doesn't wrap a portlet request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||