javax.servlet
Class UnavailableException
public class UnavailableException
This is a special kind of exception telling the server that this particular
servlet is currently not available.
It has two kinds of unavailability:
UnavailableException
public UnavailableException(String message)
Constructor for a permanent unavailable exception
UnavailableException
public UnavailableException(String message,
int seconds)
Constructor for a temporary unavailable exception
UnavailableException
public UnavailableException(int seconds,
Servlet servlet,
String message)
Constructor for a temporary unavailable exception
UnavailableException
public UnavailableException(Servlet servlet,
String message)
Constructor for a permanent unavailable exception
getServlet
public Servlet getServlet()
Gets the servlet that is unavailable
getUnavailableSeconds
public int getUnavailableSeconds()
Gets the number of seconds the servlet is unavailable
- the number of seconds. Negative if permanently unavailable
isPermanent
public boolean isPermanent()
Check whether the servlet is permanently unavailable
- whether the servlet is permanently unavailable