public class AddressBuilderScheme extends Object implements BuildableAddress
Address with a scheme section.| 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 host)
Set the domain section of this
Address. |
AddressBuilderPath |
path(CharSequence path)
Set the non-encoded 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.
|
AddressBuilderSchemeSpecificPart |
schemeSpecificPart(CharSequence schemeSpecificPart)
Set the scheme specific part section of this
Address. |
AddressBuilderScheme |
set(CharSequence name,
Object... values)
Set a parameter name and value or values.
|
AddressBuilderScheme |
setDecoded(CharSequence name,
Object... values)
Set a parameter name and value or values.
|
AddressBuilderScheme |
setEncoded(CharSequence name,
Object... values)
Set a parameter name and value or 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 AddressBuilderDomain domain(CharSequence host)
Address.public AddressBuilderSchemeSpecificPart schemeSpecificPart(CharSequence schemeSpecificPart)
Address.public AddressBuilderScheme set(CharSequence name, Object... values)
public AddressBuilderScheme setDecoded(CharSequence name, Object... values)
public AddressBuilderScheme setEncoded(CharSequence name, Object... values)
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 © 2021 OCPsoft. All rights reserved.