Package org.refcodes.net
Interface BaseUrlAccessor.BaseUrlMutator
-
- All Known Subinterfaces:
BaseUrlAccessor.BaseUrlProperty
,HttpClientContext.HttpClientContextBuilder
- All Known Implementing Classes:
HttpClientContextBuilderImpl
- Enclosing interface:
- BaseUrlAccessor
public static interface BaseUrlAccessor.BaseUrlMutator
Provides a mutator for a base URL (protocol, host, port, locator) property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
setBaseUrl(java.lang.String aBaseUrl)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the givenString
.default void
setBaseUrl(java.lang.String aProtocol, java.lang.String aHost)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, int aPort)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.void
setBaseUrl(java.net.URL aBaseUrl)
Sets the base URL (protocol, host, port, path) for the base URL (protocol, host, port, path) property.default void
setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.default void
setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath)
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.void
setBaseUrl(Url aBaseUrl)
Sets the baseUrl
(protocol, host, port, path) for the base URL (protocol, host, port, path) property.
-
-
-
Method Detail
-
setBaseUrl
void setBaseUrl(Url aBaseUrl)
Sets the baseUrl
(protocol, host, port, path) for the base URL (protocol, host, port, path) property.- Parameters:
aBaseUrl
- The base URL (protocol, host, port, path) to be stored by the local address property.
-
setBaseUrl
void setBaseUrl(java.net.URL aBaseUrl)
Sets the base URL (protocol, host, port, path) for the base URL (protocol, host, port, path) property.- Parameters:
aBaseUrl
- The base URL (protocol, host, port, path) to be stored by the local address property.
-
setBaseUrl
default void setBaseUrl(java.lang.String aBaseUrl) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the givenString
.- Parameters:
aBaseUrl
- TheString
representing theURL
.- Throws:
java.net.MalformedURLException
- in case theString
cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(java.lang.String aProtocol, java.lang.String aHost) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, int aPort) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPort
- The port to be used when connecting to the host.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aScheme
- TheScheme
(e.g.Scheme.HTTP
orScheme.HTTPS
) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aScheme
- TheScheme
(e.g.Scheme.HTTP
orScheme.HTTPS
) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPort
- The port to be used when connecting to the host.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, java.lang.String aPath) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPath
- The path on the host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(java.lang.String aProtocol, java.lang.String aHost, int aPort, java.lang.String aPath) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aProtocol
- The protocol (e.g. HTTP or HTTPS) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aPath) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aScheme
- TheScheme
(e.g.Scheme.HTTP
orScheme.HTTPS
) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPath
- The path on the host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
setBaseUrl
default void setBaseUrl(org.refcodes.data.Scheme aScheme, java.lang.String aHost, int aPort, java.lang.String aPath) throws java.net.MalformedURLException
Same assetBaseUrl(URL)
except that aMalformedURLException
may occur when creating theURL
instance from the given parameters.- Parameters:
aScheme
- TheScheme
(e.g.Scheme.HTTP
orScheme.HTTPS
) to be used for the baseURL
.aHost
- The host to which the baseURL
is to point to.aPort
- The port to be used when connecting to the host.aPath
- The path on the host to which the baseURL
is to point to.- Throws:
java.net.MalformedURLException
- in case the parameters cannot be converted to a valid (accepted)URL
.
-
-