01: // CCPP.java
02: // $Id: CCPP.java,v 1.2 2000/05/03 15:22:07 bmahe Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 2000.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigsaw.ccpp;
07:
08: import org.w3c.jigsaw.http.Request;
09:
10: /**
11: * @version $Revision: 1.2 $
12: * @author Benoît Mahé (bmahe@w3.org)
13: */
14: public interface CCPP {
15:
16: //
17: // The HTTP Extension identifier of CC/PP
18: //
19:
20: public static final String HTTP_EXT_ID = "http://www.w3.org/1999/06/24-CCPPexchange";
21:
22: //
23: // The CC/PP Headers
24: //
25: public static final String PROFILE_HEADER = "Profile";
26:
27: public static final String PROFILE_DIFF_HEADER = "Profile-Diff";
28:
29: public static final String PROFILE_WARNING_HEADER = "Profile-Warning";
30:
31: //
32: // The Unknown warning message
33: //
34:
35: public static final String UNKNOWN_WARNING_MESSAGE = "Unknonwn Warning";
36:
37: //
38: // The CC/PP state
39: //
40: public static final String CCPP_REQUEST_STATE = "org.w3c.jigsaw.ccpp.ccpprequest";
41:
42: //
43: // CC/PP Warning messages
44: //
45:
46: public static final String msg_100[] = { "Ok", // 100
47: "Used stale profile", // 101
48: "Not used profile" // 102
49: };
50:
51: public static final String msg_200[] = { "Not applied", // 200
52: "Content selection applied", // 201
53: "Content generation applied", // 202
54: "Transformation applied" // 203
55: };
56:
57: //
58: // CC/PP Warning code
59: //
60:
61: public static final int OK = 100;
62: public static final int USED_STALE_PROFILE = 101;
63: public static final int NOT_USED_STALE_PROFILE = 102;
64:
65: public static final int NOT_APPLIED = 200;
66: public static final int CONTENT_SELECTION_APPLIED = 201;
67: public static final int CONTENT_GENERATION_APPLIED = 202;
68: public static final int TRANSFORMATION_APPLIED = 203;
69:
70: }
|