NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sdp
Interface Connection

All Superinterfaces:
Cloneable, Field, Serializable
All Known Implementing Classes:
ConnectionField

public interface Connection
extends Field

A Connection represents the c= field associated with a SessionDescription or with an individual MediaDescription and is used to identify a network address on which media can be received. The Connection in the SessionDescription applies to all MediaDescriptions unless a MediaDescription specifically overrides it. The Connection identifies the network type (IN for internet), address type (IP4 or IP6), the start of an address range, the time to live of the session and the number of addresses in the range. Both the time to live and number of addresses are optional. A Connection could therefore be of one these forms: c=IN IP4 myhost.somewhere.com (no ttl and only one address) c=IN IP4 myhost.somewhere.com/5 (a ttl of 5) c=IN IP4 myhost.somewhere.com/5/2 (a ttl of 5 and 2 addresses) This implementation does not explicitly support ttl and number of addresses. Please refer to IETF RFC 2327 for a description of SDP.

Version:
1.0
Author:
deruelle

Field Summary
static String IN
          The Internet network type, "IN".
static String IP4
          The IPv4 address type, "IP4".
static String IP6
          The IPv6 address type, "IP6".
 
Method Summary
 String getAddress()
          Returns the type of the network for this Connection.
 String getAddressType()
          Returns the type of the address for this Connection.
 String getNetworkType()
          Returns the type of the network for this Connection.
 void setAddress(String addr)
          Sets the type of the address for this Connection.
 void setAddressType(String type)
          Returns the type of the network for this Connection.
 void setNetworkType(String type)
          Sets the type of the network for this Connection.
 
Methods inherited from interface javax.sdp.Field
clone, getTypeChar
 

Field Detail

IN

static final String IN
The Internet network type, "IN".

See Also:
Constant Field Values

IP4

static final String IP4
The IPv4 address type, "IP4".

See Also:
Constant Field Values

IP6

static final String IP6
The IPv6 address type, "IP6".

See Also:
Constant Field Values
Method Detail

getAddress

String getAddress()
                  throws SdpParseException
Returns the type of the network for this Connection.

Throws:
SdpParseException

getAddressType

String getAddressType()
                      throws SdpParseException
Returns the type of the address for this Connection.

Throws:
SdpParseException

getNetworkType

String getNetworkType()
                      throws SdpParseException
Returns the type of the network for this Connection.

Throws:
SdpParseException

setAddress

void setAddress(String addr)
                throws SdpException
Sets the type of the address for this Connection.

Throws:
SdpException

setAddressType

void setAddressType(String type)
                    throws SdpException
Returns the type of the network for this Connection.

Throws:
SdpException

setNetworkType

void setNetworkType(String type)
                    throws SdpException
Sets the type of the network for this Connection.

Throws:
SdpException

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.