javax.servlet
Class UnavailableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.ServletException
              extended by javax.servlet.UnavailableException
All Implemented Interfaces:
java.io.Serializable

public class UnavailableException
extends ServletException

Thrown if a servlet is permanently or temporarily unavailable

Version:
$Id: UnavailableException.java,v 1.2 2006/02/28 07:32:47 rickknowles Exp $
Author:
Rick Knowles
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnavailableException

public UnavailableException(int seconds,
                            Servlet servlet,
                            java.lang.String msg)
Deprecated. As of Java Servlet API 2.2, use UnavailableException(String, int) instead.


UnavailableException

public UnavailableException(Servlet servlet,
                            java.lang.String msg)
Deprecated. As of Java Servlet API 2.2, use UnavailableException(String) instead.


UnavailableException

public UnavailableException(java.lang.String msg)
Constructs a new exception with a descriptive message indicating that the servlet is permanently unavailable.


UnavailableException

public 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.

Method Detail

getServlet

public Servlet getServlet()
Deprecated. As of Java Servlet API 2.2, with no replacement. Returns the servlet that is reporting its unavailability.


getUnavailableSeconds

public int getUnavailableSeconds()
Returns the number of seconds the servlet expects to be temporarily unavailable.


isPermanent

public boolean isPermanent()
Returns a boolean indicating whether the servlet is permanently unavailable.



Copyright © 2013. All Rights Reserved.