/** * Builds the root URI for this file name. */ @Override protected void appendRootUri(final StringBuilder buffer, final boolean addPassword) { buffer.append(getScheme()); buffer.append("://"); appendCredentials(buffer, addPassword); buffer.append(hostName); if (port != getDefaultPort()) { buffer.append(':'); buffer.append(port); } }
/** * Builds the root URI for this file name. */ @Override protected void appendRootUri(final StringBuilder buffer, final boolean addPassword) { buffer.append(getScheme()); buffer.append("://"); appendCredentials(buffer, addPassword); buffer.append(hostName); if (port != getDefaultPort()) { buffer.append(':'); buffer.append(port); } }
/** * Builds the root URI for this file name. */ @Override protected void appendRootUri(final StringBuilder buffer, final boolean addPassword) { buffer.append(getScheme()); buffer.append("://"); appendCredentials(buffer, addPassword); buffer.append(hostName); if (port != getDefaultPort()) { buffer.append(':'); buffer.append(port); } }
/** * Put {@code domain} before @{code username} if both are set. * <p> * Uses super method to add password or password placeholder. */ @Override protected void appendCredentials(final StringBuilder buffer, final boolean addPassword) { if (getDomain() != null && getDomain().length() != 0 && getUserName() != null && getUserName().length() != 0) { buffer.append(getDomain()); buffer.append("\\"); } super.appendCredentials(buffer, addPassword); }
/** * put domain before username if both are set */ @Override protected void appendCredentials(StringBuilder buffer, boolean addPassword) { if (getDomain() != null && getDomain().length() != 0 && getUserName() != null && getUserName().length() != 0) { buffer.append(getDomain()); buffer.append("\\"); } super.appendCredentials(buffer, addPassword); }