org.openqa.jetty.jetty.servlet
Class Holder

java.lang.Object
  extended by java.util.AbstractMap
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Class _class
           
protected  String _className
           
protected  String _displayName
           
protected  HttpHandler _httpHandler
           
protected  Map _initParams
           
protected  String _name
           
 
Constructor Summary
protected Holder()
          Constructor for Serialization.
protected Holder(HttpHandler httpHandler, String name, String className)
           
 
Method Summary
 Set entrySet()
          Map entrySet method.
 Object get(Object name)
          Map get method.
 String getClassName()
           
 String getDisplayName()
           
 HttpContext getHttpContext()
           
 HttpHandler getHttpHandler()
           
 String getInitParameter(String param)
           
 Enumeration getInitParameterNames()
           
 Map getInitParameters()
           
 String getName()
           
 boolean isStarted()
           
 Object newInstance()
           
 Object put(Object name, Object value)
          Map put method.
 void setDisplayName(String name)
           
 void setInitParameter(String param, String value)
           
 void start()
          Start the LifeCycle.
 void stop()
          Stop the LifeCycle.
 String toString()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_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
Constructor Detail

Holder

protected Holder()
Constructor for Serialization.


Holder

protected Holder(HttpHandler httpHandler,
                 String name,
                 String className)
Method Detail

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.