org.apache.struts2.portlet.servlet
Class PortletServletConfig

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

public class PortletServletConfig
extends Object
implements 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.


Field Summary
private  javax.portlet.PortletConfig portletConfig
           
 
Constructor Summary
PortletServletConfig(javax.portlet.PortletConfig portletConfig)
           
 
Method Summary
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 javax.portlet.PortletConfig getPortletConfig()
          Get the wrapped PortletConfig instance.
 ServletContext getServletContext()
          Get the PortletContext as a PortletServletContext instance.
 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
 

Field Detail

portletConfig

private javax.portlet.PortletConfig portletConfig
Constructor Detail

PortletServletConfig

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

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface ServletConfig

getInitParameterNames

public Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface ServletConfig

getServletContext

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

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

getServletName

public String getServletName()
Will return the portlet name.

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

getPortletConfig

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

Returns:
The wrapped PortletConfig instance.


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