public class ConnectionField extends SDPField implements Connection
Modifier and Type | Field and Description |
---|---|
protected ConnectionAddress |
address |
protected String |
addrtype |
protected String |
nettype |
CORE_PACKAGE, SDPFIELDS_PACKAGE
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
IN, IP4, IP6
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 and Description |
---|
ConnectionField() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object.
|
String |
encode()
Get the string encoded version of this object
|
String |
getAddress()
Returns the type of the network for this Connection.
|
String |
getAddressType()
Returns the type of the address for this Connection.
|
String |
getAddrtype() |
ConnectionAddress |
getConnectionAddress() |
String |
getNettype() |
String |
getNetworkType()
Returns the type of the network for this Connection.
|
void |
setAddress(ConnectionAddress a)
Set the address member
|
void |
setAddress(String addr)
Sets the type of the address for this Connection.
|
void |
setAddressType(String type)
Returns the type of the network for this Connection.
|
void |
setAddrType(String a)
Set the addrtype member
|
void |
setNettype(String n)
Set the nettype member
|
void |
setNetworkType(String type)
Sets the type of the network for this Connection.
|
String |
toString() |
getFieldName, getTypeChar
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTypeChar
protected String nettype
protected String addrtype
protected ConnectionAddress address
public String getNettype()
public String getAddrtype()
public ConnectionAddress getConnectionAddress()
public void setNettype(String n)
public void setAddrType(String a)
public void setAddress(ConnectionAddress a)
public String encode()
public String getAddress() throws SdpParseException
getAddress
in interface Connection
SdpParseException
public String getAddressType() throws SdpParseException
getAddressType
in interface Connection
SdpParseException
public String getNetworkType() throws SdpParseException
getNetworkType
in interface Connection
SdpParseException
public void setAddress(String addr) throws SdpException
setAddress
in interface Connection
addr
- to setSdpException
- if the type is nullpublic void setAddressType(String type) throws SdpException
setAddressType
in interface Connection
type
- to setSdpException
- if the type is nullpublic void setNetworkType(String type) throws SdpException
setNetworkType
in interface Connection
type
- to setSdpException
- if the type is nullpublic Object clone()
GenericObject
clone
in interface Field
clone
in class GenericObject
Copyright © 2018. All Rights Reserved.