public class AddressBuilderBase extends Object implements BuildableAddress
| Modifier and Type | Method and Description |
|---|---|
AddressBuilderAnchor |
anchor(String 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. |
AddressBuilderDomain |
domain(CharSequence domain)
Set the domain section of this
Address. |
AddressBuilderPath |
path(CharSequence path)
Set the path section of this
Address. |
AddressBuilderPath |
pathDecoded(CharSequence path)
Set the path section of this
Address. |
AddressBuilderPath |
pathEncoded(CharSequence path)
Set the path section of this
Address. |
AddressBuilderPort |
port(int port)
Set the port section of this
Address. |
AddressBuilderQuery |
query(CharSequence name,
Object... values)
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... values)
Set a query-parameter to a value or multiple values.
|
AddressBuilderQuery |
queryLiteral(String query)
Set a literal query string without additional encoding or decoding.
|
AddressBuilderScheme |
scheme(CharSequence scheme)
Set the scheme section of this
Address. |
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 AddressBuilderScheme scheme(CharSequence scheme)
Address.public AddressBuilderDomain domain(CharSequence domain)
Address.public AddressBuilderPort port(int port)
Address.public AddressBuilderPath path(CharSequence path)
Address. The given value will be stored without additional encoding or
decoding.public AddressBuilderPath pathDecoded(CharSequence path)
Address. The given value will be decoded before it is stored.public AddressBuilderPath pathEncoded(CharSequence path)
Address. The given value will be encoded before it is stored.public AddressBuilderQuery query(CharSequence name, Object... values)
public AddressBuilderQuery queryDecoded(CharSequence name, Object... values)
public AddressBuilderQuery queryEncoded(CharSequence name, Object... values)
public AddressBuilderQuery queryLiteral(String query)
public AddressBuilderAnchor anchor(String anchor)
Address.Copyright © 2016 OCPsoft. All rights reserved.