01: /*
02: * Key.java
03: *
04: * Created on December 19, 2001, 10:10 AM
05: */
06:
07: package javax.sdp;
08:
09: /** A Key represents the k= field contained within either a MediaDescription or a SessionDescription.
10: *
11: * Please refer to IETF RFC 2327 for a description of SDP.
12: *
13: * @author deruelle
14: * @version 1.0
15: */
16: public interface Key extends Field {
17:
18: /** Returns the name of this attribute
19: * @throws SdpParseException
20: * @return the name of this attribute
21: */
22: public String getMethod() throws SdpParseException;
23:
24: /** Sets the id of this attribute.
25: * @param name to set
26: * @throws SdpException if the name is null
27: */
28: public void setMethod(String name) throws SdpException;
29:
30: /** Determines if this attribute has an associated value.
31: * @throws SdpParseException
32: * @return if this attribute has an associated value.
33: */
34: public boolean hasKey() throws SdpParseException;
35:
36: /** Returns the value of this attribute.
37: * @throws SdpParseException
38: * @return the value of this attribute
39: */
40: public String getKey() throws SdpParseException;
41:
42: /** Sets the value of this attribute.
43: * @param key to set
44: * @throws SdpException if key is null
45: */
46: public void setKey(String key) throws SdpException;
47: }
|