| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private transient ServletHolder. | |
| private String | |
| private boolean | |
| private int | |
| private UserRealm | |
| private Map | |
| private String | |
| private transient Servlet | |
| private transient long | |
| private transient UnavailableException |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | compareTo(Object
the object to be compared. o)Implements java. |
| public void | |
| public void | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | |
| public int | |
| public Map | |
| public String | |
| public synchronized Servlet | |
| public UnavailableException | |
| public String | Returns: The name as translated by the link. If no link exists, the name is returned.The name of the role name)get a user role link. |
| public void | |
| public int | |
| private void | |
| public boolean | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public synchronized void | |
| public synchronized void | setUserRoleLink(String
The role name as used by the servlet name, String The role name as used by the container. link)Link a user role. |
| _config | back to summary |
|---|---|
| private transient ServletHolder. | |
| _forcedPath | back to summary |
|---|---|
| private String _forcedPath | |
| _initOnStartup | back to summary |
|---|---|
| private boolean _initOnStartup | |
| _initOrder | back to summary |
|---|---|
| private int _initOrder | |
| _realm | back to summary |
|---|---|
| private UserRealm _realm | |
| _roleMap | back to summary |
|---|---|
| private Map<K, V> _roleMap | |
| _runAs | back to summary |
|---|---|
| private String _runAs | |
| _servlet | back to summary |
|---|---|
| private transient Servlet _servlet | |
| _unavailable | back to summary |
|---|---|
| private transient long _unavailable | |
| _unavailableEx | back to summary |
|---|---|
| private transient UnavailableException _unavailableEx | |
| ServletHolder | back to summary |
|---|---|
| public ServletHolder() Constructor . | |
| ServletHolder | back to summary |
|---|---|
| public ServletHolder(Servlet servlet) Constructor for existing servlet. | |
| ServletHolder | back to summary |
|---|---|
| public ServletHolder(Class<T> servlet) Constructor for existing servlet. | |
| checkServletType | back to summary |
|---|---|
| public void checkServletType() throws UnavailableException Check to ensure class of servlet is acceptable. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Implements java. Comparitor by init order.
| |
| destroyInstance | back to summary |
|---|---|
| public void destroyInstance(Object o) throws Exception | |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception Overrides org. | |
| doStop | back to summary |
|---|---|
| public void doStop() Overrides org. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getForcedPath | back to summary |
|---|---|
public String getForcedPath()
| |
| getInitOrder | back to summary |
|---|---|
| public int getInitOrder() | |
| getRoleMap | back to summary |
|---|---|
| public Map | |
| getRunAs | back to summary |
|---|---|
| public String getRunAs() | |
| getServlet | back to summary |
|---|---|
| public synchronized Servlet getServlet() throws ServletException Get the servlet.
| |
| getUnavailableException | back to summary |
|---|---|
public UnavailableException getUnavailableException()
| |
| getUserRoleLink | back to summary |
|---|---|
| public String getUserRoleLink(String name) get a user role link. | |
| handle | back to summary |
|---|---|
| public void handle(ServletRequest request, ServletResponse response) throws ServletException, UnavailableException, IOException Service a request with this servlet. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initServlet | back to summary |
|---|---|
| private void initServlet() throws ServletException | |
| isAvailable | back to summary |
|---|---|
public boolean isAvailable()
| |
| makeUnavailable | back to summary |
|---|---|
| private void makeUnavailable(UnavailableException e) | |
| makeUnavailable | back to summary |
|---|---|
| private void makeUnavailable(Throwable e) | |
| setForcedPath | back to summary |
|---|---|
public void setForcedPath(String forcedPath)
| |
| setInitOrder | back to summary |
|---|---|
| public void setInitOrder(int order) 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 | back to summary |
|---|---|
public void setRunAs(String role)
| |
| setServlet | back to summary |
|---|---|
| public synchronized void setServlet(Servlet servlet) | |
| setUserRoleLink | back to summary |
|---|---|
| public synchronized void setUserRoleLink(String name, String link) Link a user role. Translate the role name used by a servlet, to the link name used by the container. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getInitParameter(String
the name of the initialization parameter whose value to
get param)Implements javax. |
| public Enumeration | getInitParameterNames()
Implements javax. Enumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters.
|
| public ServletContext | getServletContext()
Implements javax. ServletContext in which the caller
is executing.
|
| public String | getServletName()
Implements javax. |
| Config | back to summary |
|---|---|
| pack-priv Config() | |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String param) Implements javax. Doc from javax. Gets the value of the initialization parameter with the given name. | |
| getInitParameterNames | back to summary |
|---|---|
| public Enumeration Implements javax. Doc from javax. Returns the names of the servlet's initialization parameters
as an
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements javax. Doc from javax. Returns a reference to the
| |
| getServletName | back to summary |
|---|---|
| public String getServletName() Implements javax. Doc from javax. Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Implements javax. |
| public ServletConfig | getServletConfig()
Implements javax. ServletConfig object, which contains
initialization and startup parameters for this servlet.
|
| public String | getServletInfo()
Implements javax. |
| public void | init(ServletConfig
a config)ServletConfig object
containing the servlet's
configuration and initialization parametersImplements javax. |
| public void | service(ServletRequest
the req, ServletResponse ServletRequest object that contains
the client's requestthe res)ServletResponse object that contains
the servlet's responseImplements javax. |
| _stack | back to summary |
|---|---|
| pack-priv Stack<E> _stack | |
| SingleThreadedWrapper | back to summary |
|---|---|
| private SingleThreadedWrapper() | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements javax. Doc from javax. Called by the servlet container to indicate to a servlet that the
servlet is being taken out of service. This method is
only called once all threads within the servlet's
This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state in memory. | |
| getServletConfig | back to summary |
|---|---|
| public ServletConfig getServletConfig() Implements javax. Doc from javax. Returns a Implementations of this interface are responsible for storing the
| |
| getServletInfo | back to summary |
|---|---|
| public String getServletInfo() Implements javax. Doc from javax. Returns information about the servlet, such as author, version, and copyright. The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).
| |
| init | back to summary |
|---|---|
| public void init(ServletConfig config) throws ServletException Implements javax. Doc from javax. Called by the servlet container to indicate to a servlet that the servlet is being placed into service. The servlet container calls the The servlet container cannot place the servlet into service
if the
| |
| service | back to summary |
|---|---|
| public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException Implements javax. Doc from javax. Called by the servlet container to allow the servlet to respond to a request. This method is only called after the servlet's The status code of the response always should be set for a servlet that throws or sends an error. Servlets typically run inside multithreaded servlet containers that can handle multiple requests concurrently. Developers must be aware to synchronize access to any shared resources such as files, network connections, and as well as the servlet's class and instance variables. More information on multithreaded programming in Java is available in the Java tutorial on multi-threaded programming.
| |