mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
24.07.2013 35caf248285c817f6c459f01f3e4c912a6d87086
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, September 24, 2013 11:07 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, September 24, 2013 11:07 +0200
commit35caf248285c817f6c459f01f3e4c912a6d87086
tree 72374d506dd39d40cebd0a16c01b83d20a6a80bd tree | zip | gz
parent 53deb22a943576c17c92395ffb5c518b6143a06c view | diff
OPENDJ-1134 (CR-2338) Introduce a class in replication for encapsulating host+port combinations

HostPort.java:
Improved javadocs.
Improved host normalization for and used remote IP addresses for remote hosts (complies with code from ReplicationServer.java.disconnectRemovedReplicationServers()).
Renamed normalizedHost() tpo normalizeHost().
Removed trimming for serverURLs.
In valueOf(), added a special case to reject unbracketed IPV6 addresses.
Extracted constant LOCALHOST to avoid typos.
Reworked the code from isLocalAddress(), equals(), hashCode().

HostPortTest.java:
Reworked some tests.
Added new tests.
2 files modified
148 ■■■■ changed files
opends/src/server/org/opends/server/types/HostPort.java 110 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/types/HostPortTest.java 38 ●●●● diff | view | raw | blame | history