Package org.ocpsoft.urlbuilder
Class AddressBuilderQuery
java.lang.Object
org.ocpsoft.urlbuilder.AddressBuilderQuery
- All Implemented Interfaces:
BuildableAddress
An
Address with a query section.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionanchor(CharSequence anchor) Set 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 value) 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 value) Set a query-parameter to a value or multiple 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. -
anchor
Set the anchor section of thisAddress. -
toString
-