org.lastbamboo.common.sdp.fields
Class ConnectionField

java.lang.Object
  extended by org.lastbamboo.common.sdp.GenericObject
      extended by org.lastbamboo.common.sdp.fields.SDPObject
          extended by org.lastbamboo.common.sdp.fields.SDPField
              extended by org.lastbamboo.common.sdp.fields.ConnectionField
All Implemented Interfaces:
Serializable, Cloneable, Connection, Field, SDPFieldNames

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
This code is in the public domain.
See Also:
Serialized Form

Field Summary
protected  ConnectionAddress address
           
protected  String addrtype
           
protected  String nettype
           
 
Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField
fieldName
 
Fields inherited from class org.lastbamboo.common.sdp.GenericObject
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
 
Fields inherited from interface org.lastbamboo.common.sdp.api.Connection
IN, IP4, IP6
 
Fields inherited from interface org.lastbamboo.common.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 org.lastbamboo.common.sdp.fields.SDPField
getFieldName, getTypeChar
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint
 
Methods inherited from class org.lastbamboo.common.sdp.GenericObject
Assert, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.lastbamboo.common.sdp.api.Field
getTypeChar
 

Field Detail

nettype

protected String nettype

addrtype

protected String addrtype

address

protected ConnectionAddress address
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: GenericObject
Clones this object.

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


Copyright © 2013 LittleShoot. All Rights Reserved.