public class AddressBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CharSequence |
anchor |
protected CharSequence |
domain |
protected Map<CharSequence,org.ocpsoft.urlbuilder.Parameter> |
parameters |
protected CharSequence |
path |
protected Integer |
port |
protected Map<CharSequence,org.ocpsoft.urlbuilder.Parameter> |
queries |
protected CharSequence |
scheme |
protected CharSequence |
schemeSpecificPart |
| Modifier | Constructor and Description |
|---|---|
protected |
AddressBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static AddressBuilderBase |
begin()
Create a new
AddressBuilder instance. |
protected Address |
build()
Generate an
Address representing the current state of this AddressBuilder. |
protected Address |
buildLiteral()
Generate an
Address representing the current literal state of this AddressBuilder. |
static Address |
create(String url)
Create a new
Address from the given URL. |
String |
toString() |
protected volatile CharSequence scheme
protected volatile CharSequence schemeSpecificPart
protected volatile CharSequence domain
protected volatile Integer port
protected volatile CharSequence path
protected Map<CharSequence,org.ocpsoft.urlbuilder.Parameter> parameters
protected Map<CharSequence,org.ocpsoft.urlbuilder.Parameter> queries
protected CharSequence anchor
public static AddressBuilderBase begin()
AddressBuilder instance.protected Address build()
Address representing the current state of this AddressBuilder.protected Address buildLiteral()
Address 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
build(), which would result in `foo` being treated as a parameterized expression)
public static Address create(String url) throws IllegalArgumentException
Address from the given URL. Improperly formatted or encoded URLs are not parse-able and will
result in an exception. No builder parameterization is possible using this method.IllegalArgumentException - when the input URL or URL fragment is not valid.http://en.wikipedia.org/wiki/URI_schemeCopyright © 2018 OCPsoft. All rights reserved.