1 /*
2 * Copyright (c) 2001 - 2005 ivata limited.
3 * All rights reserved.
4 * -----------------------------------------------------------------------------
5 * ivata masks may be redistributed under the GNU General Public
6 * License as published by the Free Software Foundation;
7 * version 2 of the License.
8 *
9 * These programs are free software; you can redistribute them and/or
10 * modify them under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; version 2 of the License.
12 *
13 * These programs are distributed in the hope that they will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * See the GNU General Public License in the file LICENSE.txt for more
18 * details.
19 *
20 * If you would like a copy of the GNU General Public License write to
21 *
22 * Free Software Foundation, Inc.
23 * 59 Temple Place - Suite 330
24 * Boston, MA 02111-1307, USA.
25 *
26 *
27 * To arrange commercial support and licensing, contact ivata at
28 * http://www.ivata.com/contact.jsp
29 * -----------------------------------------------------------------------------
30 * $Log: BrowserConstants.java,v $
31 * Revision 1.2 2005/04/09 18:04:17 colinmacleod
32 * Changed copyright text to GPL v2 explicitly.
33 *
34 * Revision 1.1 2005/01/06 23:00:12 colinmacleod
35 * Moved up a version number.
36 * Changed copyright notices to 2005.
37 * Updated the documentation:
38 * - started working on multiproject:site docu.
39 * - changed the logo.
40 * Added checkstyle and fixed LOADS of style issues.
41 * Added separate thirdparty subproject.
42 * Added struts (in web), util and webgui (in webtheme) from ivata op.
43 *
44 * Revision 1.3 2004/03/21 21:16:35 colinmacleod
45 * Shortened name to ivata op.
46 *
47 * Revision 1.2 2004/02/01 22:07:31 colinmacleod
48 * Added full names to author tags
49 *
50 * Revision 1.1.1.1 2004/01/27 20:59:38 colinmacleod
51 * Moved ivata op to SourceForge.
52 *
53 * Revision 1.2 2003/10/16 15:43:03 jano
54 * Fixes problems with building and some problems with splitting to subprojects
55 *
56 * Revision 1.1.1.1 2003/10/13 20:49:28 colin
57 * Restructured portal into subprojects
58 *
59 * Revision 1.1 2003/02/24 19:33:32 colin
60 * Moved to new subproject.
61 *
62 * Revision 1.1 2002/09/16 13:52:48 colin
63 * Added browser class with checking for browser type, (i)frames support and
64 * JavaScript.
65 * -----------------------------------------------------------------------------
66 */
67 package com.ivata.mask.web.browser;
68 /***
69 * <p>
70 * Just what the name says: this class contains constants used by
71 * {@link Browser}.
72 * </p>
73 *
74 * @since ivata masks 0.4 (2002-09-12)
75 * @author Colin MacLeod
76 * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
77 * @version $Revision: 1.2 $
78 */
79 public class BrowserConstants {
80 /***
81 * <p>
82 * Identifies any unrecognized web browser.
83 * </p>
84 */
85 public static final Integer TYPE_UNKNOWN;
86 /***
87 * <p>
88 * Identifies Microsoft Internet Explorer web browser.
89 * </p>
90 */
91 public static final Integer TYPE_INTERNET_EXPLORER;
92 /***
93 * <p>
94 * Identifies Netscape (not Mozilla) web browsers.
95 * </p>
96 */
97 public static final Integer TYPE_NETSCAPE;
98 /***
99 * <p>
100 * Identifies Mozilla (post Netscape code-release) web browsers.
101 * </p>
102 */
103 public static final Integer TYPE_MOZILLA;
104 /***
105 * <p>
106 * Identifies Opera web browser.
107 * </p>
108 */
109 public static final Integer TYPE_OPERA;
110 /***
111 * <p>
112 * Identifies Lynx text web browser.
113 * </p>
114 */
115 public static final Integer TYPE_LYNX;
116 /***
117 * <p>
118 * Identifies KDE Konqueror web browser.
119 * </p>
120 */
121 public static final Integer TYPE_KONQUEROR;
122 /***
123 * <p>
124 * Identifies KDE Konqueror web browser.
125 * </p>
126 */
127 public static final Integer TYPE_GALEON;
128 /***
129 * <p>
130 * Identifies any cyborg, robot, spider or otherwise synthetic browser.
131 * </p>
132 */
133 public static final Integer TYPE_ROBOT;
134 // initialize the constants - TODO: JDK 1.5 replace with an enum
135 static {
136 int counter = 0;
137 TYPE_UNKNOWN = new Integer(counter++);
138 TYPE_INTERNET_EXPLORER = new Integer(counter++);
139 TYPE_NETSCAPE = new Integer(counter++);
140 TYPE_MOZILLA = new Integer(counter++);
141 TYPE_OPERA = new Integer(counter++);
142 TYPE_LYNX = new Integer(counter++);
143 TYPE_KONQUEROR = new Integer(counter++);
144 TYPE_GALEON = new Integer(counter++);
145 TYPE_ROBOT = new Integer(counter++);
146 }
147 }
148