ninja-core/src/main/java/ninja/standalone/AbstractStandalone.java
protected String createServerUrl(String scheme, String host, Integer port) {
        StringBuilder sb = new StringBuilder();
        
        sb.append(scheme);
        sb.append("://");
        sb.append((host != null ? host : "localhost"));
        
        if (("http".equals(scheme) && port != 80) || ("https".equals(scheme) && port != 443)) {
            sb.append(":");
            sb.append(port);
        }
        
        return sb.toString();
    }
protected String createServerUrl(String scheme, String host, Integer port) {
        StringBuilder sb = new StringBuilder();
        
        sb.append(scheme);
        sb.append("://");
        sb.append((host != null ? host : "localhost"));
        
        if (("http".equals(scheme) && port != 80) || ("https".equals(scheme) && port != 443)) {
            sb.append(":");
            sb.append(port);
        }
        
        return sb.toString();
    }
protected String createServerUrl ( String scheme , String host , Integer port ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( scheme ) ; sb . append ( "://" ) ; sb . append ( ( host != null ? host : "localhost" ) ) ; if ( ( "http" . equals ( scheme ) && port != 80 ) || ( "https" . equals ( scheme ) && port != 443 ) ) { sb . append ( ":" ) ; sb . append ( port ) ; } return sb . toString ( ) ; }
helpful utilities for subclasses
helpful utilities for subclasses