Top Description Fields Constructors Methods
org.h2.util

public final Class NetworkConnectionInfo

extends Object
Class Inheritance
Imports
java.net.InetAddress, .UnknownHostException

Network connection information.

Field Summary

Modifier and TypeField and Description
private final byte[]
private final String
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
NetworkConnectionInfo(String
the protocol and port of the server
server
,
String
the client address
clientAddr
,
int
the client port
clientPort
)

Creates new instance of network connection information.

public
NetworkConnectionInfo(String
the protocol and port of the server
server
,
byte[]
the client address
clientAddr
,
int
the client port
clientPort
,
String
additional client information, or null
clientInfo
)

Creates new instance of network connection information.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the client address and port
getClient
()

Returns the client address and port.

public byte[]

Returns:

the client address
getClientAddr
()

Returns the client address.

public String

Returns:

additional client information, or null
getClientInfo
()

Returns additional client information, or null.

public int

Returns:

the client port
getClientPort
()

Returns the client port.

public String

Returns:

the protocol and port of the server
getServer
()

Returns the protocol and port of the server.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientAddrback to summary
private final byte[] clientAddr
clientInfoback to summary
private final String clientInfo
clientPortback to summary
private final int clientPort
serverback to summary
private final String server

Constructor Detail

NetworkConnectionInfoback to summary
public NetworkConnectionInfo(String server, String clientAddr, int clientPort) throws UnknownHostException

Creates new instance of network connection information.

Parameters
server:String

the protocol and port of the server

clientAddr:String

the client address

clientPort:int

the client port

Exceptions
UnknownHostException:
if clientAddr cannot be resolved
NetworkConnectionInfoback to summary
public NetworkConnectionInfo(String server, byte[] clientAddr, int clientPort, String clientInfo)

Creates new instance of network connection information.

Parameters
server:String

the protocol and port of the server

clientAddr:byte[]

the client address

clientPort:int

the client port

clientInfo:String

additional client information, or null

Method Detail

getClientback to summary
public String getClient()

Returns the client address and port.

Returns:String

the client address and port

getClientAddrback to summary
public byte[] getClientAddr()

Returns the client address.

Returns:byte[]

the client address

getClientInfoback to summary
public String getClientInfo()

Returns additional client information, or null.

Returns:String

additional client information, or null

getClientPortback to summary
public int getClientPort()

Returns the client port.

Returns:int

the client port

getServerback to summary
public String getServer()

Returns the protocol and port of the server.

Returns:String

the protocol and port of the server