Package io.helidon.common.configurable
Class ResourceConfig.BuilderBase.ResourceConfigImpl
java.lang.Object
io.helidon.common.configurable.ResourceConfig.BuilderBase.ResourceConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<Resource>,ResourceConfig,Supplier<Resource>
- Enclosing class:
ResourceConfig.BuilderBase<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ResourceConfig>
protected static class ResourceConfig.BuilderBase.ResourceConfigImpl
extends Object
implements ResourceConfig, Supplier<Resource>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.configurable.ResourceConfig
ResourceConfig.Builder, ResourceConfig.BuilderBase<BUILDER extends ResourceConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ResourceConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResourceConfigImpl(ResourceConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.content()Binary content of the resource (base64 encoded).Plain content of the resource (text).Description of this resource when configured through plain text or binary.booleanget()inthashCode()path()Resource is located on filesystem.proxy()Proxy to use when using uri.Host of the proxy when using URI.intPort of the proxy when using URI.Resource is located on classpath.toString()uri()Resource is available on aURI.booleanuseProxy()Whether to use proxy.
-
Constructor Details
-
ResourceConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<Resource>- Returns:
- new configured runtime instance
-
get
-
resourcePath
Description copied from interface:ResourceConfigResource is located on classpath.- Specified by:
resourcePathin interfaceResourceConfig- Returns:
- classpath location of the resource
-
path
Description copied from interface:ResourceConfigResource is located on filesystem.- Specified by:
pathin interfaceResourceConfig- Returns:
- path of the resource
-
contentPlain
Description copied from interface:ResourceConfigPlain content of the resource (text).- Specified by:
contentPlainin interfaceResourceConfig- Returns:
- plain content
-
content
Description copied from interface:ResourceConfigBinary content of the resource (base64 encoded).- Specified by:
contentin interfaceResourceConfig- Returns:
- binary content
-
uri
Description copied from interface:ResourceConfigResource is available on aURI.- Specified by:
uriin interfaceResourceConfig- Returns:
- of the resource
- See Also:
-
proxyHost
Description copied from interface:ResourceConfigHost of the proxy when using URI.- Specified by:
proxyHostin interfaceResourceConfig- Returns:
- proxy host
-
proxyPort
public int proxyPort()Description copied from interface:ResourceConfigPort of the proxy when using URI.- Specified by:
proxyPortin interfaceResourceConfig- Returns:
- proxy port
-
useProxy
public boolean useProxy()Description copied from interface:ResourceConfigWhether to use proxy. If set tofalse, proxy will not be used even if configured. When set totrue(default), proxy will be used if configured.- Specified by:
useProxyin interfaceResourceConfig- Returns:
- whether to use proxy if configured
-
proxy
Description copied from interface:ResourceConfigProxy to use when using uri.- Specified by:
proxyin interfaceResourceConfig- Returns:
- proxy
-
description
Description copied from interface:ResourceConfigDescription of this resource when configured through plain text or binary.- Specified by:
descriptionin interfaceResourceConfig- Returns:
- description
-
toString
-
equals
-
hashCode
public int hashCode()
-