public final class SubscribedEventID
extends java.lang.Object
SIPUtil#getSubscribedEventID(org.jainslee.resources.sip.SipMessage)
to
obtain SubscribedEventID
values from SIP SUBSCRIBE, NOTIFY or REFER messages.Constructor and Description |
---|
SubscribedEventID(java.io.DataInput in)
Constructs a new SubscribedEventID object by deserializing data from a stream that was written by
toStream(DataOutput) . |
SubscribedEventID(java.lang.String name,
java.lang.String id)
Create a new
SubscribedEventID |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static SubscribedEventID |
fromString(java.lang.String s)
Get a
SubscribedEventID from a string. |
java.lang.String |
getID()
Returns the Subscribed event ID.
|
java.lang.String |
getName()
Returns Subscribed event name.
|
java.lang.String |
getTemplatePackageName()
Return the name of this event's template-package, if any.
|
int |
hashCode() |
boolean |
isRefer()
Returns true if the event is a refer.
|
boolean |
isUnqualifiedRefer()
Returns true if the event is an unqualified refer.
|
void |
toStream(java.io.DataOutput out)
Serializes this object to a stream in a form suitable for reading by
SubscribedEventID(DataInput) . |
java.lang.String |
toString() |
public SubscribedEventID(java.lang.String name, @Nullable java.lang.String id)
SubscribedEventID
name
- the event nameid
- an ID string, may be null
public SubscribedEventID(java.io.DataInput in) throws java.io.IOException
toStream(DataOutput)
.in
- input stream.java.io.IOException
public static SubscribedEventID fromString(java.lang.String s)
SubscribedEventID
from a string.s
- a string in the form <event-name>[;id=<id>]
SubscribedEventID
instancepublic void toStream(java.io.DataOutput out) throws java.io.IOException
SubscribedEventID(DataInput)
.out
- the stream to write tojava.io.IOException
- if an I/O error occurspublic java.lang.String getName()
@Nullable public java.lang.String getID()
null
public java.lang.String getTemplatePackageName()
public boolean isRefer()
public boolean isUnqualifiedRefer()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.