MjSip Stack
v1.6

org.zoolu.sdp
Class SdpField

java.lang.Object
  |
  +--org.zoolu.sdp.SdpField
Direct Known Subclasses:
AttributeField, ConnectionField, MediaField, OriginField, SessionNameField, TimeField

public class SdpField
extends java.lang.Object

SdpField rapresents a SDP line field. It is formed by a 'type' (char) and a 'value' (String).

A SDP line field is of the form <type> = <value>


Constructor Summary
SdpField(char s_type, java.lang.String s_value)
          Creates a new SdpField.
SdpField(SdpField sf)
          Creates a new SdpField.
SdpField(java.lang.String str)
          Creates a new SdpField based on a SDP line of the form =.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of the SdpField.
 boolean equals(java.lang.Object obj)
          Whether the SdpField is equal to Object obj
 char getType()
          Gets the type of field
 java.lang.String getValue()
          Gets the value
 java.lang.String toString()
          Gets string representation of the SdpField
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SdpField

public SdpField(char s_type,
                java.lang.String s_value)
Creates a new SdpField.
Parameters:
s_type - the field type
s_value - the field value

SdpField

public SdpField(SdpField sf)
Creates a new SdpField.
Parameters:
sf - the SdpField clone

SdpField

public SdpField(java.lang.String str)
Creates a new SdpField based on a SDP line of the form =. The SDP value terminats with the end of the String or with the first CR or LF char.
Parameters:
str - the <type> = <value> line
Method Detail

clone

public java.lang.Object clone()
Creates and returns a copy of the SdpField.
Overrides:
clone in class java.lang.Object
Returns:
a SdpField clone

equals

public boolean equals(java.lang.Object obj)
Whether the SdpField is equal to Object obj
Overrides:
equals in class java.lang.Object
Returns:
true if equal

getType

public char getType()
Gets the type of field
Returns:
the field type

getValue

public java.lang.String getValue()
Gets the value
Returns:
the field value

toString

public java.lang.String toString()
Gets string representation of the SdpField
Overrides:
toString in class java.lang.Object
Returns:
the string representation

MjSip Stack
v1.6