Liferay 6.0.5

com.liferay.portlet
Class PortletRequestImpl

java.lang.Object
  extended by com.liferay.portlet.PortletRequestImpl
All Implemented Interfaces:
LiferayPortletRequest, PortletRequest
Direct Known Subclasses:
ClientDataRequestImpl, EventRequestImpl, RenderRequestImpl

public abstract class PortletRequestImpl
extends Object
implements LiferayPortletRequest


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
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
PortletRequestImpl()
           
 
Method Summary
 void cleanUp()
           
 void defineObjects(PortletConfig portletConfig, PortletResponse portletResponse)
           
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
           
 String getAuthType()
           
 javax.ccpp.Profile getCCPPProfile()
           
 String getContextPath()
           
 javax.servlet.http.Cookie[] getCookies()
           
 String getETag()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
abstract  String getLifecycle()
           
 Locale getLocale()
           
 Enumeration<Locale> getLocales()
           
 String getMethod()
           
 javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()
           
 String getParameter(String name)
           
 Map<String,String[]> getParameterMap()
           
 Enumeration<String> getParameterNames()
           
 String[] getParameterValues(String name)
           
 PortalContext getPortalContext()
           
 Portlet getPortlet()
           
 PortletContext getPortletContext()
           
 PortletMode getPortletMode()
           
 String getPortletName()
           
static PortletRequestImpl getPortletRequestImpl(PortletRequest portletRequest)
           
 PortletSession getPortletSession()
           
 PortletSession getPortletSession(boolean create)
           
 PortletPreferences getPreferences()
           
 PortletPreferencesImpl getPreferencesImpl()
           
 Map<String,String[]> getPrivateParameterMap()
           
 Enumeration<String> getProperties(String name)
           
 String getProperty(String name)
           
 Enumeration<String> getPropertyNames()
           
 Map<String,String[]> getPublicParameterMap()
           
 String getRemoteUser()
           
 Map<String,String[]> getRenderParameters()
           
 String getRequestedSessionId()
           
 String getResponseContentType()
           
 Enumeration<String> getResponseContentTypes()
           
 String getScheme()
           
 String getServerName()
           
 int getServerPort()
           
 LinkedHashMap<String,String> getUserInfo()
           
 Principal getUserPrincipal()
           
 String getWindowID()
           
 WindowState getWindowState()
           
protected  void init(javax.servlet.http.HttpServletRequest request, Portlet portlet, InvokerPortlet invokerPortlet, PortletContext portletContext, WindowState windowState, PortletMode portletMode, PortletPreferences preferences, long plid)
           
 void invalidateSession()
           
 boolean isInvalidParameter(String name)
           
 boolean isPortletModeAllowed(PortletMode portletMode)
           
 boolean isPrivateRequestAttributes()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(String role)
           
 boolean isWindowStateAllowed(WindowState windowState)
           
protected  void mergePublicRenderParameters(DynamicServletRequest dynamicRequest, PortletPreferences preferences, long plid, Map<String,String[]> renderParameters)
           
 void removeAttribute(String name)
           
protected  String removePortletNamespace(InvokerPortlet invokerPortlet, String portletNamespace, String name)
           
 void setAttribute(String name, Object obj)
           
 void setPortletMode(PortletMode portletMode)
           
 void setWindowState(WindowState windowState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletRequestImpl

public PortletRequestImpl()
Method Detail

getPortletRequestImpl

public static PortletRequestImpl getPortletRequestImpl(PortletRequest portletRequest)

cleanUp

public void cleanUp()

defineObjects

public void defineObjects(PortletConfig portletConfig,
                          PortletResponse portletResponse)

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface PortletRequest

getAttributeNames

public Enumeration<String> getAttributeNames()
Specified by:
getAttributeNames in interface PortletRequest

getAuthType

public String getAuthType()
Specified by:
getAuthType in interface PortletRequest

getCCPPProfile

public javax.ccpp.Profile getCCPPProfile()

getContextPath

public String getContextPath()
Specified by:
getContextPath in interface PortletRequest

getCookies

public javax.servlet.http.Cookie[] getCookies()
Specified by:
getCookies in interface PortletRequest

getETag

public String getETag()

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()
Specified by:
getHttpServletRequest in interface LiferayPortletRequest

getLifecycle

public abstract String getLifecycle()

getLocale

public Locale getLocale()
Specified by:
getLocale in interface PortletRequest

getLocales

public Enumeration<Locale> getLocales()
Specified by:
getLocales in interface PortletRequest

getMethod

public String getMethod()

getOriginalHttpServletRequest

public javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface PortletRequest

getParameterMap

public Map<String,String[]> getParameterMap()
Specified by:
getParameterMap in interface PortletRequest

getParameterNames

public Enumeration<String> getParameterNames()
Specified by:
getParameterNames in interface PortletRequest

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface PortletRequest

getPortalContext

public PortalContext getPortalContext()
Specified by:
getPortalContext in interface PortletRequest

getPortlet

public Portlet getPortlet()

getPortletContext

public PortletContext getPortletContext()

getPortletMode

public PortletMode getPortletMode()
Specified by:
getPortletMode in interface PortletRequest

getPortletName

public String getPortletName()

getPortletSession

public PortletSession getPortletSession()
Specified by:
getPortletSession in interface PortletRequest

getPortletSession

public PortletSession getPortletSession(boolean create)
Specified by:
getPortletSession in interface PortletRequest

getPreferences

public PortletPreferences getPreferences()
Specified by:
getPreferences in interface PortletRequest

getPreferencesImpl

public PortletPreferencesImpl getPreferencesImpl()

getPrivateParameterMap

public Map<String,String[]> getPrivateParameterMap()
Specified by:
getPrivateParameterMap in interface PortletRequest

getProperties

public Enumeration<String> getProperties(String name)
Specified by:
getProperties in interface PortletRequest

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface PortletRequest

getPropertyNames

public Enumeration<String> getPropertyNames()
Specified by:
getPropertyNames in interface PortletRequest

getPublicParameterMap

public Map<String,String[]> getPublicParameterMap()
Specified by:
getPublicParameterMap in interface PortletRequest

getRemoteUser

public String getRemoteUser()
Specified by:
getRemoteUser in interface PortletRequest

getRenderParameters

public Map<String,String[]> getRenderParameters()
Specified by:
getRenderParameters in interface LiferayPortletRequest

getRequestedSessionId

public String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface PortletRequest

getResponseContentType

public String getResponseContentType()
Specified by:
getResponseContentType in interface PortletRequest

getResponseContentTypes

public Enumeration<String> getResponseContentTypes()
Specified by:
getResponseContentTypes in interface PortletRequest

getScheme

public String getScheme()
Specified by:
getScheme in interface PortletRequest

getServerName

public String getServerName()
Specified by:
getServerName in interface PortletRequest

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface PortletRequest

getUserInfo

public LinkedHashMap<String,String> getUserInfo()

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface PortletRequest

getWindowID

public String getWindowID()
Specified by:
getWindowID in interface PortletRequest

getWindowState

public WindowState getWindowState()
Specified by:
getWindowState in interface PortletRequest

invalidateSession

public void invalidateSession()

isInvalidParameter

public boolean isInvalidParameter(String name)

isPortletModeAllowed

public boolean isPortletModeAllowed(PortletMode portletMode)
Specified by:
isPortletModeAllowed in interface PortletRequest

isPrivateRequestAttributes

public boolean isPrivateRequestAttributes()

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Specified by:
isRequestedSessionIdValid in interface PortletRequest

isSecure

public boolean isSecure()
Specified by:
isSecure in interface PortletRequest

isUserInRole

public boolean isUserInRole(String role)
Specified by:
isUserInRole in interface PortletRequest

isWindowStateAllowed

public boolean isWindowStateAllowed(WindowState windowState)
Specified by:
isWindowStateAllowed in interface PortletRequest

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface PortletRequest

setAttribute

public void setAttribute(String name,
                         Object obj)
Specified by:
setAttribute in interface PortletRequest

setPortletMode

public void setPortletMode(PortletMode portletMode)

setWindowState

public void setWindowState(WindowState windowState)

init

protected void init(javax.servlet.http.HttpServletRequest request,
                    Portlet portlet,
                    InvokerPortlet invokerPortlet,
                    PortletContext portletContext,
                    WindowState windowState,
                    PortletMode portletMode,
                    PortletPreferences preferences,
                    long plid)

mergePublicRenderParameters

protected void mergePublicRenderParameters(DynamicServletRequest dynamicRequest,
                                           PortletPreferences preferences,
                                           long plid,
                                           Map<String,String[]> renderParameters)

removePortletNamespace

protected String removePortletNamespace(InvokerPortlet invokerPortlet,
                                        String portletNamespace,
                                        String name)

Liferay 6.0.5