|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
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.
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 |
---|
static final String IN
static final String IP4
static final String IP6
Method Detail |
---|
String getAddress() throws SdpParseException
SdpParseException
String getAddressType() throws SdpParseException
SdpParseException
String getNetworkType() throws SdpParseException
SdpParseException
void setAddress(String addr) throws SdpException
SdpException
void setAddressType(String type) throws SdpException
SdpException
void setNetworkType(String type) throws SdpException
SdpException
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |