@Plugin(name="SocketAddress", category="Core", printObject=true) public class SocketAddress extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SocketAddress.Builder |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAddress() |
String |
getHostName() |
static SocketAddress |
getLoopback()
Creates a SocketAddress corresponding to
localhost:0 . |
int |
getPort() |
InetSocketAddress |
getSocketAddress() |
static SocketAddress.Builder |
newBuilder() |
String |
toString() |
public static SocketAddress getLoopback()
localhost:0
.localhost:0
public InetSocketAddress getSocketAddress()
public int getPort()
public InetAddress getAddress()
public String getHostName()
@PluginBuilderFactory public static SocketAddress.Builder newBuilder()
Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.