public class MediaRange extends SIPObject
Revisions:
Version 1.0
1. Added encode method.
media-range = ( "STAR/STAR"
| ( type "/" STAR )
| ( type "/" subtype )
) *( ";" parameter )
HTTP RFC 2616 Section 14.1
Accept,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
subtype
subtype field
|
protected String |
type
type field
|
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation| Constructor and Description |
|---|
MediaRange()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
encode()
Encode the object.
|
StringBuilder |
encode(StringBuilder buffer)
Encode the header into the given StringBuilder.
|
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
|
dbgPrint, debugDump, debugDump, equals, match, toStringclone, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintpublic String getType()
public String getSubtype()
public void setType(String t)
t - String to setpublic void setSubtype(String s)
s - String to setpublic String encode()
public StringBuilder encode(StringBuilder buffer)
SIPObjectCopyright © 2018. All Rights Reserved.