Package de.espirit.firstspirit.access
Class ConnectionManager.SocketParam
java.lang.Object
de.espirit.firstspirit.access.ConnectionManager.SocketParam
- Enclosing class:
- ConnectionManager
Container for socket parameters.
- Since:
- 4.0.17
-
Constructor Summary
ConstructorDescriptionSocketParam
(String host, int port, byte encryption, byte compression, de.espirit.firstspirit.access.Proxy proxy) Constructs this container by the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this object to the given.byte
Provides the compression type used.byte
Provides the encryption type used.getHost()
Provides the name of the host.int
getPort()
Provides the port of the socket.de.espirit.firstspirit.access.Proxy
getProxy()
Provides information on a proxy to used.int
hashCode()
Returns a hash code value for the object.toString()
Returns a string representation of the object.
-
Constructor Details
-
SocketParam
public SocketParam(String host, int port, byte encryption, byte compression, de.espirit.firstspirit.access.Proxy proxy) Constructs this container by the given arguments.- Parameters:
host
- The server host name.port
- The server port.encryption
- The used encryption, one ofConnectionManager.ENCRYPTION_NONE
,ConnectionManager.ENCRYPTION_TLS
,ConnectionManager.ENCRYPTION_CHACHA20
.compression
- The used compression, one ofConnectionManager.COMPRESSION_NONE
,ConnectionManager.COMPRESSION_DEFLATE
,ConnectionManager.COMPRESSION_DEFLATE_BEST
,ConnectionManager.COMPRESSION_DEFLATE_SPEED
.proxy
- The proxy.- Since:
- 4.0.17
-
-
Method Details
-
getHost
Provides the name of the host.- Returns:
- The host's name.
- Since:
- 4.0.17
-
getPort
public int getPort()Provides the port of the socket.- Returns:
- The port.
- Since:
- 4.0.17
-
getEncryption
public byte getEncryption()Provides the encryption type used.- Returns:
- The encryption type.
- Since:
- 4.0.17
-
getCompression
public byte getCompression()Provides the compression type used.- Returns:
- The compression.
- Since:
- 4.0.17
-
getProxy
public de.espirit.firstspirit.access.Proxy getProxy()Provides information on a proxy to used.- Returns:
- A proxy.
- Since:
- 4.0.17
-
hashCode
public int hashCode()Returns a hash code value for the object. -
equals
Compares this object to the given. -
toString
Returns a string representation of the object.
-