public final class Cdn extends Object
configure() method or you can take a look at predefined instances in CdnFactory.| Modifier and Type | Method and Description |
|---|---|
static CdnSettings |
configure()
Build custom CDN instance.
|
CdnSettings |
getSettings()
Get settings used by this CDN instance
|
panda.std.Result<Configuration,CdnException> |
load(@NotNull Source source)
Load configuration as default
Configuration structure. |
<T> panda.std.Result<T,CdnException> |
load(@NotNull Source source,
@NotNull Class<T> configurationClass)
Load configuration from the given source and map default
Configuration structure into the given configuration class. |
<T> panda.std.Result<T,CdnException> |
load(@NotNull Source source,
T instance)
Load configuration from the given source and map default
Configuration structure into the given configuration class. |
panda.std.Result<String,CdnException> |
render(@NotNull Element<?> element)
Convert the given configuration instance to the output string
|
panda.std.Result<String,CdnException> |
render(@NotNull Element<?> element,
@NotNull Output output)
Convert the given instance using
render(net.dzikoysk.cdn.model.Element) method and save the output in the given file using UTF-8 charset. |
panda.std.Result<String,CdnException> |
render(@NotNull Object entity)
Convert the given instance to the output string
|
panda.std.Result<String,CdnException> |
render(@NotNull Object entity,
@NotNull Output output)
Convert the given instance using
render(Object) method and save the output in the given file using UTF-8 charset. |
public static CdnSettings configure()
CdnFactory class.CdnFactorypublic panda.std.Result<Configuration,CdnException> load(@NotNull @NotNull Source source)
Configuration structure.source - the source to loadSourcepublic <T> panda.std.Result<T,CdnException> load(@NotNull @NotNull Source source, @NotNull @NotNull Class<T> configurationClass)
Configuration structure into the given configuration class.T - the expected typesource - the source to loadconfigurationClass - the class to useConfiguration structurepublic <T> panda.std.Result<T,CdnException> load(@NotNull @NotNull Source source, @NotNull T instance)
Configuration structure into the given configuration class.T - the expected typesource - the source to loadinstance - the instance to useConfiguration structurepublic panda.std.Result<String,CdnException> render(@NotNull @NotNull Object entity)
entity - the instance to convertpublic panda.std.Result<String,CdnException> render(@NotNull @NotNull Object entity, @NotNull @NotNull Output output)
render(Object) method and save the output in the given file using UTF-8 charset.entity - the instance to convertoutput - the output filepublic panda.std.Result<String,CdnException> render(@NotNull @NotNull Element<?> element)
element - the element to convertpublic panda.std.Result<String,CdnException> render(@NotNull @NotNull Element<?> element, @NotNull @NotNull Output output)
render(net.dzikoysk.cdn.model.Element) method and save the output in the given file using UTF-8 charset.element - the element to convertoutput - the output filepublic CdnSettings getSettings()
Copyright © 2021. All rights reserved.