org.openqa.jetty.jetty.servlet
Class Holder
java.lang.Object
java.util.AbstractMap
org.openqa.jetty.jetty.servlet.Holder
- All Implemented Interfaces:
- Serializable, Map, LifeCycle
- Direct Known Subclasses:
- FilterHolder, ServletHolder
public class Holder
- extends AbstractMap
- implements LifeCycle, Serializable
- Version:
- $Id: Holder.java,v 1.18 2005/08/13 00:01:27 gregwilkins Exp $
- Author:
- Greg Wilkins
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values |
_httpHandler
protected HttpHandler _httpHandler
_name
protected String _name
_displayName
protected String _displayName
_className
protected String _className
_initParams
protected Map _initParams
_class
protected transient Class _class
Holder
protected Holder()
- Constructor for Serialization.
Holder
protected Holder(HttpHandler httpHandler,
String name,
String className)
getName
public String getName()
setDisplayName
public void setDisplayName(String name)
getDisplayName
public String getDisplayName()
getClassName
public String getClassName()
getHttpHandler
public HttpHandler getHttpHandler()
getHttpContext
public HttpContext getHttpContext()
setInitParameter
public void setInitParameter(String param,
String value)
getInitParameter
public String getInitParameter(String param)
getInitParameters
public Map getInitParameters()
getInitParameterNames
public Enumeration getInitParameterNames()
entrySet
public Set entrySet()
- Map entrySet method.
FilterHolder implements the Map interface as a
configuration conveniance. The methods are mapped to the
filter properties.
- Specified by:
entrySet
in interface Map
- Specified by:
entrySet
in class AbstractMap
- Returns:
- The entrySet of the initParameter map
put
public Object put(Object name,
Object value)
- Map put method.
FilterHolder implements the Map interface as a
configuration conveniance. The methods are mapped to the
filter properties.
- Specified by:
put
in interface Map
- Overrides:
put
in class AbstractMap
get
public Object get(Object name)
- Map get method.
FilterHolder implements the Map interface as a
configuration conveniance. The methods are mapped to the
filter properties.
- Specified by:
get
in interface Map
- Overrides:
get
in class AbstractMap
start
public void start()
throws Exception
- Description copied from interface:
LifeCycle
- Start the LifeCycle.
- Specified by:
start
in interface LifeCycle
- Throws:
Exception
- An arbitrary exception may be thrown.
newInstance
public Object newInstance()
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface LifeCycle
- Returns:
- True if the LifeCycle has been started.
stop
public void stop()
- Description copied from interface:
LifeCycle
- Stop the LifeCycle.
The LifeCycle may wait for current activities to complete
normally, but it can be interrupted.
- Specified by:
stop
in interface LifeCycle
toString
public String toString()
- Overrides:
toString
in class AbstractMap
Copyright © 2011. All Rights Reserved.