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

gov.nist.javax.sip.header
Class MediaRange

java.lang.Object
  extended by gov.nist.core.GenericObject
      extended by gov.nist.javax.sip.header.SIPObject
          extended by gov.nist.javax.sip.header.MediaRange
All Implemented Interfaces:
Serializable, Cloneable

public class MediaRange
extends SIPObject

Media Range

Since:
0.9
Version:
1.2 $Revision: 1.6 $ $Date: 2009/07/17 18:57:32 $
 Revisions:

 Version 1.0
    1. Added encode method.

 media-range    = ( "STAR/STAR"
                        | ( type "/" STAR )
                        | ( type "/" subtype )
                        ) *( ";" parameter )

 HTTP RFC 2616 Section 14.1
 
See Also:
Accept, Serialized Form

Constructor Summary
MediaRange()
          Default constructor
 
Method Summary
 String encode()
          Encode the object.
 StringBuffer encode(StringBuffer buffer)
          Encode the header into the given StringBuffer.
 String getSubtype()
          get the subType field.
 String getType()
          get type field
 void setSubtype(String s)
          Set the subtype member
 void setType(String t)
          Set the type member
 
Methods inherited from class gov.nist.javax.sip.header.SIPObject
dbgPrint, debugDump, debugDump, equals, match, toString
 
Methods inherited from class gov.nist.core.GenericObject
clone, getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaRange

public MediaRange()
Default constructor

Method Detail

getType

public String getType()
get type field

Returns:
String

getSubtype

public String getSubtype()
get the subType field.

Returns:
String

setType

public void setType(String t)
Set the type member

Parameters:
t - String to set

setSubtype

public void setSubtype(String s)
Set the subtype member

Parameters:
s - String to set

encode

public String encode()
Encode the object.

Specified by:
encode in class SIPObject
Returns:
String

encode

public StringBuffer encode(StringBuffer buffer)
Description copied from class: SIPObject
Encode the header into the given StringBuffer. Default implemation calls encode().

Overrides:
encode in class SIPObject

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.