NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.header
Class MediaRange

java.lang.Object
  |
  +--gov.nist.core.GenericObject
        |
        +--gov.nist.javax.sip.header.SIPObject
              |
              +--gov.nist.javax.sip.header.MediaRange

public class MediaRange
extends SIPObject

Media Range

Since:
0.9
Version:
1.0
 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

Constructor Summary
MediaRange()
          Default constructor
 
Method Summary
 String encode()
          Encode the object.
 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
clone, dbgPrint, debugDump, debugDump, equals, match, merge, replace, replace, replace, replace, toString
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, 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

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.