Home » struts-2.1.8.1-src » org.apache » struts2 » portlet » servlet » [javadoc | source]
org.apache.struts2.portlet.servlet
public class: PortletServletRequest [javadoc | source]
java.lang.Object
   org.apache.struts2.portlet.servlet.PortletServletRequest

All Implemented Interfaces:
    PortletActionConstants, HttpServletRequest

Wrapper object exposing a PortletRequest as a HttpServletRequest instance. Clients accessing this request object will in fact operate on the PortletRequest object wrapped by this request object.
Constructor:
 public PortletServletRequest(PortletRequest portletRequest,
    PortletContext portletContext) 
Method from org.apache.struts2.portlet.servlet.PortletServletRequest Summary:
getAttribute,   getAttributeNames,   getAuthType,   getCharacterEncoding,   getContentLength,   getContentType,   getContextPath,   getCookies,   getDateHeader,   getHeader,   getHeaderNames,   getHeaders,   getInputStream,   getIntHeader,   getLocalAddr,   getLocalName,   getLocalPort,   getLocale,   getLocales,   getMethod,   getParameter,   getParameterMap,   getParameterNames,   getParameterValues,   getPathInfo,   getPathTranslated,   getPortletRequest,   getProtocol,   getQueryString,   getReader,   getRealPath,   getRemoteAddr,   getRemoteHost,   getRemotePort,   getRemoteUser,   getRequestDispatcher,   getRequestURI,   getRequestURL,   getRequestedSessionId,   getScheme,   getServerName,   getServerPort,   getServletPath,   getSession,   getSession,   getUserPrincipal,   isRequestedSessionIdFromCookie,   isRequestedSessionIdFromURL,   isRequestedSessionIdFromUrl,   isRequestedSessionIdValid,   isSecure,   isUserInRole,   removeAttribute,   setAttribute,   setCharacterEncoding,   setExtension
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.portlet.servlet.PortletServletRequest Detail:
 public Object getAttribute(String name) 
 public Enumeration getAttributeNames() 
 public String getAuthType() 
 public String getCharacterEncoding() 
    Can only be invoked in the event phase.
 public int getContentLength() 
    Can only be invoked in the event phase.
 public String getContentType() 
    Can only be invoked in the event phase.
 public String getContextPath() 
 public Cookie[] getCookies() 
    Not allowed in a portlet.
 public long getDateHeader(String name) 
    Not allowed in a portlet.
 public String getHeader(String name) 
 public Enumeration getHeaderNames() 
 public Enumeration getHeaders(String name) 
    Gets the values for the specified property from the PortletRequest . Note that a PortletRequest is not guaranteed to map properties to headers.
 public ServletInputStream getInputStream() throws IOException 
 public int getIntHeader(String name) 
    Not allowed in a portlet.
 public String getLocalAddr() 
    Not allowed in a portlet.
 public String getLocalName() 
    Not allowed in a portlet.
 public int getLocalPort() 
    Not allowed in a portlet.
 public Locale getLocale() 
 public Enumeration getLocales() 
 public String getMethod() 
 public String getParameter(String name) 
 public Map getParameterMap() 
 public Enumeration getParameterNames() 
 public String[] getParameterValues(String name) 
 public String getPathInfo() 
 public String getPathTranslated() 
 public PortletRequest getPortletRequest() 
 public String getProtocol() 
    Not allowed in a portlet.
 public String getQueryString() 
 public BufferedReader getReader() throws IOException 
    Can only be invoked in the event phase.
 public String getRealPath(String path) 
 public String getRemoteAddr() 
    Not allowed in a portlet.
 public String getRemoteHost() 
    Not allowed in a portlet.
 public int getRemotePort() 
    Not allowed in a portlet.
 public String getRemoteUser() 
 public RequestDispatcher getRequestDispatcher(String path) 
 public String getRequestURI() 
    Not allowed in a portlet.
 public StringBuffer getRequestURL() 
    Not allowed in a portlet.
 public String getRequestedSessionId() 
 public String getScheme() 
 public String getServerName() 
 public int getServerPort() 
    Not allowed in a portlet.
 public String getServletPath() 
    A PortletRequest has no servlet path. But for compatibility with Struts 2 components and interceptors, the action parameter on the request is mapped to the servlet path.
 public HttpSession getSession() 
 public HttpSession getSession(boolean create) 
 public Principal getUserPrincipal() 
 public boolean isRequestedSessionIdFromCookie() 
    Not allowed in a portlet.
 public boolean isRequestedSessionIdFromURL() 
    Not allowed in a portlet.
 public boolean isRequestedSessionIdFromUrl() 
    Not allowed in a portlet.
 public boolean isRequestedSessionIdValid() 
 public boolean isSecure() 
 public boolean isUserInRole(String role) 
 public  void removeAttribute(String name) 
 public  void setAttribute(String name,
    Object o) 
 public  void setCharacterEncoding(String env) throws UnsupportedEncodingException 
    Can only be invoked in the event phase.
 public  void setExtension(String extension)