[WFLY-2526] SocketBinding cleanup

* remove code duplication 
* add missing javadoc
* (related to https://issues.jboss.org/browse/WFLY-2526)