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

gov.nist.javax.sdp.fields
Class BandwidthField

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.BandwidthField
All Implemented Interfaces:
SDPFieldNames, Serializable, Cloneable, BandWidth, Field

public class BandwidthField
extends SDPField
implements BandWidth

Bandwidth field of a SDP header.

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

Field Summary
 
Fields inherited from interface javax.sdp.BandWidth
AS, CT
 
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
BandwidthField()
           
 
Method Summary
 String encode()
          Get the string encoded version of this object
 int getBandwidth()
           
 String getBwtype()
           
 String getType()
          Returns the bandwidth type.
 int getValue()
          Returns the bandwidth value measured in kilobits per second.
 void setBandwidth(int b)
          Set the bandwidth member
 void setBwtype(String b)
          Set the bwtype member
 void setType(String type)
          Sets the bandwidth type.
 void setValue(int value)
          Sets the bandwidth value.
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPField
getFieldName, getTypeChar, toString
 
Methods inherited from class gov.nist.javax.sdp.fields.SDPObject
dbgPrint, debugDump, equals, match
 
Methods inherited from class gov.nist.core.GenericObject
clone, 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
clone, getTypeChar
 

Constructor Detail

BandwidthField

public BandwidthField()
Method Detail

getBwtype

public String getBwtype()

getBandwidth

public int getBandwidth()

setBwtype

public void setBwtype(String b)
Set the bwtype member


setBandwidth

public void setBandwidth(int b)
Set the bandwidth member


encode

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

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

getType

public String getType()
               throws SdpParseException
Returns the bandwidth type.

Specified by:
getType in interface BandWidth
Returns:
type
Throws:
SdpParseException

setType

public void setType(String type)
             throws SdpException
Sets the bandwidth type.

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

getValue

public int getValue()
             throws SdpParseException
Returns the bandwidth value measured in kilobits per second.

Specified by:
getValue in interface BandWidth
Returns:
the bandwidth value
Throws:
SdpParseException

setValue

public void setValue(int value)
              throws SdpException
Sets the bandwidth value.

Specified by:
setValue in interface BandWidth
Parameters:
value - to set
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.