src/main/java/org/jboss/loom/migrators/server/ServerMigrator.java
private static String createSocketBindingScript(SocketBindingBean socketBinding)
            throws CliScriptException {
        String errMsg = " in socket-binding must be set.";
        Utils.throwIfBlank(socketBinding.getSocketPort(), errMsg, "Port");
        Utils.throwIfBlank(socketBinding.getSocketName(), errMsg, "Name");

        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/socket-binding-group=standard-sockets/socket-binding=");

        resultScript.append(socketBinding.getSocketName()).append(":add(");
        resultScript.append("port=").append(socketBinding.getSocketPort());

        builder.addProperty("interface", socketBinding.getSocketInterface());

        resultScript.append(builder.formatAndClearProps()).append(")");

        return resultScript.toString();
    }
/**
     * Creates a CLI script for adding socket-binding to AS7
     *
     * @param socketBinding object representing socket-binding
     * @return string containing created CLI script
     * @throws CliScriptException if required attributes are missing
     * 
     * @deprecated  Generate this from the ModelNode.
     */
Creates a CLI script for adding socket-binding to AS7
@param socketBinding object representing socket-binding
@return string containing created CLI script
@throws CliScriptException if required attributes are missing

@deprecated  Generate this from the ModelNode.
Creates a CLI script for adding socket - binding to AS7 @param socketBinding object representing socket - binding @return string containing created CLI script @throws CliScriptException if required attributes are missing @deprecated Generate this from the ModelNode .
private static String createSocketBindingScript(SocketBindingBean socketBinding)
            throws CliScriptException {
        String errMsg = " in socket-binding must be set.";
        Utils.throwIfBlank(socketBinding.getSocketPort(), errMsg, "Port");
        Utils.throwIfBlank(socketBinding.getSocketName(), errMsg, "Name");
        CliAddScriptBuilder builder = new CliAddScriptBuilder();
        StringBuilder resultScript = new StringBuilder("/socket-binding-group=standard-sockets/socket-binding=");
        resultScript.append(socketBinding.getSocketName()).append(":add(");
        resultScript.append("port=").append(socketBinding.getSocketPort());
        builder.addProperty("interface", socketBinding.getSocketInterface());
        resultScript.append(builder.formatAndClearProps()).append(")");
        return resultScript.toString();
    }
private static String createSocketBindingScript ( SocketBindingBean socketBinding ) throws CliScriptException { String errMsg = " in socket-binding must be set." ; Utils . throwIfBlank ( socketBinding . getSocketPort ( ) , errMsg , "Port" ) ; Utils . throwIfBlank ( socketBinding . getSocketName ( ) , errMsg , "Name" ) ; CliAddScriptBuilder builder = new CliAddScriptBuilder ( ) ; StringBuilder resultScript = new StringBuilder ( "/socket-binding-group=standard-sockets/socket-binding=" ) ; resultScript . append ( socketBinding . getSocketName ( ) ) . append ( ":add(" ) ; resultScript . append ( "port=" ) . append ( socketBinding . getSocketPort ( ) ) ; builder . addProperty ( "interface" , socketBinding . getSocketInterface ( ) ) ; resultScript . append ( builder . formatAndClearProps ( ) ) . append ( ")" ) ; return resultScript . toString ( ) ; }
Creates a CLI script for adding socket-binding to AS7
 @param socketBinding object representing socket-binding
 @return string containing created CLI script
 @throws CliScriptException if required attributes are missing
Creates a CLI script for adding socket - binding to AS7 @param socketBinding object representing socket - binding @return string containing created CLI script @throws CliScriptException if required attributes are missing