|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListeningPoint
This interface represents a unique IP network listening point, which consists of port transport and IP. A ListeningPoint is a Java representation of the socket that a SipProvider messaging entity uses to send and receive messages.
The ListeningPoint also includes an optional sent-by string parameter. If set, this string will be placed in the sent-by parameter of the top most Via header of outgoing requests.
Field Summary | |
---|---|
static int |
PORT_5060
Port Constant: Default port 5060. |
static int |
PORT_5061
Port Constant: Default port 5061. |
static java.lang.String |
SCTP
Transport constant: SCTP |
static java.lang.String |
TCP
Transport constant: TCP |
static java.lang.String |
TLS
Transport constant: TLS over TCP |
static java.lang.String |
UDP
Transport constant: UDP |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
This method indicates whether the specified object is equal to this Listening Point. |
java.lang.String |
getIPAddress()
Gets the IP of the ListeningPoint. |
int |
getPort()
Gets the port of the ListeningPoint. |
java.lang.String |
getSentBy()
Gets the sentBy attribute of the ListeningPoint. |
java.lang.String |
getTransport()
Gets the transport of the ListeningPoint. |
void |
setSentBy(java.lang.String sentBy)
Sets the sentBy string for this ListeningPoint. |
Field Detail |
---|
static final java.lang.String TCP
static final java.lang.String UDP
static final java.lang.String SCTP
static final java.lang.String TLS
static final int PORT_5060
static final int PORT_5061
Method Detail |
---|
int getPort()
java.lang.String getTransport()
java.lang.String getIPAddress()
void setSentBy(java.lang.String sentBy) throws java.text.ParseException
sentBy
- the sentBy string to be set in requests top most Via
headers.
java.text.ParseException
- which signals that an error has been reached
unexpectedly while parsing the sentBy value.java.lang.String getSentBy()
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object with which to compare this ListeningPoint.
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |