com.vaadin.server
Class VaadinPortlet.WrappedHttpAndPortletRequest
java.lang.Object
com.vaadin.server.WrappedPortletRequest
com.vaadin.server.VaadinPortlet.WrappedHttpAndPortletRequest
- All Implemented Interfaces:
- WrappedRequest, java.io.Serializable
- Direct Known Subclasses:
- VaadinPortlet.WrappedGateinRequest, VaadinPortlet.WrappedLiferayRequest
- Enclosing class:
- VaadinPortlet
public static class VaadinPortlet.WrappedHttpAndPortletRequest
- extends WrappedPortletRequest
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
getHeader(java.lang.String name)
Gets the value of a request header, 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 |
getRemoteAddr()
Returns the IP address from which the request came. |
| Methods inherited from class com.vaadin.server.WrappedPortletRequest |
cast, getAttribute, getBrowserDetails, getContentLength, getContentType, getInputStream, getLocale, getPortalProperty, getPortletRequest, getRequestPathInfo, getVaadinService, getWrappedSession, isSecure, setAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VaadinPortlet.WrappedHttpAndPortletRequest
public VaadinPortlet.WrappedHttpAndPortletRequest(javax.portlet.PortletRequest request,
javax.servlet.http.HttpServletRequest originalRequest,
VaadinPortlet.PortletService vaadinService)
getParameter
public java.lang.String getParameter(java.lang.String name)
- Description copied from interface:
WrappedRequest
- 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.
- Specified by:
getParameter in interface WrappedRequest- Overrides:
getParameter in class WrappedPortletRequest
- Parameters:
name - the name of the parameter
- Returns:
- The paramter value, or
null if no parameter with the
given name is present - See Also:
ServletRequest.getParameter(String),
PortletRequest.getParameter(String)
getRemoteAddr
public java.lang.String getRemoteAddr()
- Description copied from interface:
WrappedRequest
- Returns the IP address from which the request came. This might also be
the address of a proxy between the server and the original requester.
- Specified by:
getRemoteAddr in interface WrappedRequest- Overrides:
getRemoteAddr in class WrappedPortletRequest
- Returns:
- a string containing the IP address, or
null if the
address is not available - See Also:
ServletRequest.getRemoteAddr()
getHeader
public java.lang.String getHeader(java.lang.String name)
- Description copied from interface:
WrappedRequest
- Gets the value of a request header, e.g. a http header for a
HttpServletRequest.
- Specified by:
getHeader in interface WrappedRequest- Overrides:
getHeader in class WrappedPortletRequest
- Parameters:
name - the name of the header
- Returns:
- the header value, or
null if the header is not
present in the request - See Also:
HttpServletRequest.getHeader(String)
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Description copied from interface:
WrappedRequest
- Gets all the parameters of the request.
- Specified by:
getParameterMap in interface WrappedRequest- Overrides:
getParameterMap in class WrappedPortletRequest
- Returns:
- A mapping of parameter names to arrays of parameter values
- See Also:
WrappedRequest.getParameter(String),
ServletRequest.getParameterMap(),
PortletRequest.getParameter(String)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.