org.apache.empire.struts2.web.portlet
Class PortletRequestWrapper

java.lang.Object
  extended by org.apache.empire.struts2.web.portlet.PortletRequestWrapper
All Implemented Interfaces:
RequestContext

public class PortletRequestWrapper
extends Object
implements RequestContext


Constructor Summary
PortletRequestWrapper(javax.portlet.PortletRequest req)
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
           
 String getAuthType()
           
 String getContextPath()
           
 Object getExternalRequest()
           
 Locale getLocale()
           
 Enumeration<Locale> getLocales()
           
 String getParameter(String name)
           
 Map<String,String> getParameterMap()
           
 Enumeration<String> getParameterNames()
           
 String[] getParameterValues(String name)
           
 String getRemoteUser()
           
 String getRequestedSessionId()
           
 String getRequestURI()
           
 String getScheme()
           
 String getServerName()
           
 int getServerPort()
           
 SessionContext getSessionContext()
           
 Principal getUserPrincipal()
           
 boolean isRequestedSessionIdValid()
           
 boolean isSecure()
           
 boolean isUserInRole(String role)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletRequestWrapper

public PortletRequestWrapper(javax.portlet.PortletRequest req)
Method Detail

getExternalRequest

public Object getExternalRequest()
Specified by:
getExternalRequest in interface RequestContext

getSessionContext

public SessionContext getSessionContext()
Specified by:
getSessionContext in interface RequestContext

getRequestURI

public String getRequestURI()
Specified by:
getRequestURI in interface RequestContext

getAuthType

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

getContextPath

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

getRemoteUser

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

getUserPrincipal

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

isUserInRole

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

isSecure

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

getScheme

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

getServerName

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

getServerPort

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

getRequestedSessionId

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

isRequestedSessionIdValid

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

getLocale

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

getLocales

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

getParameterNames

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

getParameter

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

getParameterValues

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

getParameterMap

public Map<String,String> getParameterMap()
Specified by:
getParameterMap in interface RequestContext

getAttributeNames

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

getAttribute

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

setAttribute

public void setAttribute(String name,
                         Object o)
Specified by:
setAttribute in interface RequestContext

removeAttribute

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


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.