public abstract class NetObject extends GenericObject
Modifier and Type | Field and Description |
---|---|
protected static String |
CORE_PACKAGE |
protected static String |
GRUU |
protected static String |
LR |
protected static String |
MADDR |
protected static String |
METHOD |
protected static String |
NET_PACKAGE |
protected static String |
PARSER_PACKAGE |
protected static String |
PHONE |
protected static String |
SIP |
protected static String |
SIPS |
protected static String |
TCP |
protected static String |
TLS |
protected static String |
TRANSPORT |
protected static String |
TTL |
protected static String |
UDP |
protected static String |
USER |
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 |
---|
NetObject()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
debugDump()
An introspection based string formatting method.
|
String |
debugDump(int indent)
Formatter with a given starting indentation (for nested structs).
|
boolean |
equals(Object that)
An introspection based equality predicate for SIPObjects.
|
boolean |
match(Object other)
An introspection based predicate matching using a template
object.
|
String |
toString()
Encode this to a string.
|
clone, dbgPrint, dbgPrint, encode, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected static final String CORE_PACKAGE
protected static final String NET_PACKAGE
protected static final String PARSER_PACKAGE
protected static final String UDP
protected static final String TCP
protected static final String TRANSPORT
protected static final String METHOD
protected static final String USER
protected static final String PHONE
protected static final String MADDR
protected static final String TTL
protected static final String LR
protected static final String SIP
protected static final String SIPS
protected static final String TLS
protected static final String GRUU
public boolean equals(Object that)
equals
in class GenericObject
that
- is the other object to test against.public boolean match(Object other)
match
in class GenericObject
other
- the match pattern to test against. The match object
has to be of the same type (class). Primitive types
and non-sip fields that are non null are matched for equality.
Null in any field matches anything. Some book-keeping fields
are ignored when making the comparison.public String debugDump()
debugDump
in class GenericObject
public String debugDump(int indent)
debugDump
in class GenericObject
indent
- int to setCopyright © 2014. All Rights Reserved.