KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > core > Constants


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19
20 package sync4j.framework.core;
21
22 import sync4j.framework.core.VerDTD;
23 import sync4j.framework.core.VerProto;
24
25 /**
26  * This class includes the costants relative to the SyncML.
27  *
28  * @author Stefano Fornari @ Funambol
29  *
30  * @version $Id: Constants.java,v 1.6 2005/03/02 20:57:37 harrie Exp $
31  */

32 public final class Constants {
33    public static final String JavaDoc MIMETYPE_SYNCMLDS_XML
34                                         = "application/vnd.syncml+xml";
35    public static final String JavaDoc MIMETYPE_SYNCMLDS_WBXML
36                                         = "application/vnd.syncml+wbxml";
37    public static final String JavaDoc MIMETYPE_SYNCML_DEVICEINFO_XML
38                                         = "application/vnd.syncml-devinf+xml";
39    public static final String JavaDoc MIMETYPE_SYNCML_DEVICEINFO_WBXML
40                                         = "application/vnd.syncml-devinf+wbxml";
41
42    public static final String JavaDoc NAMESPACE_METINF = "syncml:metinf";
43    public static final String JavaDoc NAMESPACE_DEVINF = "syncml:devinf";
44
45    public static final VerDTD DTD_1_0 = new VerDTD("1.0");
46    public static final VerDTD DTD_1_1 = new VerDTD("1.1");
47
48    public static final VerProto PROT_1_0 = new VerProto("SyncML/1.0");
49    public static final VerProto PROT_1_1 = new VerProto("SyncML/1.1");
50    public static final VerProto PROT_1_1_1 = new VerProto("SyncML/1.1.1");
51
52    public static final String JavaDoc FORMAT_B64 = "b64";
53   }
54
Popular Tags