public class AddressBuilderQuery extends Object implements BuildableAddress
Address with a query section.| Modifier and Type | Method and Description |
|---|---|
AddressBuilderAnchor |
anchor(CharSequence anchor)
Set the anchor section of this
Address. |
Address |
build()
Generate an
Address representing the current state of this AddressBuilder. |
Address |
buildLiteral()
Generate an
Address representing the current literal state of this AddressBuilder. |
AddressBuilderQuery |
query(CharSequence name,
Object value)
Set a query-parameter to a value or multiple values.
|
AddressBuilderQuery |
queryDecoded(CharSequence name,
Object... values)
Set a query-parameter value or multiple values.
|
AddressBuilderQuery |
queryEncoded(CharSequence name,
Object value)
Set a query-parameter to a value or multiple values.
|
String |
toString() |
public Address build()
BuildableAddressAddress representing the current state of this AddressBuilder.build in interface BuildableAddresspublic Address buildLiteral()
BuildableAddressAddress representing the current literal state of this AddressBuilder.
(Does not apply parameterization. E.g. The URL `/{foo}` will be treated as literal text, as opposed to calling
BuildableAddress.build(), which would result in `foo` being treated as a parameterized expression)
buildLiteral in interface BuildableAddresspublic AddressBuilderQuery query(CharSequence name, Object value)
public AddressBuilderQuery queryDecoded(CharSequence name, Object... values)
public AddressBuilderQuery queryEncoded(CharSequence name, Object value)
public AddressBuilderAnchor anchor(CharSequence anchor)
Address.Copyright © 2019 OCPsoft. All rights reserved.