org.mortbay.jetty.servlet

Class Holder

Implemented Interfaces:
LifeCycle, Serializable
Known Direct 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

Field Summary

protected Class
_class
protected String
_className
protected String
_displayName
protected HttpHandler
_httpHandler
protected Map
_initParams
protected String
_name

Constructor Summary

Holder()
Constructor for Serialization.
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()
void
stop()
String
toString()

Field Details

_class

protected Class _class

_className

protected String _className

_displayName

protected String _displayName

_httpHandler

protected HttpHandler _httpHandler

_initParams

protected Map _initParams

_name

protected String _name

Constructor Details

Holder

protected Holder()
Constructor for Serialization.

Holder

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

Method Details

entrySet

public Set entrySet()
Map entrySet method. FilterHolder implements the Map interface as a configuration conveniance. The methods are mapped to the filter properties.
Returns:
The entrySet of the initParameter map

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.

getClassName

public String getClassName()

getDisplayName

public String getDisplayName()

getHttpContext

public HttpContext getHttpContext()

getHttpHandler

public HttpHandler getHttpHandler()

getInitParameter

public String getInitParameter(String param)

getInitParameterNames

public Enumeration getInitParameterNames()

getInitParameters

public Map getInitParameters()

getName

public String getName()

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle

newInstance

public Object newInstance()
            throws InstantiationException,
                   IllegalAccessException

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.

setDisplayName

public void setDisplayName(String name)

setInitParameter

public void setInitParameter(String param,
                             String value)

start

public void start()
            throws Exception
Specified by:
start in interface LifeCycle

stop

public void stop()
Specified by:
stop in interface LifeCycle

toString

public String toString()

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