public abstract static class VaadinPortlet.VaadinHttpAndPortletRequest extends VaadinPortletRequest
Constructor and Description |
---|
VaadinHttpAndPortletRequest(javax.portlet.PortletRequest request,
VaadinPortletService vaadinService)
Constructs a new
VaadinPortlet.VaadinHttpAndPortletRequest . |
Modifier and Type | Method and Description |
---|---|
String |
getHeader(String name)
Gets the value of a request header, e.g.
|
Enumeration<String> |
getHeaderNames()
Returns an enumeration of all the header names this request contains.
|
Enumeration<String> |
getHeaders(String name)
Returns all the values of the specified request header as an Enumeration
of String objects.
|
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.
|
String |
getRemoteHost()
Returns the fully qualified name of the client or the last proxy that
sent the request.
|
int |
getRemotePort()
Returns the Internet Protocol (IP) source port of the client or last
proxy that sent the request.
|
protected abstract javax.servlet.http.HttpServletRequest |
getServletRequest(javax.portlet.PortletRequest request)
Returns the original HTTP servlet request for this portlet request.
|
getCharacterEncoding, getContentLength, getContentType, getCurrent, getCurrentPortletRequest, getDateHeader, getInputStream, getMethod, getPathInfo, getPortalProperty, getPortletPreference, getPortletRequest, getReader, getService, getWrappedSession, getWrappedSession
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequest, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, removeAttribute, setAttribute
public VaadinHttpAndPortletRequest(javax.portlet.PortletRequest request, VaadinPortletService vaadinService)
VaadinPortlet.VaadinHttpAndPortletRequest
.request
- PortletRequest
to be wrappedvaadinService
- VaadinPortletService
associated with this requestprotected abstract javax.servlet.http.HttpServletRequest getServletRequest(javax.portlet.PortletRequest request)
request
- PortletRequest
used topublic String getParameter(String name)
VaadinRequest
getParameter
in interface VaadinRequest
getParameter
in interface javax.portlet.PortletRequest
getParameter
in class javax.portlet.filter.PortletRequestWrapper
name
- the name of the parameternull
if no parameter with the
given name is presentServletRequest.getParameter(String)
,
PortletRequest.getParameter(String)
public String getRemoteAddr()
VaadinRequest
getRemoteAddr
in interface VaadinRequest
getRemoteAddr
in class VaadinPortletRequest
null
if the
address is not availableServletRequest.getRemoteAddr()
public String getRemoteHost()
VaadinRequest
getRemoteHost
in interface VaadinRequest
getRemoteHost
in class VaadinPortletRequest
null
if the information is not available.ServletRequest.getRemoteHost()
public int getRemotePort()
VaadinRequest
getRemotePort
in interface VaadinRequest
getRemotePort
in class VaadinPortletRequest
ServletRequest.getRemotePort()
public String getHeader(String name)
VaadinRequest
HttpServletRequest
.getHeader
in interface VaadinRequest
getHeader
in class VaadinPortletRequest
name
- the name of the headernull
if the header is not
present in the requestHttpServletRequest.getHeader(String)
public Enumeration<String> getHeaderNames()
VaadinRequest
Some implementations do not allow access headers using this method, in
which case this method returns null
getHeaderNames
in interface VaadinRequest
getHeaderNames
in class VaadinPortletRequest
null
HttpServletRequest.getHeaderNames()
public Enumeration<String> getHeaders(String name)
VaadinRequest
Some headers, such as Accept-Language
can be sent by clients
as several headers each with a different value rather than sending the
header as a comma separated list.
If the request did not include any headers of the specified name, this
method returns an empty Enumeration. If the request does not support
accessing headers, this method returns null
.
The header name is case insensitive. You can use this method with any request header.
getHeaders
in interface VaadinRequest
getHeaders
in class VaadinPortletRequest
name
- a String specifying the header namenull
HttpServletRequest.getHeaders(String)
public Map<String,String[]> getParameterMap()
VaadinRequest
getParameterMap
in interface VaadinRequest
getParameterMap
in interface javax.portlet.PortletRequest
getParameterMap
in class javax.portlet.filter.PortletRequestWrapper
VaadinRequest.getParameter(String)
,
ServletRequest.getParameterMap()
,
PortletRequest.getParameter(String)
Copyright © 2020 Vaadin Ltd. All rights reserved.