Package org.ocpsoft.urlbuilder
Class AddressBuilderPath
java.lang.Object
org.ocpsoft.urlbuilder.AddressBuilderPath
- All Implemented Interfaces:
BuildableAddress
An
Address with a path.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionSet the anchor section of thisAddress.build()Generate anAddressrepresenting the current state of thisAddressBuilder.Generate anAddressrepresenting the current literal state of thisAddressBuilder.query(CharSequence name, Object... values) Set a query-parameter to a value or multiple values.queryDecoded(CharSequence name, Object... values) Set a query-parameter value or multiple values.queryEncoded(CharSequence name, Object... values) Set a query-parameter to a value or multiple values.queryLiteral(String query) Set a literal query string without additional encoding or decoding.set(CharSequence name, Object... values) Set a parameter name and value or values.setDecoded(CharSequence name, Object... values) Set a parameter name and value or values.setEncoded(CharSequence name, Object... values) Set a parameter name and value or values.toString()
-
Method Details
-
build
Description copied from interface:BuildableAddressGenerate anAddressrepresenting the current state of thisAddressBuilder.- Specified by:
buildin interfaceBuildableAddress
-
buildLiteral
Description copied from interface:BuildableAddressGenerate anAddressrepresenting the current literal state of thisAddressBuilder.(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)- Specified by:
buildLiteralin interfaceBuildableAddress
-
query
Set a query-parameter to a value or multiple values. The given name and values will be stored without additional encoding or decoding. -
queryDecoded
Set a query-parameter value or multiple values. The given name and values be decoded before they are stored. -
queryEncoded
Set a query-parameter to a value or multiple values. The given name and values be encoded before they are stored. -
queryLiteral
Set a literal query string without additional encoding or decoding. A leading '?' character is optional; the builder will add one if necessary. -
anchor
Set the anchor section of thisAddress. -
set
Set a parameter name and value or values. The supplied values will be stored without additional encoding. -
setDecoded
Set a parameter name and value or values. The values will be decoded before they are stored. -
setEncoded
Set a parameter name and value or values. The values will be encoded before they are stored. -
toString
-