org.apache.struts2.dispatcher.ng.listener
Class ListenerHostConfig

java.lang.Object
  extended by org.apache.struts2.dispatcher.ng.listener.ListenerHostConfig
All Implemented Interfaces:
HostConfig

public class ListenerHostConfig
extends java.lang.Object
implements HostConfig

Host configuration that just holds a ServletContext


Constructor Summary
ListenerHostConfig(javax.servlet.ServletContext servletContext)
           
 
Method Summary
 java.lang.String getInitParameter(java.lang.String key)
           
 java.util.Iterator<java.lang.String> getInitParameterNames()
           
 javax.servlet.ServletContext getServletContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerHostConfig

public ListenerHostConfig(javax.servlet.ServletContext servletContext)
Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String key)
Specified by:
getInitParameter in interface HostConfig
Parameters:
key - The parameter key
Returns:
The parameter value

getInitParameterNames

public java.util.Iterator<java.lang.String> getInitParameterNames()
Specified by:
getInitParameterNames in interface HostConfig
Returns:
A list of parameter names

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface HostConfig
Returns:
The servlet context


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