|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectdk.i1.diameter.node.Peer
public class Peer
A Diameter peer. Hmmmm. more documentation here...
Note: According to DIME WG (Diameter Maintanence and Extentions Working Group) the use of raw ip-address as host identities is non-compliant, so it is strongly encouraged to use fully-qualified domain names
| Nested Class Summary | |
|---|---|
static class |
Peer.TransportProtocol
|
| Field Summary | |
|---|---|
Capability |
capabilities
Capabilities of this peer |
| Constructor Summary | |
|---|---|
Peer(java.net.InetAddress address)
Deprecated. Use hostname instead of raw IP-address (preferably a FQDN) |
|
Peer(java.net.InetAddress address,
int port)
Deprecated. Use hostname instead of raw IP-address (preferably a FQDN) |
|
Peer(java.net.InetAddress address,
int port,
Peer.TransportProtocol transport_protocol)
Deprecated. Use hostname instead of raw IP-address (preferably a FQDN) |
|
Peer(java.net.InetAddress address,
Peer.TransportProtocol transport_protocol)
Deprecated. Use hostname instead of raw IP-address (preferably a FQDN) |
|
Peer(java.net.InetSocketAddress address)
Deprecated. Use hostname instead of raw IP-address (preferably a FQDN) |
|
Peer(Peer p)
Copy constructor (deep copy) |
|
Peer(String host)
Constructs a peer from a host name. |
|
Peer(String host,
int port)
Constructs a peer from a host name and port. |
|
Peer(String host,
int port,
Peer.TransportProtocol transport_protocol)
Constructs a peer from a host name, port and transport-protocol. |
|
Peer(java.net.URI uri)
Constructs a peer from a URI. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
static Peer |
fromURIString(String s)
Creates a peer from a Diameter URI string. |
int |
hashCode()
|
String |
host()
|
void |
host(String host)
|
int |
port()
|
void |
port(int port)
|
boolean |
secure()
|
void |
secure(boolean secure)
|
String |
toString()
|
Peer.TransportProtocol |
transportProtocol()
|
void |
transportProtocol(Peer.TransportProtocol transport_protocol)
|
java.net.URI |
uri()
Returns the Diameter URI of the peer |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Capability capabilities
| Constructor Detail |
|---|
public Peer(java.net.InetAddress address)
address - The IP address of the peer.
public Peer(java.net.InetAddress address,
Peer.TransportProtocol transport_protocol)
address - The IP address of the peer.transport_protocol - TCP or SCTP
public Peer(java.net.InetAddress address,
int port)
address - The IP address of the peer.port - The port of the peer.
public Peer(java.net.InetAddress address,
int port,
Peer.TransportProtocol transport_protocol)
address - The IP address of the peer.port - The port of the peer.transport_protocol - TCP or SCTP
public Peer(String host)
throws EmptyHostNameException
host - The host-name of the peer (preferably fully-qualified)
EmptyHostNameException
public Peer(String host,
int port)
throws EmptyHostNameException
host - The host-name of the peer (preferably fully-qualified)port - The port of the peer.
EmptyHostNameException
public Peer(String host,
int port,
Peer.TransportProtocol transport_protocol)
throws EmptyHostNameException
host - The host-name of the peer (preferably fully-qualified)port - The port of the peer.transport_protocol - TCP or SCTP
EmptyHostNameExceptionpublic Peer(java.net.InetSocketAddress address)
address - The socket address of the peer.
public Peer(java.net.URI uri)
throws UnsupportedURIException
uri - The Diameter URI
UnsupportedURIExceptionpublic Peer(Peer p)
| Method Detail |
|---|
public java.net.URI uri()
public static Peer fromURIString(String s)
throws UnsupportedURIException
s - The Diameter URI string, eg. "aaa://somehost.example.net"
UnsupportedURIExceptionpublic String host()
public void host(String host)
public int port()
public void port(int port)
public boolean secure()
public void secure(boolean secure)
public Peer.TransportProtocol transportProtocol()
public void transportProtocol(Peer.TransportProtocol transport_protocol)
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||