Package com.iizix.server
Class RedirectionServer
java.lang.Object
com.iizix.server.RedirectionServer
Class used to specify a redirection server when the load balancer is enabled and a client connects to a server that should not process the request.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- booleanChecks if two redirection server object are equal.Gets the host name or IP address of the redirection server.- int- getPort()Gets the port number for the redirection server.- intGets the real port to use for the redirection server.- int- hashCode()Returns the hashCode.- boolean- isSecure()Gets the flag for secure connection, i.e.- toString()Creates a string representation of the instance.
- Constructor Details- RedirectionServerConstructor.- Parameters:
- hostName- The host name or IP address of the redirection server.
- port- The port number for the redirection server, -1 for default.
- isSecure- Flag for secure connection, i.e. if SSL/TLS should be used.
- Throws:
- NullPointerException- If- hostNameis null.
- IllegalArgumentException- If port is not -1 or in range of 1-65535.
 
 
- Method Details- getHostNameGets the host name or IP address of the redirection server.- Returns:
- the hostName.
 
- getPortpublic int getPort()Gets the port number for the redirection server.- Returns:
- the port, -1 for default.
 
- getRealPortpublic int getRealPort()Gets the real port to use for the redirection server.- Returns:
- The port number.
 
- isSecurepublic boolean isSecure()Gets the flag for secure connection, i.e. if SSL/TLS should be used.- Returns:
- true if connection should use SSL/TLS, false otherwise.
 
- toStringCreates a string representation of the instance.
- hashCodepublic int hashCode()Returns the hashCode.
- equalsChecks if two redirection server object are equal.