Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Key.java
  *
  * Created on December 19, 2001, 10:10 AM
  */
 
 package javax.sdp;

A Key represents the k= field contained within either a MediaDescription or a SessionDescription. Please refer to IETF RFC 2327 for a description of SDP.

Author(s):
deruelle
Version:
1.0
public interface Key extends Field {
    
    
Returns the name of this attribute

Returns:
the name of this attribute
Throws:
SdpParseException
    public String getMethod()
    throws SdpParseException;
    
    
Sets the id of this attribute.

Parameters:
name to set
Throws:
SdpException if the name is null
    public void setMethod(String name)
    throws SdpException;
    
    
Determines if this attribute has an associated value.

Returns:
if this attribute has an associated value.
Throws:
SdpParseException
    public boolean hasKey()
    throws SdpParseException;
    
    
Returns the value of this attribute.

Returns:
the value of this attribute
Throws:
SdpParseException
    
    public String getKey()
    throws SdpParseException;
    
    
Sets the value of this attribute.

Parameters:
key to set
Throws:
SdpException if key is null
    
    public void setKey(String key)
    throws SdpException;
New to GrepCode? Check out our FAQ X