B
- The builder to return in order to be able to apply multiple
build operations.HttpClientContext.HttpClientContextBuilder
HttpClientContextBuilderImpl
public static interface BaseUrlAccessor.BaseUrlBuilder<B extends BaseUrlAccessor.BaseUrlBuilder<B>>
Modifier and Type | Method | Description |
---|---|---|
default B |
withBaseUrl(String aBaseUrl) |
Same as
withBaseUrl(URL) except that a
MalformedURLException may occur when creating the URL
instance from the given String . |
default B |
withBaseUrl(String aProtocol,
String aHost) |
Same as
withBaseUrl(URL) except that a
MalformedURLException may occur when creating the URL
instance from the given parameters. |
default B |
withBaseUrl(String aProtocol,
String aHost,
int aPort) |
Builder method for
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(String, String, int) . |
default B |
withBaseUrl(String aProtocol,
String aHost,
int aPort,
String aPath) |
Builder method for
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(String, String, int, String) . |
default B |
withBaseUrl(String aProtocol,
String aHost,
String aPath) |
Same as
withBaseUrl(URL) except that a
MalformedURLException may occur when creating the URL
instance from the given parameters. |
B |
withBaseUrl(URL aBaseURL) |
Sets the base URL (protocol, host, port, path) for the base URL
(protocol, host, port, path) property.
|
default B |
withBaseUrl(org.refcodes.data.Scheme aScheme,
String aHost) |
Same as
withBaseUrl(URL) except that a
MalformedURLException may occur when creating the URL
instance from the given parameters. |
default B |
withBaseUrl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort) |
Builder method for
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(Scheme, String, int) . |
default B |
withBaseUrl(org.refcodes.data.Scheme aScheme,
String aHost,
int aPort,
String aPath) |
Builder method for
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(Scheme, String, int, String) . |
default B |
withBaseUrl(org.refcodes.data.Scheme aScheme,
String aHost,
String aPath) |
Same as
withBaseUrl(URL) except that a
MalformedURLException may occur when creating the URL
instance from the given parameters. |
B |
withBaseUrl(Url aBaseUrl) |
Sets the base
Url (protocol, host, port, path) for the base
URL (protocol, host, port, path) property. |
B withBaseUrl(Url aBaseUrl)
Url
(protocol, host, port, path) for the base
URL (protocol, host, port, path) property.aBaseUrl
- The base URL (protocol, host, port, path) to be
stored by the local address property.B withBaseUrl(URL aBaseURL)
aBaseURL
- The base URL (protocol, host, port, path) to be
stored by the local address property.default B withBaseUrl(String aBaseUrl) throws MalformedURLException
withBaseUrl(URL)
except that a
MalformedURLException
may occur when creating the URL
instance from the given String
.aBaseUrl
- The String
representing the URL
.MalformedURLException
- in case the String
cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(String aProtocol, String aHost) throws MalformedURLException
withBaseUrl(URL)
except that a
MalformedURLException
may occur when creating the URL
instance from the given parameters.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the
base URL
.aHost
- The host to which the base URL
is to point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost) throws MalformedURLException
withBaseUrl(URL)
except that a
MalformedURLException
may occur when creating the URL
instance from the given parameters.aScheme
- The Scheme
(e.g. Scheme.HTTP
or
Scheme.HTTPS
) to be used for the base URL
.aHost
- The host to which the base URL
is to point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(String aProtocol, String aHost, String aPath) throws MalformedURLException
withBaseUrl(URL)
except that a
MalformedURLException
may occur when creating the URL
instance from the given parameters.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the
base URL
.aHost
- The host to which the base URL
is to point to.aPath
- The path on the host to which the base URL
is to
point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, String aPath) throws MalformedURLException
withBaseUrl(URL)
except that a
MalformedURLException
may occur when creating the URL
instance from the given parameters.aScheme
- The Scheme
(e.g. Scheme.HTTP
or
Scheme.HTTPS
) to be used for the base URL
.aHost
- The host to which the base URL
is to point to.aPath
- The path on the host to which the base URL
is to
point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(String aProtocol, String aHost, int aPort) throws MalformedURLException
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(String, String, int)
.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the
base URL
.aHost
- The host to which the base URL
is to point to.aPort
- The port to be used when connecting to the host.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, int aPort) throws MalformedURLException
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(Scheme, String, int)
.aScheme
- The Scheme
(e.g. Scheme.HTTP
or
Scheme.HTTPS
) to be used for the base URL
.aHost
- The host to which the base URL
is to point to.aPort
- The port to be used when connecting to the host.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(String aProtocol, String aHost, int aPort, String aPath) throws MalformedURLException
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(String, String, int, String)
.aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the
base URL
.aHost
- The host to which the base 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 URL
is to
point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.default B withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) throws MalformedURLException
BaseUrlAccessor.BaseUrlMutator.setBaseUrl(Scheme, String, int, String)
.aScheme
- The Scheme
(e.g. Scheme.HTTP
or
Scheme.HTTPS
) to be used for the base URL
.aHost
- The host to which the base 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 URL
is to
point to.MalformedURLException
- in case the parameters cannot be
converted to a valid (accepted) URL
.Copyright © 2018. All rights reserved.