org.refcodes.mixin.CredentialsAccessor, org.refcodes.mixin.Dumpable, org.refcodes.mixin.IdentityAccessor, org.refcodes.mixin.PathAccessor, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.SecretAccessor, FragmentAccessor, HostAccessor, IpAddressAccessor, QueryFieldsAccessor, SchemeAccessor, Urlpublic class UrlImpl extends Object implements Url
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 |
|---|---|
UrlImpl() |
Default constructor.
|
UrlImpl(String aUrl) |
|
UrlImpl(String aProtocol,
String aHost) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
int aPort) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
int aPort,
String aPath) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
String aPath) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
String aPath,
FormFields aQueryFields) |
Constructs an
Url with the common attributes. |
UrlImpl(String aProtocol,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url with the common attributes. |
UrlImpl(String aUrl,
FormFields aQueryFields) |
|
UrlImpl(String aUrl,
FormFields aQueryFields,
String aFragment) |
|
UrlImpl(URL aURL) |
|
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields) |
Constructs an
Url with the common attributes. |
UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment) |
Constructs an
Url with the common attributes. |
UrlImpl(Url aUrl) |
|
UrlImpl(Url aUrl,
String... aPaths) |
|
UrlImpl(Url aUrl,
Url aOtherUrl) |
| 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() |
|
String |
toProtocol() |
Retrieves the protocol representation from the
Scheme. |
String |
toString() |
toCidrNotationpublic UrlImpl()
public UrlImpl(String aUrl) throws MalformedURLException
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 UrlImpl(String aUrl, FormFields aQueryFields) throws MalformedURLException
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 UrlImpl(String aUrl, FormFields aQueryFields, String aFragment) throws MalformedURLException
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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath,
FormFields aQueryFields,
String aFragment)
Url 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 UrlImpl(String aProtocol, String aHost)
Url 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 UrlImpl(String aProtocol, String aHost, int aPort)
Url 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 UrlImpl(String aProtocol, String aHost, int aPort, String aPath)
Url 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 UrlImpl(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields)
Url 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 UrlImpl(String aProtocol, String aHost, int aPort, String aPath, FormFields aQueryFields, String aFragment)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields)
Url 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 UrlImpl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath,
FormFields aQueryFields,
String aFragment)
Url 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 UrlImpl(String aProtocol, String aHost, String aPath)
Url 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 UrlImpl(String aProtocol, String aHost, String aPath, FormFields aQueryFields)
Url 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 UrlImpl(String aProtocol, String aHost, String aPath, FormFields aQueryFields, String aFragment)
Url 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 String getHost()
getHost in interface HostAccessorpublic int[] getIpAddress()
getIpAddress in interface IpAddressAccessorpublic int getPort()
getPort in interface org.refcodes.mixin.PortAccessorpublic String getPath()
getPath in interface org.refcodes.mixin.PathAccessorpublic FormFields getQueryFields()
getQueryFields in interface QueryFieldsAccessorpublic String getFragment()
getFragment in interface FragmentAccessorpublic String getIdentity()
getIdentity in interface org.refcodes.mixin.IdentityAccessorpublic String getSecret()
getSecret in interface org.refcodes.mixin.SecretAccessorCopyright © 2018. All rights reserved.