|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.filter.PortletRequestWrapper
com.vaadin.server.VaadinPortletRequest
com.vaadin.server.VaadinPortlet.VaadinHttpAndPortletRequest
public abstract static class VaadinPortlet.VaadinHttpAndPortletRequest
Base class for portlet requests that need access to HTTP servlet requests.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest |
---|
javax.portlet.PortletRequest.P3PUserInfos |
Field Summary |
---|
Fields inherited from interface javax.portlet.PortletRequest |
---|
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO |
Constructor Summary | |
---|---|
VaadinPortlet.VaadinHttpAndPortletRequest(javax.portlet.PortletRequest request,
VaadinPortletService vaadinService)
Constructs a new VaadinPortlet.VaadinHttpAndPortletRequest . |
Method Summary | |
---|---|
java.lang.String |
getHeader(java.lang.String name)
Gets the value of a request header, e.g. |
java.util.Enumeration<java.lang.String> |
getHeaderNames()
Returns an enumeration of all the header names this request contains. |
java.util.Enumeration<java.lang.String> |
getHeaders(java.lang.String name)
Returns all the values of the specified request header as an Enumeration of String objects. |
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. |
java.lang.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. |
Methods inherited from class com.vaadin.server.VaadinPortletRequest |
---|
getCharacterEncoding, getContentLength, getContentType, getCurrent, getCurrentPortletRequest, getDateHeader, getInputStream, getMethod, getPathInfo, getPortalProperty, getPortletPreference, getPortletRequest, getReader, getService, getWrappedSession, getWrappedSession |
Methods inherited from class javax.portlet.filter.PortletRequestWrapper |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.server.VaadinRequest |
---|
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, removeAttribute, setAttribute |
Constructor Detail |
---|
public VaadinPortlet.VaadinHttpAndPortletRequest(javax.portlet.PortletRequest request, VaadinPortletService vaadinService)
VaadinPortlet.VaadinHttpAndPortletRequest
.
request
- PortletRequest
to be wrappedvaadinService
- VaadinPortletService
associated with this requestMethod Detail |
---|
protected abstract javax.servlet.http.HttpServletRequest getServletRequest(javax.portlet.PortletRequest request)
request
- PortletRequest
used to
public java.lang.String getParameter(java.lang.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 parameter
null
if no parameter with the
given name is presentServletRequest.getParameter(String)
,
PortletRequest.getParameter(String)
public java.lang.String getRemoteAddr()
VaadinRequest
getRemoteAddr
in interface VaadinRequest
getRemoteAddr
in class VaadinPortletRequest
null
if the
address is not availableServletRequest.getRemoteAddr()
public java.lang.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 java.lang.String getHeader(java.lang.String name)
VaadinRequest
HttpServletRequest
.
getHeader
in interface VaadinRequest
getHeader
in class VaadinPortletRequest
name
- the name of the header
null
if the header is not
present in the requestHttpServletRequest.getHeader(String)
public java.util.Enumeration<java.lang.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 java.util.Enumeration<java.lang.String> getHeaders(java.lang.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 name
null
HttpServletRequest.getHeaders(String)
public java.util.Map<java.lang.String,java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |