org.lastbamboo.common.sdp.fields
Class URIField

java.lang.Object
  extended by org.lastbamboo.common.sdp.GenericObject
      extended by org.lastbamboo.common.sdp.fields.SDPObject
          extended by org.lastbamboo.common.sdp.fields.SDPField
              extended by org.lastbamboo.common.sdp.fields.URIField
All Implemented Interfaces:
Serializable, Cloneable, Field, URI, SDPFieldNames

public class URIField
extends SDPField
implements URI

Implementation of URI field.

Version:
JSR141-PUBLIC-REVIEW (subject to change).
Author:
Olivier Deruelle , M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
protected  URL url
           
protected  String urlString
           
 
Fields inherited from class org.lastbamboo.common.sdp.fields.SDPField
fieldName
 
Fields inherited from class org.lastbamboo.common.sdp.GenericObject
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, immutableClassNames, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
 
Fields inherited from interface org.lastbamboo.common.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
URIField()
           
 
Method Summary
 String encode()
          Get the string encoded version of this object
 URL get()
          Returns the value.
 String getURI()
           
 void set(URL uri)
          Sets the value.
 void setURI(String uri)
           
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPField
getFieldName, getTypeChar, toString
 
Methods inherited from class org.lastbamboo.common.sdp.fields.SDPObject
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, merge, replace, replace, replace, replace, sprint
 
Methods inherited from class org.lastbamboo.common.sdp.GenericObject
Assert, clone, dbgPrint, dbgPrint, debugDump, getIndentation, getMatcher, isMySubclass, makeClone, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.lastbamboo.common.sdp.api.Field
clone, getTypeChar
 

Field Detail

url

protected URL url

urlString

protected String urlString
Constructor Detail

URIField

public URIField()
Method Detail

getURI

public String getURI()

setURI

public void setURI(String uri)

get

public URL get()
Description copied from interface: URI
Returns the value.

Specified by:
get in interface URI
Returns:
the value

set

public void set(URL uri)
Description copied from interface: URI
Sets the value.

Specified by:
set in interface URI
Parameters:
uri - the new information

encode

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

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


Copyright © 2013 LittleShoot. All Rights Reserved.