public class SocketRemoteIdentifier extends Object implements RemoteIdentifier
| Constructor and Description |
|---|
SocketRemoteIdentifier(InetSocketAddress addr)
Constructs a remote identifier
|
SocketRemoteIdentifier(String str)
Constructs a remote identifier
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Checks that another object is equal to this object
|
InetSocketAddress |
getSocketAddress()
Gets the socket address
|
int |
hashCode()
Returns a hash code for the object
|
String |
toString()
Returns a string representation of the object
|
public SocketRemoteIdentifier(InetSocketAddress addr)
addr - the socket addresspublic SocketRemoteIdentifier(String str)
str - the string representationRemoteRuntimeExceptionpublic InetSocketAddress getSocketAddress()
public int hashCode()
hashCode in interface IdentifierhashCode in class Objectpublic boolean equals(Object o)
equals in interface Identifierequals in class Objecto - another objectCopyright © 2015 The Apache Software Foundation. All rights reserved.