java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
javax.servlet.UnavailableException
- All Implemented Interfaces:
java.io.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, java.lang.String message)
Deprecated.UnavailableException(java.lang.String message)
Constructor.UnavailableException(java.lang.String message, int unavailableSeconds)
Constructor.UnavailableException(Servlet servlet, java.lang.String message)
Deprecated. -
Method Summary
Modifier and Type Method Description Servlet
getServlet()
Deprecated.int
getUnavailableSeconds()
Get the unavailableSeconds.boolean
isPermanent()
Is unavailability permanent.
-
Constructor Details
-
UnavailableException
public UnavailableException(java.lang.String message)Constructor.- Parameters:
message
- the message.
-
UnavailableException
public UnavailableException(java.lang.String message, int unavailableSeconds)Constructor.- Parameters:
message
- the message.unavailableSeconds
- the unavailable seconds.
-
UnavailableException
Deprecated.Constructor.- Parameters:
servlet
- the servlet.message
- the message.
-
UnavailableException
@Deprecated public UnavailableException(int unavailableSeconds, Servlet servlet, java.lang.String message)Deprecated.Constructor.- Parameters:
unavailableSeconds
- the unavailable seconds.servlet
- the servlet.message
- the message.
-
-
Method Details
-
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.
-