Package org.ocpsoft.urlbuilder
Class AddressBuilderScheme
java.lang.Object
org.ocpsoft.urlbuilder.AddressBuilderScheme
- All Implemented Interfaces:
BuildableAddress
An
Address with a scheme section.- 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.domain(CharSequence host) Set the domain section of thisAddress.path(CharSequence path) Set the non-encoded path section of thisAddress.pathDecoded(CharSequence path) Set the path section of thisAddress.pathEncoded(CharSequence path) Set the path section of thisAddress.port(int port) Set the port section of thisAddress.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.schemeSpecificPart(CharSequence schemeSpecificPart) Set the scheme specific part section of thisAddress.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
-
domain
Set the domain section of thisAddress. -
schemeSpecificPart
Set the scheme specific part 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. -
port
Set the port section of thisAddress. -
path
Set the non-encoded path section of thisAddress. The given value will be stored without additional encoding or decoding. -
pathDecoded
Set the path section of thisAddress. The given value will be decoded before it is stored. -
pathEncoded
Set the path section of thisAddress. The given value will be encoded before it is stored. -
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. -
toString
-