/** * @see java.lang.Object#toString() */ @Override public String toString() { StringBuffer buf = new StringBuffer(64); buf.append(this.getClass().getName()); buf.append(" hostname="); buf.append(getHostname()); buf.append(" port="); buf.append(getPort()); buf.append(" order="); buf.append(m_order); buf.append(" protocol="); buf.append(getProtocol()); if (isAuthenticating()) { buf.append(" user="); buf.append(getUsername()); buf.append(" password="); buf.append(getPassword()); } return buf.toString(); } }
/** * @see java.lang.Object#toString() */ @Override public String toString() { StringBuffer buf = new StringBuffer(64); buf.append(this.getClass().getName()); buf.append(" hostname="); buf.append(getHostname()); buf.append(" port="); buf.append(getPort()); buf.append(" order="); buf.append(m_order); buf.append(" protocol="); buf.append(getProtocol()); buf.append(" security=" + getSecurity()); if (isAuthenticating()) { buf.append(" user="); buf.append(getUsername()); buf.append(" password="); buf.append(getPassword()); } return buf.toString(); } }
Integer.toString(host.getPort())).addAttribute(A_ORDER, host.getOrder().toString()).addAttribute( A_PROTOCOL, host.getProtocol()); if (host.isAuthenticating()) { hostElement.addAttribute(A_USER, host.getUsername()).addAttribute(A_PASSWORD, host.getPassword());
host.getHostname()).addAttribute(A_PORT, Integer.toString(host.getPort())).addAttribute( A_ORDER, host.getOrder().toString()).addAttribute(A_PROTOCOL, host.getProtocol()).addAttribute( A_SECURITY, host.getSecurity());