001: /*
002: License $Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $
003:
004: Copyright (c) 2001-2005 tagtraum industries.
005:
006: LGPL
007: ====
008:
009: jo! is free software; you can redistribute it and/or
010: modify it under the terms of the GNU Lesser General Public
011: License as published by the Free Software Foundation; either
012: version 2.1 of the License, or (at your option) any later version.
013:
014: jo! is distributed in the hope that it will be useful,
015: but WITHOUT ANY WARRANTY; without even the implied warranty of
016: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: Lesser General Public License for more details.
018:
019: You should have received a copy of the GNU Lesser General Public
020: License along with this library; if not, write to the Free Software
021: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
022:
023: For LGPL see <http://www.fsf.org/copyleft/lesser.txt>
024:
025:
026: Sun license
027: ===========
028:
029: This release contains software by Sun Microsystems. Therefore
030: the following conditions have to be met, too. They apply to the
031: files
032:
033: - lib/mail.jar
034: - lib/activation.jar
035: - lib/jsse.jar
036: - lib/jcert.jar
037: - lib/jaxp.jar
038: - lib/crimson.jar
039: - lib/servlet.jar
040: - lib/jnet.jar
041: - lib/jaas.jar
042: - lib/jaasmod.jar
043:
044: contained in this release.
045:
046: a. Licensee may not modify the Java Platform
047: Interface (JPI, identified as classes contained within the javax
048: package or any subpackages of the javax package), by creating additional
049: classes within the JPI or otherwise causing the addition to or modification
050: of the classes in the JPI. In the event that Licensee creates any
051: Java-related API and distribute such API to others for applet or
052: application development, you must promptly publish broadly, an accurate
053: specification for such API for free use by all developers of Java-based
054: software.
055:
056: b. Software is confidential copyrighted information of Sun and
057: title to all copies is retained by Sun and/or its licensors. Licensee
058: shall not modify, decompile, disassemble, decrypt, extract, or otherwise
059: reverse engineer Software. Software may not be leased, assigned, or
060: sublicensed, in whole or in part. Software is not designed or intended
061: for use in on-line control of aircraft, air traffic, aircraft navigation
062: or aircraft communications; or in the design, construction, operation or
063: maintenance of any nuclear facility. Licensee warrants that it will not
064: use or redistribute the Software for such purposes.
065:
066: c. Software is provided "AS IS," without a warranty
067: of any kind. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND WARRANTIES,
068: INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
069: PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
070:
071: d. This License is effective until terminated. Licensee may
072: terminate this License at any time by destroying all copies of Software.
073: This License will terminate immediately without notice from Sun if Licensee
074: fails to comply with any provision of this License. Upon such termination,
075: Licensee must destroy all copies of Software.
076:
077: e. Software, including technical data, is subject to U.S.
078: export control laws, including the U.S. Export Administration Act and its
079: associated regulations, and may be subject to export or import regulations
080: in other countries. Licensee agrees to comply strictly with all such
081: regulations and acknowledges that it has the responsibility to obtain
082: licenses to export, re-export, or import Software. Software may not be
083: downloaded, or otherwise exported or re-exported (i) into, or to a national
084: or resident of, Cuba, Iraq, Iran, North Korea, Libya, Sudan, Syria or any
085: country to which the U.S. has embargoed goods; or (ii) to anyone on the
086: U.S. Treasury Department's list of Specially Designated Nations or the U.S.
087: Commerce Department's Table of Denial Orders.
088:
089:
090: Feedback
091: ========
092:
093: We encourage your feedback and suggestions and want to use your feedback to
094: improve the Software. Send all such feedback to:
095: <feedback@tagtraum.com>
096:
097: For more information on tagtraum industries and jo!
098: please see <http://www.tagtraum.com/>.
099:
100:
101: */
102: package com.tagtraum.jo;
103:
104: /**
105: * Constants for jo!
106: *
107: * @author <a href="mailto:hs@tagtraum.com">Hendrik Schreiber</a>
108: * @version 1.1beta1 $Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $
109: */
110: public interface C_Jo {
111:
112: /**
113: * Source-Version
114: */
115: public static String vcid = "$Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $";
116:
117: /**
118: * Name of the environment variable that points at the jo home directory
119: */
120: public static final String JO_HOME = "JO_HOME";
121:
122: // configuration keys
123:
124: /**
125: * Name of the file that contains the factory configuration: <code>factory.properties</code>
126: */
127: public static final String C_FilenameFactory = "factory.properties";
128:
129: /**
130: * Name of the file that contains the hosts configuration: <code>hosts.properties</code>
131: */
132: public static final String C_FilenameHosts = "hosts.properties";
133:
134: // Factory keys
135:
136: /**
137: * Factory key for <code>I_Listener</code>: <code>Listener</code>
138: */
139: public static final String C_FactoryKey_Listener = "Listener";
140:
141: /**
142: * Factory key for {@link I_JoServletModel}: <code>ServletModel</code>
143: */
144: public static final String C_FactoryKey_ServletModel = "ServletModel";
145:
146: /**
147: * Factory key for {@link I_JoServletContextPeer}: <code>ServletContextPeer</code>
148: */
149: public static final String C_FactoryKey_ServletContextPeer = "ServletContextPeer";
150:
151: /**
152: * Factory key for {@link I_JoRequestDispatcher}: <code>RequestDispatcher</code>
153: */
154: public static final String C_FactoryKey_RequestDispatcher = "RequestDispatcher";
155:
156: /**
157: * Factory key for {@link I_JoServletContext}: <code>ServletContext</code>
158: */
159: public static final String C_FactoryKey_ServletContext = "ServletContext";
160:
161: /**
162: * Factory key for {@link I_JoServletRequest}: <code>ServletRequest</code>
163: */
164: public static final String C_FactoryKey_ServletRequest = "ServletRequest";
165:
166: /**
167: * Factory key for {@link I_JoServletResponse}: <code>ServletResponse</code>
168: */
169: public static final String C_FactoryKey_ServletResponse = "ServletResponse";
170:
171: /**
172: * Factory key for {@link I_JoServletConfig}: <code>ServletConfig</code>
173: */
174: public static final String C_FactoryKey_ServletConfig = "ServletConfig";
175:
176: /**
177: * Factory key for {@link I_JoServletService}: <code>ServletService</code>
178: */
179: public static final String C_FactoryKey_ServletService = "ServletService";
180:
181: /**
182: * Factory key for {@link I_JoHost}: <code>Host</code>
183: */
184: public static final String C_FactoryKey_Host = "Host";
185:
186: /**
187: * Factory key for {@link I_JoSessionContext}: <code>SessionContext</code>
188: */
189: public static final String C_FactoryKey_SessionContext = "SessionContext";
190:
191: /**
192: * Factory key for {@link I_JoSession}: <code>Session</code>
193: */
194: public static final String C_FactoryKey_Session = "Session";
195:
196: /**
197: * Factory key for <code>PeerBuilder</code>: <code>PeerBuilder</code>
198: */
199: public static final String C_FactoryKey_ServletContextPeerBuilder = "PeerBuilder";
200:
201: /**
202: * Factory key for <code>HostBuilder</code>: <code>HostBuilder</code>
203: */
204: public static final String C_FactoryKey_HostBuilder = "HostBuilder";
205:
206: /**
207: * Factory key for <code>AuthConstraint</code>: <code>AuthConstraint</code>
208: */
209: public static final String C_FactoryKey_AuthConstraint = "AuthConstraint";
210:
211: /**
212: * Factory key for <code>SecurityConstraint</code>: <code>SecurityConstraint</code>
213: */
214: public static final String C_FactoryKey_SecurityConstraint = "SecurityConstraint";
215:
216: /**
217: * Factory key for <code>WebResourceCollection</code>: <code>WebResourceCollection</code>
218: */
219: public static final String C_FactoryKey_WebResourceCollection = "WebResourceCollection";
220:
221: /**
222: * Factory key for <code>LoginConfig</code>: <code>LoginConfig</code>
223: */
224: public static final String C_FactoryKey_LoginConfig = "LoginConfig";
225:
226: /**
227: * Factory key for <code>SecurityRole</code>: <code>SecurityRole</code>
228: */
229: public static final String C_FactoryKey_SecurityRole = "SecurityRole";
230:
231: /**
232: * Factory key for <code>RoleManager</code>: <code>RoleManager</code>
233: */
234: public static final String C_FactoryKey_RoleManager = "RoleManager";
235:
236: /**
237: * Factory key for <code>AccessController</code>: <code>AccessController</code>
238: */
239: public static final String C_FactoryKey_AccessController = "AccessController";
240:
241: /**
242: * Factory key for <code>Handler</code>: <code>Handler</code>
243: */
244: public static final String C_FactoryKey_Handler = "Handler";
245:
246: /**
247: * Factory key for <code>FileServlet</code>: <code>FileServlet</code>
248: */
249: public static final String C_FactoryKey_FileServletClass = "FileServlet";
250:
251: /**
252: * Factory-Key for <code>JspServlet</code>: <code>JspServlet</code>
253: */
254: public static final String C_FactoryKey_JspServletClass = "JspServlet";
255:
256: /**
257: * Factory-Key for <code>JspModel</code>: <code>JspModel</code>
258: */
259: public static final String C_FactoryKey_JspModel = "JspModel";
260:
261: /**
262: * Factory-Key for <code>AccessLogEvent</code>: <code>AccessLogEvent</code>
263: */
264: public static final String C_FactoryKey_AccessLogEvent = "AccessLogEvent";
265:
266: /**
267: * Factory-Key for <code>UserDataConstraint</code>: <code>UserDataConstraint</code>
268: */
269: public static final String C_FactoryKey_UserDataConstraint = "UserDataConstraint";
270:
271: /**
272: * Factory-Key for <code>FormLoginConfig</code>: <code>FormLoginConfig</code>
273: */
274: public static final String C_FactoryKey_FormLoginConfig = "FormLoginConfig";
275:
276: /**
277: * Factory-Key for <code>SecurityRoleRef</code>: <code>SecurityRoleRef</code>
278: */
279: public static final String C_FactoryKey_SecurityRoleRef = "SecurityRoleRef";
280:
281: /**
282: * Factory-Key for <code>FileTransferCompression</code>: <code>FileTransferCompression</code>
283: */
284: public static final String C_FactoryKey_FileTransferCompression = "FileTransferCompression";
285:
286: /**
287: * Factory-Key for <code>TLDLocator</code>: <code>TLDLocator</code>
288: */
289: public static final String C_FactoryKey_TLDLocator = "TLDLocator";
290:
291: // Default constants
292:
293: /**
294: * Default value for MaxInactiveInterval of a session: <code>1800</code>
295: */
296: public static final int C_DefaultMaxInactiveInterval = 1800;
297:
298: /**
299: * Default value for SessionTimeout in minutes: <code>30</code>
300: */
301: public static final int DEFAULT_SESSION_TIMEOUT = 30;
302:
303: /**
304: * Default value for InvalidationIntervall in ms: <code>30000</code>
305: */
306: public static final int C_DefaultInvalidationIntervall = 30000;
307:
308: /**
309: * Default value for SessionIDName: <code>jsessionid</code>
310: */
311: public static final String C_DefaultSessionIDName = "jsessionid";
312:
313: /**
314: * Default value for SessionIDNameLength.
315: */
316: public static final int C_DefaultSessionIDNameLength = C_DefaultSessionIDName
317: .length();
318:
319: /**
320: * Default value for Session Cookie Name: <code>JSESSIONID</code>
321: */
322: public static final String C_DefaultSessionCookieName = "JSESSIONID";
323:
324: /**
325: * Default for max sessions: <code>-1</code>
326: */
327: public static final int DEFAULT_MAX_SESSIONS = -1;
328:
329: /**
330: * Default max requests: <code>100</code>
331: */
332: public static final int C_DefaultMaxRequests = 100;
333:
334: /**
335: * Default keep alive in sec: <code>15</code>
336: */
337: public static final int C_DefaultKeepAlive = 15;
338:
339: /**
340: * Default max cache entry size: <code>100000</code>
341: */
342: public static final int C_DefaultMaxEntrySize = 100000;
343:
344: /**
345: * Default cache capacity: <code>-1</code>
346: */
347: public static final int C_DefaultCacheCapacity = -1;
348:
349: /**
350: * Default string references: <code>10</code>
351: */
352: public static final int C_DefaultStrongRefCapacity = 10;
353:
354: /**
355: * Default fileservlet class: <code>com.tagtraum.jo.servlets.JoFileServlet</code>
356: */
357: public static final String C_Default_FileServletClass = "com.tagtraum.jo.servlets.JoFileServlet";
358:
359: /**
360: * Default jspservlet class: <code>com.tagtraum.jo.jsp.JspEngineServlet</code>
361: */
362: public static final String C_Default_JspServletClass = "com.tagtraum.jo.jsp.JspEngineServlet";
363:
364: /**
365: * Default AccessLogEventClass: <code>com.tagtraum.jo.CLFLogEvent</code>
366: */
367: public static final String C_Default_AccessLogEvent = "com.tagtraum.jo.CLFLogEvent";
368:
369: /**
370: * Default LoadOnStartUp: <code>-1</code>
371: */
372: public static final int C_Default_LoadOrderPosition = -1;
373:
374: /**
375: * Default value for DestroyTimeout in ms: <code>30000</code>
376: */
377: public static final int C_DefaultDestroyTimeout = 30000;
378:
379: /**
380: * Default value for MaxActiveInstances: <code>10</code>
381: */
382: public static final int C_DefaultMaxActiveInstances = 10;
383:
384: // Other Constants
385:
386: // move these to I_JoServletContext/I_JoServletRequest? (rik)
387:
388: public static final String C_Context_Attribute_TempDir = "javax.servlet.context.tempdir";
389:
390: public static final String C_Request_Attribute_RequestURI = "javax.servlet.include.request_uri";
391: public static final String C_Request_Attribute_PathInfo = "javax.servlet.include.path_info";
392: public static final String C_Request_Attribute_ContextPath = "javax.servlet.include.context_path";
393: public static final String C_Request_Attribute_ServletPath = "javax.servlet.include.servlet_path";
394: public static final String C_Request_Attribute_QueryString = "javax.servlet.include.query_string";
395: public static final String C_Request_Attribute_X509Certificate = "javax.servlet.request.X509Certificate";
396:
397: public static final String C_Request_Attribute_ExceptionType = "javax.servlet.error.exception_type";
398: public static final String C_Request_Attribute_ErrorMessage = "javax.servlet.error.message";
399: public static final String C_Request_Attribute_ErrorStatusCode = "javax.servlet.error.status_code";
400:
401: public static final String C_Request_Attribute_Exception = "javax.servlet.error.exception";
402: public static final String C_Request_Attribute_Error_RequestURI = "javax.servlet.error.request_uri";
403: public static final String C_Request_Attribute_Error_ServletName = "javax.servlet.error.servlet_name";
404:
405: }
|