org.refcodes.mixin.CredentialsAccessor, org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<Url.UrlBuilder>, org.refcodes.mixin.CredentialsAccessor.CredentialsMutator, org.refcodes.mixin.CredentialsAccessor.CredentialsProperty, org.refcodes.mixin.Dumpable, org.refcodes.mixin.IdentityAccessor, org.refcodes.mixin.IdentityAccessor.IdentityBuilder<Url.UrlBuilder>, org.refcodes.mixin.IdentityAccessor.IdentityMutator, org.refcodes.mixin.IdentityAccessor.IdentityProperty, org.refcodes.mixin.PathAccessor, org.refcodes.mixin.PathAccessor.PathBuilder<Url.UrlBuilder>, org.refcodes.mixin.PathAccessor.PathMutator, org.refcodes.mixin.PathAccessor.PathProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<Url.UrlBuilder>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.mixin.SecretAccessor, org.refcodes.mixin.SecretAccessor.SecretBuilder<Url.UrlBuilder>, org.refcodes.mixin.SecretAccessor.SecretMutator, org.refcodes.mixin.SecretAccessor.SecretProperty, FragmentAccessor, FragmentAccessor.FragmentBuilder<Url.UrlBuilder>, FragmentAccessor.FragmentMutator, FragmentAccessor.FragmentProperty, HostAccessor, HostAccessor.HostBuilder<Url.UrlBuilder>, HostAccessor.HostMutator, HostAccessor.HostProperty, IpAddressAccessor, IpAddressAccessor.IpAddressBuilder<Url.UrlBuilder>, IpAddressAccessor.IpAddressMutator, IpAddressAccessor.IpAddressProperty, QueryFieldsAccessor, QueryFieldsAccessor.QueryFieldsBuilder<Url.UrlBuilder>, QueryFieldsAccessor.QueryFieldsMutator, QueryFieldsAccessor.QueryFieldsProperty, SchemeAccessor, SchemeAccessor.SchemeBuilder<Url.UrlBuilder>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemeProperty, Url, Url.UrlBuilderpublic class UrlBuilderImpl extends Object implements Url.UrlBuilder
org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B extends org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B>>, org.refcodes.mixin.CredentialsAccessor.CredentialsMutator, org.refcodes.mixin.CredentialsAccessor.CredentialsPropertyFragmentAccessor.FragmentBuilder<B extends FragmentAccessor.FragmentBuilder<?>>, FragmentAccessor.FragmentMutator, FragmentAccessor.FragmentPropertyHostAccessor.HostBuilder<B extends HostAccessor.HostBuilder<?>>, HostAccessor.HostMutator, HostAccessor.HostPropertyorg.refcodes.mixin.IdentityAccessor.IdentityBuilder<B extends org.refcodes.mixin.IdentityAccessor.IdentityBuilder<B>>, org.refcodes.mixin.IdentityAccessor.IdentityMutator, org.refcodes.mixin.IdentityAccessor.IdentityPropertyIpAddressAccessor.IpAddressBuilder<B extends IpAddressAccessor.IpAddressBuilder<B>>, IpAddressAccessor.IpAddressMutator, IpAddressAccessor.IpAddressPropertyorg.refcodes.mixin.PathAccessor.PathBuilder<B extends org.refcodes.mixin.PathAccessor.PathBuilder<?>>, org.refcodes.mixin.PathAccessor.PathMutator, org.refcodes.mixin.PathAccessor.PathPropertyorg.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortPropertyQueryFieldsAccessor.QueryFieldsBuilder<B extends QueryFieldsAccessor.QueryFieldsBuilder<?>>, QueryFieldsAccessor.QueryFieldsMutator, QueryFieldsAccessor.QueryFieldsPropertySchemeAccessor.SchemeBuilder<B extends SchemeAccessor.SchemeBuilder<B>>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemePropertyorg.refcodes.mixin.SecretAccessor.SecretBuilder<B extends org.refcodes.mixin.SecretAccessor.SecretBuilder<B>>, org.refcodes.mixin.SecretAccessor.SecretMutator, org.refcodes.mixin.SecretAccessor.SecretPropertyUrl.UrlBuilder| Constructor | Description |
|---|---|
UrlBuilderImpl() |
Default constructor.
|
UrlBuilderImpl(String aUrl) |
Constructs an
Url.UrlBuilder from the provided URL String. |
UrlBuilderImpl(String aProtocol,
String aHost) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
int aPort) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
int aPort,
String aPath) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
String aPath) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
String aPath,
FormFields aQueryFields) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aProtocol,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(String aUrl,
FormFields aQueryFields) |
Constructs an
Url.UrlBuilder from the provided URL String. |
UrlBuilderImpl(String aUrl,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url.UrlBuilder from the provided URL String. |
UrlBuilderImpl(URL aURL) |
Constructs an
Url.UrlBuilder from the provided URL instance. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url.UrlBuilder with the common attributes. |
UrlBuilderImpl(Url aUrl) |
Creates an
Url.UrlBuilder from the provided Url. |
UrlBuilderImpl(Url aUrl,
String... aPaths) |
|
UrlBuilderImpl(Url aUrl,
Url aOtherUrl) |
Constructs a new
Url.UrlBuilder from the given Url instances
by adding the other Url's data to the first Url's data. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getFragment() |
Retrieves the fragment from the fragment property.
|
String |
getHost() |
Retrieves the host from the host property.
|
String |
getIdentity() |
|
int[] |
getIpAddress() |
Retrieves the IP-Address from the IP-Address property.
|
String |
getPath() |
|
int |
getPort() |
|
FormFields |
getQueryFields() |
Retrieves the request Query-Fields from the request Query-Fields
property.
|
org.refcodes.data.Scheme |
getScheme() |
Retrieves the UrlScheme from the URL scheme.
|
String |
getSecret() |
|
void |
setFragment(String aFragment) |
Sets the fragment for the fragment property.
|
void |
setHost(String aHost) |
Sets the host for the host property.
|
void |
setIdentity(String aIdentity) |
|
void |
setIpAddress(int[] aIpAddress) |
Sets the IP-Address for the IP-Address property.
|
void |
setPath(String aPath) |
|
void |
setPort(int aPort) |
|
void |
setProtocol(String aProtocol) |
Sets the protocol
String representation for the scheme
property. |
void |
setQueryFields(FormFields aQueryFields) |
Sets the request Query-Fields for the request Query-Fields property.
|
void |
setScheme(org.refcodes.data.Scheme aScheme) |
Sets the UrlScheme for the URL scheme.
|
void |
setSecret(String aSecret) |
|
String |
toProtocol() |
Retrieves the protocol representation from the
Scheme. |
String |
toString() |
toCidrNotationfromCidrNotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromUrl, fromURL, withCidrNotation, withFragment, withHost, withIdentity, withIpAddress, withPath, withPort, withProtocol, withQueryFields, withScheme, withSecretpublic UrlBuilderImpl()
public UrlBuilderImpl(Url aUrl)
Url.UrlBuilder from the provided Url.aUrl - The Url from which to construct this instance.public UrlBuilderImpl(String aUrl) throws MalformedURLException
Url.UrlBuilder from the provided URL String.aUrl - The URL String to be parsed. The URL consists of the
scheme (protocol), the identify and the secret (optional), the
host as well as an optional port and the (optional) path.MalformedURLException - in case the provided URL is considered
being malformed.public UrlBuilderImpl(String aUrl, FormFields aQueryFields) throws MalformedURLException
Url.UrlBuilder from the provided URL String.aUrl - The URL String to be parsed. The URL consists of the
scheme (protocol), the identify and the secret (optional), the
host as well as an optional port and the (optional) path.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.MalformedURLException - in case the provided URL is considered
being malformed.public UrlBuilderImpl(String aUrl, FormFields aQueryFields, String aFragment) throws MalformedURLException
Url.UrlBuilder from the provided URL String.aUrl - The URL String to be parsed. The URL consists of the
scheme (protocol), the identify and the secret (optional), the
host as well as an optional port and the (optional) path.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.aFragment - The fragment to be set.MalformedURLException - in case the provided URL is considered
being malformed.public UrlBuilderImpl(URL aURL)
Url.UrlBuilder from the provided URL instance.aURL - The URL to be used.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.aFragment - The fragment to be set.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(String aProtocol, String aHost)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.public UrlBuilderImpl(String aProtocol, String aHost, int aPort)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.public UrlBuilderImpl(String aProtocol, String aHost, int aPort, String aPath)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.public UrlBuilderImpl(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, String aFragment)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPort - The port to be used when connecting to the host.aPath - The path on the host to which the base destination URL is to
point to.aFragment - The fragment to be set.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment)
Url.UrlBuilder with the common attributes.aScheme - The Scheme (e.g. HTTP or HTTPS) to be used for the
destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.aFragment - The fragment to be set.public UrlBuilderImpl(String aProtocol, String aHost, String aPath)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.public UrlBuilderImpl(String aProtocol, String aHost, String aPath, FormFields aQueryFields)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.public UrlBuilderImpl(String aProtocol, String aHost, String aPath, FormFields aQueryFields, String aFragment)
Url.UrlBuilder with the common attributes.aProtocol - The protocol String (e.g. "http://" or
"https://") to be used for the destination URL.aHost - The host to which the destination URL is to point to.aPath - The path on the host to which the base destination URL is to
point to.aQueryFields - The Query-Fields to be used for the HTTP
Query-String.aFragment - The fragment to be set.public org.refcodes.data.Scheme getScheme()
getScheme in interface SchemeAccessorpublic String toProtocol()
Scheme. In case of
a scheme unknown by the Scheme enumeration, then
SchemeAccessor.getScheme() might return null whilst SchemeAccessor.toProtocol() still
retrieves the unknown scheme's protocol representation (as of
SchemeAccessor.SchemeMutator.setProtocol(String)).toProtocol in interface SchemeAccessorpublic void setScheme(org.refcodes.data.Scheme aScheme)
setScheme in interface SchemeAccessor.SchemeMutatoraScheme - The UrlScheme to be stored by the URL scheme.public void setProtocol(String aProtocol)
String representation for the scheme
property. You must provide the scheme's specific part as well. In
case of HTTP, provide "http://". In case your provided protocol is
unknown by the Scheme enumeration, then the scheme property
will not be set, though the SchemeAccessor.toProtocol() still
returns your protocol.setProtocol in interface SchemeAccessor.SchemeMutatoraProtocol - The UrlScheme's String representation to be
stored by the URL scheme.public String getHost()
getHost in interface HostAccessorpublic void setHost(String aHost)
setHost in interface HostAccessor.HostMutatoraHost - The host to be stored by the host property.public int[] getIpAddress()
getIpAddress in interface IpAddressAccessorpublic void setIpAddress(int[] aIpAddress)
setIpAddress in interface IpAddressAccessor.IpAddressMutatoraIpAddress - The IP-Address to be stored by the IP-Address
property.public int getPort()
getPort in interface org.refcodes.mixin.PortAccessorpublic void setPort(int aPort)
setPort in interface org.refcodes.mixin.PortAccessor.PortMutatorpublic String getPath()
getPath in interface org.refcodes.mixin.PathAccessorpublic void setPath(String aPath)
setPath in interface org.refcodes.mixin.PathAccessor.PathMutatorpublic FormFields getQueryFields()
getQueryFields in interface QueryFieldsAccessorpublic void setQueryFields(FormFields aQueryFields)
setQueryFields in interface QueryFieldsAccessor.QueryFieldsMutatoraQueryFields - The request Query-Fields to be stored by the form
fields property.public String getFragment()
getFragment in interface FragmentAccessorpublic void setFragment(String aFragment)
setFragment in interface FragmentAccessor.FragmentMutatoraFragment - The fragment to be stored by the fragment property.public String getIdentity()
getIdentity in interface org.refcodes.mixin.IdentityAccessorpublic String getSecret()
getSecret in interface org.refcodes.mixin.SecretAccessorpublic void setIdentity(String aIdentity)
setIdentity in interface org.refcodes.mixin.IdentityAccessor.IdentityMutatorpublic void setSecret(String aSecret)
setSecret in interface org.refcodes.mixin.SecretAccessor.SecretMutatorCopyright © 2018. All rights reserved.