@Override
    public String toString() {
        final StringBuilder str = new StringBuilder();
        if (username != null) str.append(username).append('@');
        str.append(protocol.name().toLowerCase()).append("://");
        str.append(host);
        if (port > 0) str.append(':').append(port);
        return str.toString();
    }
Default implementation of the {@link Rest}-interface.

@author  Emil Forslund
@since   1.0.0
common-parent/rest/src/main/java/com/speedment/common/rest/RestImpl.java