KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > pci > Output


1 /**
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5
6 /**
7  * Created by The eXo Platform SARL
8  * Author : Mestrallet Benjamin
9  * benjmestrallet@users.sourceforge.net
10  * Date: Jul 30, 2003
11  * Time: 9:09:25 PM
12  */

13 package org.exoplatform.services.portletcontainer.pci;
14
15
16 import java.util.Map JavaDoc;
17 import java.util.HashMap JavaDoc;
18 import org.exoplatform.services.portletcontainer.PortletContainerConstants;
19
20 public class Output {
21
22   final static public String JavaDoc SEND_REDIRECT = "_send_redirect_" ;
23   final static public String JavaDoc LOGIN = "_login_" ;
24   final static public String JavaDoc PASSWORD = "_password_" ;
25   public static final String JavaDoc LOGOUT = "_logout_";
26
27   private Map JavaDoc properties = new HashMap JavaDoc();
28
29
30   public Map JavaDoc getProperties() {
31     return properties;
32   }
33
34   public void addProperty(String JavaDoc key, Object JavaDoc o) {
35     properties.put(key, o);
36   }
37
38   public void setProperties(Map JavaDoc properties) {
39     this.properties = properties;
40   }
41
42   public boolean hasError(){
43     if(properties.get(PortletContainerConstants.DESTROYED) != null ||
44         properties.get(PortletContainerConstants.EXCEPTION) != null)
45       return true;
46     return false;
47   }
48
49 }
50
Popular Tags