/** * Create a new {@link AddressBuilder} instance. */ public static AddressBuilderBase begin() { return new AddressBuilderBase(new AddressBuilder()); }
@Override public boolean isPathSet() { return isSet(path); }
@Override public Address build() { return parent.build(); }
@Override public boolean isPortSet() { return isSet(port); }
/** * Set a parameter name and value or values. The values will be decoded before they are stored. */ public AddressBuilderDomain setDecoded(CharSequence name, Object... values) { parent.setDecoded(name, values); return this; }
@Override public Address buildLiteral() { return parent.buildLiteral(); }
@Override public String toString() { return parent.toString(); } }
/** * Set the path section of this {@link Address}. The given value will be encoded before it is stored. */ public AddressBuilderPath pathEncoded(CharSequence path) { return parent.pathEncoded(path); }
/** * Set the port section of this {@link Address}. */ AddressBuilderPort port(int port) { if (port >= 0) this.port = port; return new AddressBuilderPort(this); }
/** * Set the path section of this {@link Address}. The given value will be stored without additional encoding or * decoding. */ AddressBuilderPath path(CharSequence path) { this.path = path; return new AddressBuilderPath(this); }
/** * Set a parameter name and value or values. The values will be encoded before they are stored. */ public AddressBuilderPath setEncoded(CharSequence name, Object... values) { parent.setEncoded(name, values); return this; }
/** * Set the path section of this {@link Address}. The given value will be stored without additional encoding or * decoding. */ public AddressBuilderPath path(CharSequence path) { return parent.path(path); }
/** * Set the domain section of this {@link Address}. */ public AddressBuilderDomain domain(CharSequence domain) { return parent.domain(domain); }
/** * Create a new {@link AddressBuilder} instance. */ public static AddressBuilderBase begin() { return new AddressBuilderBase(new AddressBuilder()); }
@Override public boolean isDomainSet() { return isSet(host); }
@Override public Address build() { return parent.build(); }
@Override public boolean isQuerySet() { return isSet(query); } }
/** * Set a parameter name and value or values. The values will be decoded before they are stored. */ public AddressBuilderPath setDecoded(CharSequence name, Object... values) { parent.setDecoded(name, values); return this; }
@Override public boolean isQuerySet() { return isSet(query); } }
@Override public Address build() { return parent.build(); }