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

gov.nist.javax.sdp.fields
Class ConnectionField

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sdp.fields.SDPObject
          extended by gov.nist.javax.sdp.fields.SDPField
              extended by gov.nist.javax.sdp.fields.ConnectionField
All Implemented Interfaces:
SDPFieldNames, Serializable, Cloneable, Connection, Field

public class ConnectionField
extends SDPField
implements Connection

Connectin Field of the SDP request.

Version:
JSR141-PUBLIC-REVIEW (subject to change).
Author:
Olivier Deruelle , M. Ranganathan
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.sdp.Connection
IN, IP4, IP6
 
Fields inherited from interface gov.nist.javax.sdp.fields.SDPFieldNames
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
 
Constructor Summary
ConnectionField()
           
 
Method Summary
 Object clone()
          Clones this object.
 String encode()
          Get the string encoded version of this object
 String getAddress()
          Returns the type of the network for this Connection.
 String getAddressType()
          Returns the type of the address for this Connection.
 String getAddrtype()
           
 ConnectionAddress getConnectionAddress()
           
 String getNettype()
           
 String getNetworkType()
          Returns the type of the network for this Connection.
 void setAddress(ConnectionAddress a)
          Set the address member
 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 setAddrType(String a)
          Set the addrtype member
 void setNettype(String n)
          Set the nettype member
 void setNetworkType(String type)
          Sets the type of the network for this Connection.
 String toString()
           
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPField
getFieldName, getTypeChar
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject
dbgPrint, debugDump, equals, match
 
Methods inherited from class gov.nist.core.GenericObject
debugDump, encode, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sdp.Field
getTypeChar
 

Constructor Detail

ConnectionField

public ConnectionField()
Method Detail

getNettype

public String getNettype()

getAddrtype

public String getAddrtype()

getConnectionAddress

public ConnectionAddress getConnectionAddress()

setNettype

public void setNettype(String n)
Set the nettype member


setAddrType

public void setAddrType(String a)
Set the addrtype member


setAddress

public void setAddress(ConnectionAddress a)
Set the address member


encode

public String encode()
Get the string encoded version of this object

Specified by:
encode in class SDPField
Since:
v1.0

toString

public String toString()
Overrides:
toString in class SDPField

getAddress

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

Specified by:
getAddress in interface Connection
Returns:
the type of the network
Throws:
SdpParseException

getAddressType

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

Specified by:
getAddressType in interface Connection
Returns:
the type of the address
Throws:
SdpParseException

getNetworkType

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

Specified by:
getNetworkType in interface Connection
Returns:
the type of the network
Throws:
SdpParseException

setAddress

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

Specified by:
setAddress in interface Connection
Parameters:
addr - to set
Throws:
SdpException - if the type is null

setAddressType

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

Specified by:
setAddressType in interface Connection
Parameters:
type - to set
Throws:
SdpException - if the type is null

setNetworkType

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

Specified by:
setNetworkType in interface Connection
Parameters:
type - to set
Throws:
SdpException - if the type is null

clone

public Object clone()
Description copied from class: gov.nist.core.GenericObject
Clones this object.

Specified by:
clone in interface Field
Overrides:
clone in class gov.nist.core.GenericObject
Returns:
a clone of this field.

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.