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
ConstructorsModifierConstructorDescriptionprotected
ResourceConfigImpl
(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.boolean
get()
int
hashCode()
path()
Resource is located on filesystem.proxy()
Proxy to use when using uri.Host of the proxy when using URI.int
Port of the proxy when using URI.Resource is located on classpath.toString()
uri()
Resource is available on aURI
.boolean
useProxy()
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.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<Resource>
- Returns:
- new configured runtime instance
-
get
-
resourcePath
Description copied from interface:ResourceConfig
Resource is located on classpath.- Specified by:
resourcePath
in interfaceResourceConfig
- Returns:
- classpath location of the resource
-
path
Description copied from interface:ResourceConfig
Resource is located on filesystem.- Specified by:
path
in interfaceResourceConfig
- Returns:
- path of the resource
-
contentPlain
Description copied from interface:ResourceConfig
Plain content of the resource (text).- Specified by:
contentPlain
in interfaceResourceConfig
- Returns:
- plain content
-
content
Description copied from interface:ResourceConfig
Binary content of the resource (base64 encoded).- Specified by:
content
in interfaceResourceConfig
- Returns:
- binary content
-
uri
Description copied from interface:ResourceConfig
Resource is available on aURI
.- Specified by:
uri
in interfaceResourceConfig
- Returns:
- of the resource
- See Also:
-
proxyHost
Description copied from interface:ResourceConfig
Host of the proxy when using URI.- Specified by:
proxyHost
in interfaceResourceConfig
- Returns:
- proxy host
-
proxyPort
public int proxyPort()Description copied from interface:ResourceConfig
Port of the proxy when using URI.- Specified by:
proxyPort
in interfaceResourceConfig
- Returns:
- proxy port
-
useProxy
public boolean useProxy()Description copied from interface:ResourceConfig
Whether 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:
useProxy
in interfaceResourceConfig
- Returns:
- whether to use proxy if configured
-
proxy
Description copied from interface:ResourceConfig
Proxy to use when using uri.- Specified by:
proxy
in interfaceResourceConfig
- Returns:
- proxy
-
description
Description copied from interface:ResourceConfig
Description of this resource when configured through plain text or binary.- Specified by:
description
in interfaceResourceConfig
- Returns:
- description
-
toString
-
equals
-
hashCode
public int hashCode()
-