org.apache.struts2.portlet.servlet
Class PortletServletConfig

java.lang.Object
  extended by org.apache.struts2.portlet.servlet.PortletServletConfig
All Implemented Interfaces:
javax.servlet.ServletConfig

public class PortletServletConfig
extends java.lang.Object
implements javax.servlet.ServletConfig

Wrapper object exposing a PortletConfig as a ServletConfig instance. Clients accessing this config object will in fact operate on the PortletConfig object wrapped by this config object.


Constructor Summary
PortletServletConfig(javax.portlet.PortletConfig portletConfig)
           
 
Method Summary
 java.lang.String getInitParameter(java.lang.String name)
           
 java.util.Enumeration getInitParameterNames()
           
 javax.portlet.PortletConfig getPortletConfig()
          Get the wrapped PortletConfig instance.
 javax.servlet.ServletContext getServletContext()
          Get the PortletContext as a PortletServletContext instance.
 java.lang.String getServletName()
          Will return the portlet name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletServletConfig

public PortletServletConfig(javax.portlet.PortletConfig portletConfig)
Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Specified by:
getInitParameter in interface javax.servlet.ServletConfig

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface javax.servlet.ServletConfig

getServletContext

public javax.servlet.ServletContext getServletContext()
Get the PortletContext as a PortletServletContext instance.

Specified by:
getServletContext in interface javax.servlet.ServletConfig
See Also:
ServletConfig.getServletContext()

getServletName

public java.lang.String getServletName()
Will return the portlet name.

Specified by:
getServletName in interface javax.servlet.ServletConfig
See Also:
ServletConfig.getServletName()

getPortletConfig

public javax.portlet.PortletConfig getPortletConfig()
Get the wrapped PortletConfig instance.

Returns:
The wrapped PortletConfig instance.


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.