01: /**
02: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03: * Unpublished - rights reserved under the Copyright Laws of the United States.
04: * Copyright © 2003 Sun Microsystems, Inc. All rights reserved.
05: * Copyright © 2005 BEA Systems, Inc. All rights reserved.
06: *
07: * Use is subject to license terms.
08: *
09: * This distribution may include materials developed by third parties.
10: *
11: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12: *
13: * Module Name : JSIP Specification
14: * File Name : Encoding.java
15: * Author : Phelim O'Doherty
16: *
17: * HISTORY
18: * Version Date Author Comments
19: * 1.1 08/10/2002 Phelim O'Doherty
20: *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21: */package javax.sip.header;
22:
23: import java.text.ParseException;
24:
25: /**
26: * This interface represents encoding methods for any header that contains an
27: * encoding value.
28: *
29: * @see AcceptEncodingHeader
30: * @see ContentEncodingHeader
31: *
32: * @author BEA Systems, NIST
33: * @version 1.2
34: */
35: public interface Encoding {
36:
37: /**
38: * Sets the encoding of an EncodingHeader.
39: *
40: * @param encoding - the new string value defining the encoding.
41: * @throws ParseException which signals that an error has been reached
42: * unexpectedly while parsing the encoding value.
43: */
44:
45: public void setEncoding(String encoding) throws ParseException;
46:
47: /**
48: * Gets the encoding of an EncodingHeader. Returns null if no
49: * encoding is defined in an EncodingHeader.
50: *
51: * @return the string value identifing the encoding
52: */
53: public String getEncoding();
54:
55: }
|