|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.servlet.Holder<Servlet>
org.eclipse.jetty.servlet.ServletHolder
public class ServletHolder
Servlet Instance and Context Holder. Holds the name, params and some state of a javax.servlet.Servlet instance. It implements the ServletConfig interface. This class will organise the loading of the servlet when needed or requested.
| 嵌套类摘要 | |
|---|---|
protected class |
ServletHolder.Config
|
class |
ServletHolder.Registration
|
| 从类 org.eclipse.jetty.servlet.Holder 继承的嵌套类/接口 |
|---|
Holder.HolderConfig, Holder.HolderRegistration, Holder.Source |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口 |
|---|
AbstractLifeCycle.AbstractLifeCycleListener |
| 从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口 |
|---|
LifeCycle.Listener |
| 字段摘要 | |
|---|---|
static Map<String,String> |
NO_MAPPED_ROLES
|
| 从类 org.eclipse.jetty.servlet.Holder 继承的字段 |
|---|
_asyncSupported, _class, _className, _displayName, _extInstance, _initParams, _name, _servletHandler |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段 |
|---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
| 构造方法摘要 | |
|---|---|
ServletHolder()
Constructor . |
|
ServletHolder(Class<? extends Servlet> servlet)
Constructor for servlet class. |
|
ServletHolder(Holder.Source creator)
Constructor . |
|
ServletHolder(Servlet servlet)
Constructor for existing servlet. |
|
ServletHolder(String name,
Class<? extends Servlet> servlet)
Constructor for servlet class. |
|
ServletHolder(String name,
Servlet servlet)
Constructor for servlet class. |
|
| 方法摘要 | |
|---|---|
void |
checkServletType()
Check to ensure class of servlet is acceptable. |
int |
compareTo(Object o)
Comparitor by init order. |
void |
destroyInstance(Object o)
|
void |
doStart()
|
void |
doStop()
|
boolean |
equals(Object o)
|
String |
getContextPath()
|
String |
getForcedPath()
|
int |
getInitOrder()
|
ServletRegistration.Dynamic |
getRegistration()
|
Map<String,String> |
getRoleMap()
|
Map<String,String> |
getRoleRefMap()
|
String |
getRunAsRole()
|
Servlet |
getServlet()
Get the servlet. |
Servlet |
getServletInstance()
Get the servlet instance (no initialization done). |
UnavailableException |
getUnavailableException()
|
String |
getUserRoleLink(String name)
get a user role link. |
void |
handle(Request baseRequest,
ServletRequest request,
ServletResponse response)
Service a request with this servlet. |
int |
hashCode()
|
protected void |
initJspServlet()
|
protected void |
initMultiPart()
Register a ServletRequestListener that will ensure tmp multipart files are deleted when the request goes out of scope. |
boolean |
isAvailable()
|
boolean |
isEnabled()
|
boolean |
isSetInitOrder()
|
protected Servlet |
newInstance()
|
void |
setEnabled(boolean enabled)
|
void |
setForcedPath(String forcedPath)
|
void |
setInitOrder(int order)
Set the initialize order. |
void |
setRunAsRole(String role)
|
void |
setServlet(Servlet servlet)
|
void |
setUserRoleLink(String name,
String link)
Link a user role. |
| 从类 org.eclipse.jetty.servlet.Holder 继承的方法 |
|---|
dump, dump, getClassName, getDisplayName, getHeldClass, getInitParameter, getInitParameterNames, getInitParameters, getName, getServletHandler, getSource, illegalStateIfContextStarted, isAsyncSupported, isInstance, setAsyncSupported, setClassName, setDisplayName, setHeldClass, setInitParameter, setInitParameters, setName, setServletHandler, toString |
| 从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法 |
|---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 从接口 org.eclipse.jetty.server.UserIdentity.Scope 继承的方法 |
|---|
getName |
| 字段详细信息 |
|---|
public static final Map<String,String> NO_MAPPED_ROLES
| 构造方法详细信息 |
|---|
public ServletHolder()
public ServletHolder(Holder.Source creator)
public ServletHolder(Servlet servlet)
public ServletHolder(String name,
Class<? extends Servlet> servlet)
public ServletHolder(String name,
Servlet servlet)
public ServletHolder(Class<? extends Servlet> servlet)
| 方法详细信息 |
|---|
public UnavailableException getUnavailableException()
public void setServlet(Servlet servlet)
public int getInitOrder()
public void setInitOrder(int order)
public boolean isSetInitOrder()
public int compareTo(Object o)
Comparable 中的 compareTopublic boolean equals(Object o)
Object 中的 equalspublic int hashCode()
Object 中的 hashCode
public void setUserRoleLink(String name,
String link)
name - The role name as used by the servletlink - The role name as used by the container.public String getUserRoleLink(String name)
name - The name of the role
public Map<String,String> getRoleMap()
public String getForcedPath()
public void setForcedPath(String forcedPath)
forcedPath - The forcedPath to set.public boolean isEnabled()
public void setEnabled(boolean enabled)
public void doStart()
throws Exception
Holder<Servlet> 中的 doStartException
public void doStop()
throws Exception
Holder<Servlet> 中的 doStopException
public void destroyInstance(Object o)
throws Exception
Holder<Servlet> 中的 destroyInstanceException
public Servlet getServlet()
throws ServletException
ServletExceptionpublic Servlet getServletInstance()
public void checkServletType()
throws UnavailableException
UnavailableExceptionpublic boolean isAvailable()
protected void initJspServlet()
throws Exception
Exception
protected void initMultiPart()
throws Exception
Exceptionpublic String getContextPath()
UserIdentity.Scope 中的 getContextPathUserIdentity.Scope.getContextPath()public Map<String,String> getRoleRefMap()
UserIdentity.Scope 中的 getRoleRefMapUserIdentity.Scope.getRoleRefMap()public String getRunAsRole()
public void setRunAsRole(String role)
public void handle(Request baseRequest,
ServletRequest request,
ServletResponse response)
throws ServletException,
UnavailableException,
IOException
ServletException
UnavailableException
IOExceptionpublic ServletRegistration.Dynamic getRegistration()
protected Servlet newInstance()
throws ServletException,
IllegalAccessException,
InstantiationException
ServletException
IllegalAccessException
InstantiationException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||