org.mortbay.jetty.servlet
public class ServletHolder extends Holder implements Comparable
Version: $Id: ServletHolder.java,v 1.53 2005/11/03 08:52:48 gregwilkins Exp $
Constructor Summary | |
---|---|
ServletHolder() Constructor for Serialization. | |
ServletHolder(ServletHandler handler, String name, String className) Constructor. | |
ServletHolder(ServletHandler handler, String name, String className, String forcedPath) Constructor. |
Method Summary | |
---|---|
int | compareTo(Object o) Comparitor by init order. |
boolean | equals(Object o) |
int | getInitOrder() |
String | getRunAs() |
Servlet | getServlet() Get the servlet. |
ServletContext | getServletContext() |
String | getUserRoleLink(String name) get a user role link. |
void | handle(ServletRequest request, ServletResponse response) Service a request with this servlet. |
int | hashCode() |
void | setInitOrder(int order) Set the initialize order.
|
void | setRunAs(String role) |
void | setUserRoleLink(String name, String link) Link a user role.
|
void | start() |
void | stop() |
Parameters: handler The ServletHandler instance for this servlet. name The name of the servlet. className The class name of the servlet.
Parameters: 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.
Returns: The servlet
Parameters: name The name of the role
Returns: The name as translated by the link. If no link exists, the name is returned.
Parameters: role Role name that is added to UserPrincipal when this servlet is called.
Parameters: name The role name as used by the servlet link The role name as used by the container.