org.mortbay.jetty.servlet
Class Holder

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.mortbay.jetty.servlet.Holder
All Implemented Interfaces:
LifeCycle, java.util.Map, java.io.Serializable
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 inherited from class java.util.Map
java.util.Map.Entry
 
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, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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
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

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

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()


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