KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > output > UnavailableResult


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.output;
10
11 import org.jboss.portal.server.WindowContext;
12
13 /**
14  * It exists but cannot be used.
15  *
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.1 $
18  */

19 public class UnavailableResult extends Result
20 {
21
22    private boolean permanent;
23    private int seconds;
24
25    public UnavailableResult(WindowContext producer)
26    {
27       super(producer);
28       this.seconds = 0;
29       this.permanent = true;
30    }
31
32    public UnavailableResult(WindowContext producer, int seconds)
33    {
34       super(producer);
35       this.seconds = seconds;
36       this.permanent = false;
37    }
38
39    public int getUnavailableSeconds()
40    {
41       return seconds;
42    }
43
44    public boolean isPermanent()
45    {
46       return permanent;
47    }
48 }
49
Popular Tags