|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jain.protocol.ip.sip.ListeningPoint
This class represents a unique IP network listening point, and consists of host, port and transport
| Field Summary | |
static int |
TRANSPORT_TCP
TCP Transport constant |
static int |
TRANSPORT_UDP
UDP Transport constant |
| Constructor Summary | |
ListeningPoint()
Creates a ListeningPoint (uses localhost, well-known sip port(5060) and TRANSPORT_UDP) |
|
ListeningPoint(java.net.InetAddress host)
Creates a ListeningPoint based on given host (uses well-known sip port(5060) and TRANSPORT_UDP) |
|
ListeningPoint(java.net.InetAddress host,
int port)
Creates a ListeningPoint based on given host and port (uses TRANSPORT_UDP) |
|
ListeningPoint(java.net.InetAddress host,
int port,
int transport)
Creates a ListeningPoint based on given host, port and transport |
|
| Method Summary | |
java.net.InetAddress |
getHost()
Gets host of ListeningPoint |
int |
getPort()
Gets port of ListeningPoint |
int |
getTransport()
Gets transport of ListeningPoint |
void |
setHost(java.net.InetAddress host)
Sets host of Header |
void |
setPort(int port)
Set port of Header |
void |
setTransport(int transport)
Sets transport of Header |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int TRANSPORT_UDP
public static final int TRANSPORT_TCP
| Constructor Detail |
public ListeningPoint(java.net.InetAddress host,
int port,
int transport)
throws java.lang.IllegalArgumentException
host - hostport - porttransport - transport
public ListeningPoint(java.net.InetAddress host,
int port)
throws java.lang.IllegalArgumentException
host - hostport - port
public ListeningPoint(java.net.InetAddress host)
throws java.lang.IllegalArgumentException
host - host
public ListeningPoint()
throws java.net.UnknownHostException
| Method Detail |
public java.net.InetAddress getHost()
public void setHost(java.net.InetAddress host)
throws java.lang.IllegalArgumentException
host - hostpublic int getPort()
public void setPort(int port)
throws java.lang.IllegalArgumentException
port - portpublic int getTransport()
public void setTransport(int transport)
throws java.lang.IllegalArgumentException
transport - transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems