org.eclipse.jetty.servlet
类 Holder<T>

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.servlet.Holder<T>
所有已实现的接口:
Dumpable, LifeCycle
直接已知子类:
FilterHolder, ServletHolder

public class Holder<T>
extends AbstractLifeCycle
implements Dumpable


嵌套类摘要
protected  class Holder.HolderConfig
           
protected  class Holder.HolderRegistration
           
static class Holder.Source
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
protected  boolean _asyncSupported
           
protected  Class<? extends T> _class
           
protected  String _className
           
protected  String _displayName
           
protected  boolean _extInstance
           
protected  Map<String,String> _initParams
           
protected  String _name
           
protected  ServletHandler _servletHandler
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
protected Holder(Holder.Source source)
           
 
方法摘要
 void destroyInstance(Object instance)
           
 void doStart()
           
 void doStop()
           
 String dump()
           
 void dump(Appendable out, String indent)
           
 String getClassName()
           
 String getDisplayName()
           
 Class<? extends T> getHeldClass()
           
 String getInitParameter(String param)
           
 Enumeration getInitParameterNames()
           
 Map<String,String> getInitParameters()
           
 String getName()
           
 ServletHandler getServletHandler()
           
 Holder.Source getSource()
           
protected  void illegalStateIfContextStarted()
           
 boolean isAsyncSupported()
           
 boolean isInstance()
           
 void setAsyncSupported(boolean suspendable)
           
 void setClassName(String className)
           
 void setDisplayName(String name)
           
 void setHeldClass(Class<? extends T> held)
           
 void setInitParameter(String param, String value)
           
 void setInitParameters(Map<String,String> map)
           
 void setName(String name)
          The name is a primary key for the held object.
 void setServletHandler(ServletHandler servletHandler)
           
 String toString()
           
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

_class

protected transient Class<? extends T> _class

_initParams

protected final Map<String,String> _initParams

_className

protected String _className

_displayName

protected String _displayName

_extInstance

protected boolean _extInstance

_asyncSupported

protected boolean _asyncSupported

_name

protected String _name

_servletHandler

protected ServletHandler _servletHandler
构造方法详细信息

Holder

protected Holder(Holder.Source source)
方法详细信息

getSource

public Holder.Source getSource()

isInstance

public boolean isInstance()
返回:
True if this holder was created for a specific instance.

doStart

public void doStart()
             throws Exception
覆盖:
AbstractLifeCycle 中的 doStart
抛出:
Exception

doStop

public void doStop()
            throws Exception
覆盖:
AbstractLifeCycle 中的 doStop
抛出:
Exception

getClassName

public String getClassName()

getHeldClass

public Class<? extends T> getHeldClass()

getDisplayName

public String getDisplayName()

getInitParameter

public String getInitParameter(String param)

getInitParameterNames

public Enumeration getInitParameterNames()

getInitParameters

public Map<String,String> getInitParameters()

getName

public String getName()

getServletHandler

public ServletHandler getServletHandler()
返回:
Returns the servletHandler.

destroyInstance

public void destroyInstance(Object instance)
                     throws Exception
抛出:
Exception

setClassName

public void setClassName(String className)
参数:
className - The className to set.

setHeldClass

public void setHeldClass(Class<? extends T> held)
参数:
held - The class to hold

setDisplayName

public void setDisplayName(String name)

setInitParameter

public void setInitParameter(String param,
                             String value)

setInitParameters

public void setInitParameters(Map<String,String> map)

setName

public void setName(String name)
The name is a primary key for the held object. Ensure that the name is set BEFORE adding a Holder (eg ServletHolder or FilterHolder) to a ServletHandler.

参数:
name - The name to set.

setServletHandler

public void setServletHandler(ServletHandler servletHandler)
参数:
servletHandler - The ServletHandler that will handle requests dispatched to this servlet.

setAsyncSupported

public void setAsyncSupported(boolean suspendable)

isAsyncSupported

public boolean isAsyncSupported()

toString

public String toString()
覆盖:
Object 中的 toString

illegalStateIfContextStarted

protected void illegalStateIfContextStarted()

dump

public void dump(Appendable out,
                 String indent)
          throws IOException
指定者:
接口 Dumpable 中的 dump
抛出:
IOException

dump

public String dump()
指定者:
接口 Dumpable 中的 dump


Copyright © 2013. All Rights Reserved.