com.vaadin.terminal.gwt.server
Class AbstractApplicationPortlet.WrappedHttpAndPortletRequest

java.lang.Object
  extended by com.vaadin.terminal.gwt.server.WrappedPortletRequest
      extended by com.vaadin.terminal.gwt.server.AbstractApplicationPortlet.WrappedHttpAndPortletRequest
All Implemented Interfaces:
WrappedRequest, Serializable
Direct Known Subclasses:
AbstractApplicationPortlet.WrappedGateinRequest, AbstractApplicationPortlet.WrappedLiferayRequest
Enclosing class:
AbstractApplicationPortlet

public static class AbstractApplicationPortlet.WrappedHttpAndPortletRequest
extends WrappedPortletRequest

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.WrappedRequest
WrappedRequest.BrowserDetails
 
Constructor Summary
AbstractApplicationPortlet.WrappedHttpAndPortletRequest(PortletRequest request, HttpServletRequest originalRequest, DeploymentConfiguration deploymentConfiguration)
           
 
Method Summary
 String getHeader(String name)
          Gets the value of a request header, e.g.
 String getParameter(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.
 Map<String,String[]> getParameterMap()
          Gets all the parameters of the request.
 String getRemoteAddr()
          Returns the IP address from which the request came.
 
Methods inherited from class com.vaadin.terminal.gwt.server.WrappedPortletRequest
cast, getAttribute, getBrowserDetails, getContentLength, getContentType, getDeploymentConfiguration, getInputStream, getLocale, getPortalProperty, getPortletRequest, getRequestPathInfo, getSessionAttribute, getSessionMaxInactiveInterval, isSecure, setAttribute, setSessionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractApplicationPortlet.WrappedHttpAndPortletRequest

public AbstractApplicationPortlet.WrappedHttpAndPortletRequest(PortletRequest request,
                                                               HttpServletRequest originalRequest,
                                                               DeploymentConfiguration deploymentConfiguration)
Method Detail

getParameter

public String getParameter(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), javax.portlet.PortletRequest#getParameter(String)

getRemoteAddr

public 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 String getHeader(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 Map<String,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(), javax.portlet.PortletRequest#getParameter(String)


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.