|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--org.mortbay.jetty.servlet.Holder | +--org.mortbay.jetty.servlet.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.
Constructor Summary | |
ServletHolder()
Constructor for Serialization. |
|
ServletHolder(ServletHandler handler,
java.lang.String name,
java.lang.String className)
Constructor. |
|
ServletHolder(ServletHandler handler,
java.lang.String name,
java.lang.String className,
java.lang.String forcedPath)
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Comparitor by init order. |
boolean |
equals(java.lang.Object o)
|
int |
getInitOrder()
|
java.lang.String |
getRunAs()
|
Servlet |
getServlet()
Get the servlet. |
ServletContext |
getServletContext()
|
java.lang.String |
getUserRoleLink(java.lang.String name)
get a user role link. |
void |
handle(ServletRequest request,
ServletResponse response)
Service a request with this servlet. |
void |
setInitOrder(int order)
Set the initialize order. |
void |
setRunAs(java.lang.String role)
|
void |
setUserRoleLink(java.lang.String name,
java.lang.String link)
Link a user role. |
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
Methods inherited from class org.mortbay.jetty.servlet.Holder |
entrySet, get, getClassName, getDisplayName, getHttpHandler, getInitParameter, getInitParameterNames, getInitParameters, getName, isStarted, newInstance, put, setDisplayName, setInitParameter, toString |
Methods inherited from class java.util.AbstractMap |
clear, containsKey, containsValue, hashCode, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServletHolder()
public ServletHolder(ServletHandler handler, java.lang.String name, java.lang.String className)
handler
- The ServletHandler instance for this servlet.name
- The name of the servlet.className
- The class name of the servlet.public ServletHolder(ServletHandler handler, java.lang.String name, java.lang.String className, java.lang.String forcedPath)
handler
- The ServletHandler instance for this servlet.name
- The name of the servlet.className
- The class name of the servlet.forcedPath
- If non null, the request attribute
javax.servlet.include.servlet_path will be set to this path before
service is called.Method Detail |
public int getInitOrder()
public void setInitOrder(int order)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.util.AbstractMap
public ServletContext getServletContext()
public void setUserRoleLink(java.lang.String name, java.lang.String link)
name
- The role name as used by the servletlink
- The role name as used by the container.public java.lang.String getUserRoleLink(java.lang.String name)
name
- The name of the role
public void setRunAs(java.lang.String role)
role
- Role name that is added to UserPrincipal when this servlet
is called.public java.lang.String getRunAs()
public void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
start
in class Holder
java.lang.Exception
- An arbitrary exception may be thrown.public void stop()
LifeCycle
stop
in interface LifeCycle
stop
in class Holder
public Servlet getServlet() throws UnavailableException
UnavailableException
public void handle(ServletRequest request, ServletResponse response) throws ServletException, UnavailableException, java.io.IOException
ServletException
UnavailableException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |