public class UnavailableException extends ServletException
| Constructor and Description |
|---|
UnavailableException(int seconds,
Servlet servlet,
java.lang.String msg)
Deprecated.
As of Java Servlet API 2.2, use UnavailableException(String,
int) instead.
|
UnavailableException(Servlet servlet,
java.lang.String msg)
Deprecated.
As of Java Servlet API 2.2, use UnavailableException(String)
instead.
|
UnavailableException(java.lang.String msg)
Constructs a new exception with a descriptive message indicating that the
servlet is permanently unavailable.
|
UnavailableException(java.lang.String msg,
int seconds)
Constructs a new exception with a descriptive message indicating that the
servlet is temporarily unavailable and giving an estimate of how long it
will be unavailable.
|
| Modifier and Type | Method and Description |
|---|---|
Servlet |
getServlet()
Deprecated.
As of Java Servlet API 2.2, with no replacement. Returns the
servlet that is reporting its unavailability.
|
int |
getUnavailableSeconds()
Returns the number of seconds the servlet expects to be temporarily
unavailable.
|
boolean |
isPermanent()
Returns a boolean indicating whether the servlet is permanently
unavailable.
|
getRootCausepublic UnavailableException(int seconds,
Servlet servlet,
java.lang.String msg)
public UnavailableException(Servlet servlet, java.lang.String msg)
public UnavailableException(java.lang.String msg)
public UnavailableException(java.lang.String msg,
int seconds)
public Servlet getServlet()
public int getUnavailableSeconds()
public boolean isPermanent()
Copyright © 2013. All Rights Reserved.