View Javadoc

1   /* ***** BEGIN LICENSE BLOCK *****
2    * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3    *
4    * The contents of this file are subject to the Mozilla Public License Version
5    * 1.1 (the "License"); you may not use this file except in compliance with
6    * the License. You may obtain a copy of the License at
7    * http://www.mozilla.org/MPL/
8    *
9    * Software distributed under the License is distributed on an "AS IS" basis,
10   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11   * for the specific language governing rights and limitations under the
12   * License.
13   *
14   * The Original Code is "SMS Library for the Java platform".
15   *
16   * The Initial Developer of the Original Code is Markus Eriksson.
17   * Portions created by the Initial Developer are Copyright (C) 2002
18   * the Initial Developer. All Rights Reserved.
19   *
20   * Contributor(s):
21   *
22   * Alternatively, the contents of this file may be used under the terms of
23   * either the GNU General Public License Version 2 or later (the "GPL"), or
24   * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
25   * in which case the provisions of the GPL or the LGPL are applicable instead
26   * of those above. If you wish to allow use of your version of this file only
27   * under the terms of either the GPL or the LGPL, and not to allow others to
28   * use your version of this file under the terms of the MPL, indicate your
29   * decision by deleting the provisions above and replace them with the notice
30   * and other provisions required by the GPL or the LGPL. If you do not delete
31   * the provisions above, a recipient may use your version of this file under
32   * the terms of any one of the MPL, the GPL or the LGPL.
33   *
34   * ***** END LICENSE BLOCK ***** */
35  package org.marre.wap;
36  
37  public final class WapConstants
38  {    
39      public static final byte WSP_ENCODING_VERSION_1_1 = 0x11;
40      public static final byte WSP_ENCODING_VERSION_1_2 = 0x12;
41      public static final byte WSP_ENCODING_VERSION_1_3 = 0x13;
42      public static final byte WSP_ENCODING_VERSION_1_4 = 0x14;
43      public static final byte WSP_ENCODING_VERSION_1_5 = 0x15;
44          
45      public static final int PDU_TYPE_PUSH = 0x06;
46  
47      /*
48       * IANA assigned charset values
49       * http://www.iana.org/assignments/character-sets
50       */
51      public static final int MIB_ENUM_UTF_8 = 106;
52  
53      public static final int WSP_PARAMETER_TYPE_NO_VALUE = 0x01;
54      public static final int WSP_PARAMETER_TYPE_TEXT_VALUE = 0x02;
55      public static final int WSP_PARAMETER_TYPE_INTEGER_VALUE = 0x03;
56      public static final int WSP_PARAMETER_TYPE_DATE_VALUE = 0x04;
57      public static final int WSP_PARAMETER_TYPE_DELTA_SECONDS_VALUE = 0x05;
58      public static final int WSP_PARAMETER_TYPE_Q_VALUE = 0x06;
59      public static final int WSP_PARAMETER_TYPE_VERSION_VALUE = 0x07;
60      public static final int WSP_PARAMETER_TYPE_URI_VALUE = 0x08;
61      public static final int WSP_PARAMETER_TYPE_TEXT_STRING = 0x09;
62      public static final int WSP_PARAMETER_TYPE_WELL_KNOWN_CHARSET = 0x0A;
63      public static final int WSP_PARAMETER_TYPE_FIELD_NAME = 0x0B;
64      public static final int WSP_PARAMETER_TYPE_SHORT_INTEGER = 0x0C;
65      public static final int WSP_PARAMETER_TYPE_CONSTRAINED_ENCODING = 0x0D;
66  
67      public static final int PARAMETER_Q = 0x00;
68      public static final int PARAMETER_CHARSET = 0x01;
69      public static final int PARAMETER_LEVEL = 0x02;
70      public static final int PARAMETER_TYPE = 0x03;
71      public static final int PARAMETER_NAME = 0x04;
72      public static final int PARAMETER_FILENAME = 0x05;
73      public static final int PARAMETER_DIFFERENCES = 0x06;
74      public static final int PARAMETER_PADDING = 0x07;
75      public static final int PARAMETER_TYPE_MULTIPART_RELATED = 0x08;
76      public static final int PARAMETER_START_MULTIPART_RELATED = 0x09;
77      public static final int PARAMETER_START_INFO_MULTIPART_RELATED = 0x0A;
78      public static final int PARAMETER_COMMENT = 0x0B;
79      public static final int PARAMETER_DOMAIN = 0x0C;
80      public static final int PARAMETER_MAX_AGE = 0x0D;
81      public static final int PARAMETER_PATH = 0x0E;
82      public static final int PARAMETER_SECURE = 0x0F;
83      public static final int PARAMETER_SEC_CONNECTIVITY = 0x10;
84      public static final int PARAMETER_MAC_CONNECTIVITY = 0x11;
85      public static final int PARAMETER_CREATION_DATE = 0x12;
86      public static final int PARAMETER_MODIFICATION_DATE = 0x13;
87      public static final int PARAMETER_READ_DATE = 0x14;
88      public static final int PARAMETER_SIZE = 0x15;
89          
90      public static final int HEADER_ACCEPT = 0x00;
91      public static final int HEADER_ACCEPT_CHARSET = 0x01;
92      public static final int HEADER_ACCEPT_ENCODING = 0x02;
93      public static final int HEADER_ACCEPT_LANGUAGE = 0x03;
94      public static final int HEADER_ACCEPT_RANGES = 0x04;
95      public static final int HEADER_AGE = 0x05;
96      public static final int HEADER_ALLOW = 0x06;
97      public static final int HEADER_AUTHORIZATION = 0x07;
98      public static final int HEADER_CACHE_CONTROL = 0x08;
99      public static final int HEADER_CONNECTION = 0x09;
100     public static final int HEADER_CONTENT_BASE = 0x0A;
101     public static final int HEADER_CONTENT_ENCODING = 0x0B;
102     public static final int HEADER_CONTENT_LANGUAGE = 0x0C;
103     public static final int HEADER_CONTENT_LENGTH = 0x0D;
104     public static final int HEADER_CONTENT_LOCATION = 0x0E;
105     public static final int HEADER_CONTENT_MD5 = 0x0F;
106     public static final int HEADER_CONTENT_RANGE = 0x10;
107     public static final int HEADER_CONTENT_TYPE = 0x11;
108     public static final int HEADER_DATE = 0x12;
109     public static final int HEADER_ETAG = 0x13;
110     public static final int HEADER_EXPIRES = 0x14;
111     public static final int HEADER_FROM = 0x15;
112     public static final int HEADER_HOST = 0x16;
113     public static final int HEADER_IF_MODIFIED_SINCE = 0x17;
114     public static final int HEADER_IF_MATCH = 0x18;
115     public static final int HEADER_IF_NONE_MATCH = 0x19;
116     public static final int HEADER_IF_RANGE = 0x1A;
117     public static final int HEADER_IF_UNMODIFIED_SINCE = 0x1B;
118     public static final int HEADER_LAST_MODIFIED = 0x1C;
119     public static final int HEADER_LOCATION = 0x1D;
120     public static final int HEADER_MAX_FORWARDS = 0x1E;
121     public static final int HEADER_PRAGMA = 0x1F;
122     public static final int HEADER_PROXY_AUTHENTICATE = 0x20;
123     public static final int HEADER_PROXY_AUTHORIZATION = 0x21;
124     public static final int HEADER_PUBLIC = 0x22;
125     public static final int HEADER_RANGE = 0x23;
126     public static final int HEADER_REFERER = 0x24;
127     public static final int HEADER_RETRY_AFTER = 0x25;
128     public static final int HEADER_SERVER = 0x26;
129     public static final int HEADER_TRANSFER_ENCODING = 0x27;
130     public static final int HEADER_UPGRADE = 0x28;
131     public static final int HEADER_USER_AGENT = 0x29;
132     public static final int HEADER_VARY = 0x2A;
133     public static final int HEADER_VIA = 0x2B;
134     public static final int HEADER_WARNING = 0x2C;
135     public static final int HEADER_WWW_AUTHENTICATE = 0x2D;
136     public static final int HEADER_CONTENT_DISPOSITION = 0x2E;
137     public static final int HEADER_X_WAP_APPLICATION_ID = 0x2F;
138     public static final int HEADER_X_WAP_CONTENT_URI = 0x30;
139     public static final int HEADER_X_WAP_INITIATOR_URI = 0x31;
140     public static final int HEADER_ACCEPT_APPLICATION = 0x32;
141     public static final int HEADER_BEARER_INDICATION = 0x33;
142     public static final int HEADER_PUSH_FLAG = 0x34;
143     public static final int HEADER_PROFILE = 0x35;
144     public static final int HEADER_PROFILE_DIFF = 0x36;
145     public static final int HEADER_PROFILE_WARNING = 0x37;
146     public static final int HEADER_EXPECT = 0x38;   
147     public static final int HEADER_TE = 0x39;
148     public static final int HEADER_TRAILER = 0x3A;
149     public static final int HEADER_X_WAP_TOD = 0x3B;
150     public static final int HEADER_CONTENT_ID = 0x3C;
151     public static final int HEADER_SET_COOKIE = 0x3D;
152     public static final int HEADER_COOKIE = 0x3E;
153     public static final int HEADER_ENCODING_VERSION = 0x3F;
154     public static final int HEADER_X_WAP_SECURITY = 0x40;
155         
156     private WapConstants()
157     {
158     }    
159 }