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, getWrappedSessiongetAttribute, 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, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, removeAttribute, setAttributepublic 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)
VaadinRequestgetParameter in interface VaadinRequestgetParameter in interface javax.portlet.PortletRequestgetParameter in class javax.portlet.filter.PortletRequestWrappername - the name of the parameternull if no parameter with the
given name is presentServletRequest.getParameter(String),
PortletRequest.getParameter(String)public String getRemoteAddr()
VaadinRequestgetRemoteAddr in interface VaadinRequestgetRemoteAddr in class VaadinPortletRequestnull if the
address is not availableServletRequest.getRemoteAddr()public String getRemoteHost()
VaadinRequestgetRemoteHost in interface VaadinRequestgetRemoteHost in class VaadinPortletRequestnull if the information is not available.ServletRequest.getRemoteHost()public int getRemotePort()
VaadinRequestgetRemotePort in interface VaadinRequestgetRemotePort in class VaadinPortletRequestServletRequest.getRemotePort()public String getHeader(String name)
VaadinRequestHttpServletRequest.getHeader in interface VaadinRequestgetHeader in class VaadinPortletRequestname - 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 VaadinRequestgetHeaderNames in class VaadinPortletRequestnullHttpServletRequest.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 VaadinRequestgetHeaders in class VaadinPortletRequestname - a String specifying the header namenullHttpServletRequest.getHeaders(String)public Map<String,String[]> getParameterMap()
VaadinRequestgetParameterMap in interface VaadinRequestgetParameterMap in interface javax.portlet.PortletRequestgetParameterMap in class javax.portlet.filter.PortletRequestWrapperVaadinRequest.getParameter(String),
ServletRequest.getParameterMap(),
PortletRequest.getParameter(String)Copyright © 2021 Vaadin Ltd. All rights reserved.