| |
|
| org.mortbay.jetty.servlet.Holder org.mortbay.jetty.servlet.ServletHolder
ServletHolder | public class ServletHolder extends Holder implements Comparable(Code) | | 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.
author: Greg Wilkins |
ServletHolder | public ServletHolder()(Code) | | Constructor .
|
ServletHolder | public ServletHolder(Servlet servlet)(Code) | | Constructor for existing servlet.
|
ServletHolder | public ServletHolder(Class servlet)(Code) | | Constructor for existing servlet.
|
compareTo | public int compareTo(Object o)(Code) | | Comparitor by init order.
|
doStop | public void doStop()(Code) | | |
getForcedPath | public String getForcedPath()(Code) | | Returns the forcedPath. |
getInitOrder | public int getInitOrder()(Code) | | |
getUserRoleLink | public String getUserRoleLink(String name)(Code) | | get a user role link.
Parameters: name - The name of the role The name as translated by the link. If no link exists,the name is returned. |
hashCode | public int hashCode()(Code) | | |
setForcedPath | public void setForcedPath(String forcedPath)(Code) | | Parameters: forcedPath - The forcedPath to set. |
setInitOrder | public void setInitOrder(int order)(Code) | | Set the initialize order.
Holders with order<0, are initialized on use. Those with
order>=0 are initialized in increasing order when the handler
is started.
|
setRunAs | public void setRunAs(String role)(Code) | | Parameters: role - Role name that is added to UserPrincipal when this servletis called. |
setServlet | public synchronized void setServlet(Servlet servlet)(Code) | | |
setUserRoleLink | public synchronized void setUserRoleLink(String name, String link)(Code) | | Link a user role.
Translate the role name used by a servlet, to the link name
used by the container.
Parameters: name - The role name as used by the servlet Parameters: link - The role name as used by the container. |
|
|
|