|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.SocketAddress
net.jxta.socket.JxtaSocketAddress
public class JxtaSocketAddress
This class implements a JxtaSocket address (PeerGroup ID + Pipe Advertisement + (optional) Peer ID).
It provides an immutable object used by sockets for binding, connecting, or as returned values.
JxtaSocket
,
JxtaServerSocket
,
SocketAddress
,
Socket
,
ServerSocket
,
Serialized FormConstructor Summary | |
---|---|
JxtaSocketAddress(PeerGroupID peerGroupId,
PipeAdvertisement pipeAdv)
Deprecated. use the PeerAdvertisement variant instead |
|
JxtaSocketAddress(PeerGroupID peerGroupId,
PipeAdvertisement pipeAdv,
PeerID peerId)
Deprecated. use the PeerAdvertisement variant instead |
|
JxtaSocketAddress(PeerGroup peerGroup,
PipeAdvertisement pipeAdv)
Creates a new instance of JxtaSocketAddress. |
|
JxtaSocketAddress(PeerGroup peerGroup,
PipeAdvertisement pipeAdv,
PeerAdvertisement peerAdv)
Creates a new instance of JxtaSocketAddress. |
|
JxtaSocketAddress(PeerGroup peerGroup,
PipeAdvertisement pipeAdv,
PeerID peerId)
Deprecated. use the PeerAdvertisement variant instead |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
PeerAdvertisement |
getPeerAdvertisement()
Returns the PeerID element of the address. |
PeerGroupID |
getPeerGroupId()
Returns the PeerGroupID element of the address |
PeerID |
getPeerId()
Returns the PeerID element of the address. |
PipeAdvertisement |
getPipeAdv()
Returns the PipeAdvertisement element of the address |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JxtaSocketAddress(PeerGroup peerGroup, PipeAdvertisement pipeAdv)
peerGroup
- peer group within which this socket existspipeAdv
- the advertisement of a pipe for the socket to listen on@Deprecated public JxtaSocketAddress(PeerGroup peerGroup, PipeAdvertisement pipeAdv, PeerID peerId)
peerGroup
- peer group within which this socket existspipeAdv
- the advertisement of a pipe for the socket to listen onpeerId
- the ID of a specific peer to be contacted over this socket
(may be null)public JxtaSocketAddress(PeerGroup peerGroup, PipeAdvertisement pipeAdv, PeerAdvertisement peerAdv)
peerGroup
- peer group within which this socket existspipeAdv
- the advertisement of a pipe for the socket to listen onpeerAdv
- the PeerAdvertisement (may not be null)@Deprecated public JxtaSocketAddress(PeerGroupID peerGroupId, PipeAdvertisement pipeAdv)
peerGroupId
- ID of peer group within which this socket existspipeAdv
- the advertisement of a pipe for the socket to listen on@Deprecated public JxtaSocketAddress(PeerGroupID peerGroupId, PipeAdvertisement pipeAdv, PeerID peerId)
peerGroupId
- ID of peer group within which this socket existspipeAdv
- the advertisement of a pipe for the socket to listen onpeerId
- the ID of a specific peer to be contacted over this socket
(may be null)
IllegalArgumentException
- if peerGroupId or pipeAdv are nullMethod Detail |
---|
public PeerGroupID getPeerGroupId()
public PipeAdvertisement getPipeAdv()
public PeerID getPeerId()
public PeerAdvertisement getPeerAdvertisement()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |