org.apache.empire.struts2.web.servlet
Class ServletRequestWrapper

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

public class ServletRequestWrapper
extends java.lang.Object
implements RequestContext


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

Constructor Detail

ServletRequestWrapper

public ServletRequestWrapper(javax.servlet.http.HttpServletRequest req)
Method Detail

getExternalRequest

public java.lang.Object getExternalRequest()
Specified by:
getExternalRequest in interface RequestContext

getSessionContext

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

getRequestURI

public java.lang.String getRequestURI()
Specified by:
getRequestURI in interface RequestContext

getAuthType

public java.lang.String getAuthType()
Specified by:
getAuthType in interface RequestContext

getContextPath

public java.lang.String getContextPath()
Specified by:
getContextPath in interface RequestContext

getRemoteUser

public java.lang.String getRemoteUser()
Specified by:
getRemoteUser in interface RequestContext

getUserPrincipal

public java.security.Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface RequestContext

isUserInRole

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

isSecure

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

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface RequestContext

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in interface RequestContext

getServerPort

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

getRequestedSessionId

public java.lang.String getRequestedSessionId()
Specified by:
getRequestedSessionId in interface RequestContext

isRequestedSessionIdValid

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

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface RequestContext

getLocales

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

getParameterNames

public java.util.Enumeration<java.lang.String> getParameterNames()
Specified by:
getParameterNames in interface RequestContext

getParameter

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

getParameterValues

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

getParameterMap

public java.util.Map<java.lang.String,java.lang.String> getParameterMap()
Specified by:
getParameterMap in interface RequestContext

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
Specified by:
getAttributeNames in interface RequestContext

getAttribute

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

setAttribute

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

removeAttribute

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


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