Package io.helidon.common.configurable
Interface ResourceConfig
- All Superinterfaces:
Prototype.Api
,Prototype.Factory<Resource>
- All Known Implementing Classes:
ResourceConfig.BuilderBase.ResourceConfigImpl
Configuration of a resource.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forResource
.static class
ResourceConfig.BuilderBase<BUILDER extends ResourceConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ResourceConfig> Fluent API builder base forResource
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static ResourceConfig.Builder
builder
(ResourceConfig instance) Create a new fluent API builder from an existing instance.content()
Binary content of the resource (base64 encoded).Plain content of the resource (text).static ResourceConfig
Create a new instance from configuration.Description of this resource when configured through plain text or binary.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.uri()
Resource is available on aURI
.boolean
useProxy()
Whether to use proxy.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
resourcePath
Resource is located on classpath.- Returns:
- classpath location of the resource
-
path
Resource is located on filesystem.- Returns:
- path of the resource
-
contentPlain
Plain content of the resource (text).- Returns:
- plain content
-
content
Binary content of the resource (base64 encoded).- Returns:
- binary content
-
uri
Resource is available on aURI
.- Returns:
- of the resource
- See Also:
-
proxyHost
Host of the proxy when using URI.- Returns:
- proxy host
-
proxyPort
int proxyPort()Port of the proxy when using URI.- Returns:
- proxy port
-
useProxy
boolean useProxy()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.- Returns:
- whether to use proxy if configured
-
proxy
Proxy to use when using uri.- Returns:
- proxy
-
description
String description()Description of this resource when configured through plain text or binary.- Returns:
- description
-