Package javax.servlet
Class UnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.servlet.ServletException
-
- javax.servlet.UnavailableException
-
- All Implemented Interfaces:
Serializable
public class UnavailableException extends ServletException
The UnavailableException API.- Author:
- Manfred Riem ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnavailableException(int unavailableSeconds, Servlet servlet, String message)
Deprecated.UnavailableException(String message)
Constructor.UnavailableException(String message, int unavailableSeconds)
Constructor.UnavailableException(Servlet servlet, String message)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Servlet
getServlet()
Deprecated.int
getUnavailableSeconds()
Get the unavailableSeconds.boolean
isPermanent()
Is unavailability permanent.-
Methods inherited from class javax.servlet.ServletException
getRootCause
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnavailableException
public UnavailableException(String message)
Constructor.- Parameters:
message
- the message.
-
UnavailableException
public UnavailableException(String message, int unavailableSeconds)
Constructor.- Parameters:
message
- the message.unavailableSeconds
- the unavailable seconds.
-
UnavailableException
@Deprecated public UnavailableException(Servlet servlet, String message)
Deprecated.Constructor.- Parameters:
servlet
- the servlet.message
- the message.
-
UnavailableException
@Deprecated public UnavailableException(int unavailableSeconds, Servlet servlet, String message)
Deprecated.Constructor.- Parameters:
unavailableSeconds
- the unavailable seconds.servlet
- the servlet.message
- the message.
-
-
Method Detail
-
getServlet
@Deprecated public Servlet getServlet()
Deprecated.Get the servlet.- Returns:
- the servlet
-
getUnavailableSeconds
public int getUnavailableSeconds()
Get the unavailableSeconds.- Returns:
- the unavailable seconds.
-
isPermanent
public boolean isPermanent()
Is unavailability permanent.- Returns:
- true if it is, false otherwise.
-
-