org.mortbay.jetty.servlet
Class Holder

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.mortbay.jetty.servlet.Holder
All Implemented Interfaces:
java.io.Serializable, java.util.Map, LifeCycle
Direct Known Subclasses:
FilterHolder, ServletHolder

public class Holder
extends java.util.AbstractMap
implements LifeCycle, java.io.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 interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  java.lang.Class _class
           
protected  java.lang.String _className
           
protected  java.lang.String _displayName
           
protected  HttpHandler _httpHandler
           
protected  java.util.Map _initParams
           
protected  java.lang.String _name
           
 
Constructor Summary
protected Holder()
          Constructor for Serialization.
protected Holder(HttpHandler httpHandler, java.lang.String name, java.lang.String className)
           
 
Method Summary
 java.util.Set entrySet()
          Map entrySet method.
 java.lang.Object get(java.lang.Object name)
          Map get method.
 java.lang.String getClassName()
           
 java.lang.String getDisplayName()
           
 HttpContext getHttpContext()
           
 HttpHandler getHttpHandler()
           
 java.lang.String getInitParameter(java.lang.String param)
           
 java.util.Enumeration getInitParameterNames()
           
 java.util.Map getInitParameters()
           
 java.lang.String getName()
           
 boolean isStarted()
           
 java.lang.Object newInstance()
           
 java.lang.Object put(java.lang.Object name, java.lang.Object value)
          Map put method.
 void setDisplayName(java.lang.String name)
           
 void setInitParameter(java.lang.String param, java.lang.String value)
           
 void start()
          Start the LifeCycle.
 void stop()
          Stop the LifeCycle.
 java.lang.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 java.lang.String _name

_displayName

protected java.lang.String _displayName

_className

protected java.lang.String _className

_initParams

protected java.util.Map _initParams

_class

protected transient java.lang.Class _class
Constructor Detail

Holder

protected Holder()
Constructor for Serialization.


Holder

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

getName

public java.lang.String getName()

setDisplayName

public void setDisplayName(java.lang.String name)

getDisplayName

public java.lang.String getDisplayName()

getClassName

public java.lang.String getClassName()

getHttpHandler

public HttpHandler getHttpHandler()

getHttpContext

public HttpContext getHttpContext()

setInitParameter

public void setInitParameter(java.lang.String param,
                             java.lang.String value)

getInitParameter

public java.lang.String getInitParameter(java.lang.String param)

getInitParameters

public java.util.Map getInitParameters()

getInitParameterNames

public java.util.Enumeration getInitParameterNames()

entrySet

public java.util.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 java.util.Map
Specified by:
entrySet in class java.util.AbstractMap
Returns:
The entrySet of the initParameter map

put

public java.lang.Object put(java.lang.Object name,
                            java.lang.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 java.util.Map
Overrides:
put in class java.util.AbstractMap

get

public java.lang.Object get(java.lang.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 java.util.Map
Overrides:
get in class java.util.AbstractMap

start

public void start()
           throws java.lang.Exception
Description copied from interface: LifeCycle
Start the LifeCycle.

Specified by:
start in interface LifeCycle
Throws:
java.lang.Exception - An arbitrary exception may be thrown.

newInstance

public java.lang.Object newInstance()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.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 java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.