01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.encode;
06:
07: /**
08: * This interface defines constants that
09: * are the standard type encoder and decoder
10: * class names. These constants can be passed into the
11: * <code>Encoder.get(), Encoder.encode()</code> methods (for
12: * ENCODER* constants) and the
13: * <code>Decoder.get(), Decoder.decode()</code>
14: * methods (for DECODER* constants)
15: * to obtain handles to the stock type encoder and
16: * decoder objects, respectively. For the stock
17: * decoder types, it is preferable to use the
18: * static type encoder and decoder constants
19: * rather than calling get
20: * <code>get(), encode(), decode()</code> methods
21: * with these constant class names.
22: *
23: * @see com.sun.portal.desktop.encode.Encoder
24: * @see com.sun.portal.desktop.encode.Encoder#HTML_ENCODER
25: * @see com.sun.portal.desktop.encode.Encoder#XML_ENCODER
26: * @see com.sun.portal.desktop.encode.Encoder#COOKIE_ENCODER
27: * @see com.sun.portal.desktop.encode.Encoder#FORMNAME_ENCODER
28: * @see com.sun.portal.desktop.encode.Decoder
29: * @see com.sun.portal.desktop.encode.Decoder#COOKIE_DECODER
30: */
31: public interface EncoderClassNames {
32: /**
33: * HTML encode class name.
34: */
35: public static final String ENCODER_HTML = "com.sun.portal.desktop.encode.HTMLEncoder";
36:
37: /**
38: * XML encoder class name.
39: */
40: public static final String ENCODER_XML = "com.sun.portal.desktop.encode.XMLEncoder";
41:
42: /**
43: * Cookie encoder class name.
44: */
45: public static final String ENCODER_COOKIE = "com.sun.portal.desktop.encode.CookieEncoderDecoder";
46:
47: /**
48: * Cookie decoder class name.
49: */
50: public static final String DECODER_COOKIE = "com.sun.portal.desktop.encode.CookieEncoderDecoder";
51:
52: /**
53: * Form name encoder class name.
54: */
55: public static final String ENCODER_FORMNAME = "com.sun.portal.desktop.encode.FormNameEncoder";
56:
57: /**
58: * Default encoder class name. This should be
59: * used in cases where no encoder class name
60: * is associated with the client type.
61: */
62: public static final String ENCODER_DEFAULT = ENCODER_HTML;
63: }
|