KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > util > JiveConstants


1 /**
2  * $RCSfile: JiveConstants.java,v $
3  * $Revision: 1.5 $
4  * $Date: 2005/07/27 00:05:38 $
5  *
6  * Copyright (C) 2004 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.util;
13
14 /**
15  * Contains constant values representing various objects in Jive.
16  */

17 public class JiveConstants {
18
19     public static final int SYSTEM = 17;
20     public static final int ROSTER = 18;
21     public static final int OFFLINE = 19;
22     public static final int MUC_ROOM = 23;
23
24     public static final long SECOND = 1000;
25     public static final long MINUTE = 60 * SECOND;
26     public static final long HOUR = 60 * MINUTE;
27     public static final long DAY = 24 * HOUR;
28     public static final long WEEK = 7 * DAY;
29
30     /**
31      * Date/time format for use by SimpleDateFormat. The format conforms to
32      * <a HREF="http://www.jabber.org/jeps/jep-0082.html">JEP-0082</a>, which defines
33      * a unified date/time format for XMPP.
34      */

35     public static final String JavaDoc XMPP_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
36 }
Popular Tags