javax.sdp
Interface BandWidth

All Superinterfaces:
Cloneable, Field, Serializable
All Known Implementing Classes:
BandwidthField

public interface BandWidth
extends Field

A Bandwidth represents the b= fields contained within either a MediaDescription or a SessionDescription. This specifies the proposed bandwidth to be used by the session or media, and is optional. Multiple bandwidth specifiers of different types may be associated with the same SessionDescription. Each consists of a token type and an integer value measuring bandwidth in kilobits per second. RFC 2327 defines two bandwidth types (or modifiers): CT Conference Total: An implicit maximum bandwidth is associated with each TTL on the Mbone or within a particular multicast administrative scope region (the Mbone bandwidth vs. TTL limits are given in the MBone FAQ). If the bandwidth of a session or media in a session is different from the bandwidth implicit from the scope, a 'b=CT:...' line should be supplied for the session giving the proposed upper limit to the bandwidth used. The primary purpose of this is to give an approximate idea as to whether two or more conferences can co-exist simultaneously. AS Application-Specific Maximum: The bandwidth is interpreted to be application-specific, i.e., will be the application's concept of maximum bandwidth. Normally this will coincide with what is set on the application's "maximum bandwidth" control if applicable. Note that CT gives a total bandwidth figure for all the media at all sites. AS gives a bandwidth figure for a single media at a single site, although there may be many sites sending simultaneously. Please refer to IETF RFC 2327 for a description of SDP.

Version:
1.0
Author:
deruelle

Field Summary
static String AS
          "Application Specific" bandwidth modifier, "AS".
static String CT
          "Conference Total" bandwidth modifier, "CT".
 
Method Summary
 String getType()
          Returns the bandwidth type.
 int getValue()
          Returns the bandwidth value measured in kilobits per second.
 void setType(String type)
          Sets the bandwidth type.
 void setValue(int value)
          Sets the bandwidth value.
 
Methods inherited from interface javax.sdp.Field
clone, getTypeChar
 

Field Detail

CT

static final String CT
"Conference Total" bandwidth modifier, "CT".

See Also:
Constant Field Values

AS

static final String AS
"Application Specific" bandwidth modifier, "AS".

See Also:
Constant Field Values
Method Detail

getType

String getType()
               throws SdpParseException
Returns the bandwidth type.

Throws:
SdpParseException

setType

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

Throws:
SdpException

getValue

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

Throws:
SdpParseException

setValue

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

Throws:
SdpException


Copyright © 2012. All Rights Reserved.