📄 unavailableexception.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: UnavailableException.java
package javax.servlet;
// Referenced classes of package javax.servlet:
// ServletException, Servlet
public class UnavailableException extends ServletException
{
private Servlet servlet;
private boolean permanent;
private int seconds;
public UnavailableException(Servlet servlet, String msg)
{
super(msg);
this.servlet = servlet;
permanent = true;
}
public UnavailableException(int seconds, Servlet servlet, String msg)
{
super(msg);
this.servlet = servlet;
if(seconds <= 0)
this.seconds = -1;
else
this.seconds = seconds;
permanent = false;
}
public UnavailableException(String msg)
{
super(msg);
permanent = true;
}
public UnavailableException(String msg, int seconds)
{
super(msg);
if(seconds <= 0)
this.seconds = -1;
else
this.seconds = seconds;
permanent = false;
}
public boolean isPermanent()
{
return permanent;
}
public Servlet getServlet()
{
return servlet;
}
public int getUnavailableSeconds()
{
return permanent ? -1 : seconds;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -