public static class AppNGizerClient.Config extends Object
Properties
from/to YAML or JSON files.Modifier and Type | Class and Description |
---|---|
static class |
AppNGizerClient.Config.Format |
Constructor and Description |
---|
Config() |
public static Properties readSiteProperties(AppNGizerClient appNGizer, String name, OutputStream out, AppNGizerClient.Config.Format format, boolean nonDefaultOnly) throws IOException
Site
's Properties
with the given
AppNGizerClient
and writes these to the given OutputStream
using YAML format.appNGizer
- the AppNGizerClient
to usename
- the name of the Site
format
- the format to useout
- the target to write tononDefaultOnly
- write only those properties where the value differs
from the default valueSite
's Properties
IOException
- if an error occurred while writing the outputpublic static Properties readSiteApplicationProperties(AppNGizerClient appNGizer, String site, String app, OutputStream out, AppNGizerClient.Config.Format format, boolean nonDefaultOnly) throws IOException
Application
's Properties
with the given
AppNGizerClient
and writes these to the given OutputStream
using YAML format.appNGizer
- the AppNGizerClient
to usesite
- the Site
where the Application
is
installed onapp
- the Application
's nameout
- the target to write toformat
- the AppNGizerClient.Config.Format
to usenonDefaultOnly
- write only those properties where the value differs
from the default valueApplication
's Properties
IOException
public static Properties readPlatformProperties(AppNGizerClient appNGizer, OutputStream out, AppNGizerClient.Config.Format format, boolean nonDefaultOnly) throws IOException
Properties
with the given
AppNGizerClient
and writes these to the given OutputStream
using YAML format.appNGizer
- the AppNGizerClient
to useout
- the target to write toformat
- the AppNGizerClient.Config.Format
to usenonDefaultOnly
- write only those properties where the value differs
from the default valueProperties
IOException
- if an error occurred while writing the outputpublic static void write(String name, OutputStream out, AppNGizerClient.Config.Format format, AppNGizerClient.PropertyWrapper wrapper) throws IOException
AppNGizerClient.PropertyWrapper
to the given OutputStream
out
- the stream to write toname
- the name to useformat
- wrapper
- the wrapper to read fromIOException
- if an error occurs while writingpublic static Properties writeSiteProperties(AppNGizerClient appNGizer, String site, InputStream in, AppNGizerClient.Config.Format format) throws IOException
appNGizer
- the AppNGizerClient
to usein
- the InputStream
to read fromformat
- the AppNGizerClient.Config.Format
to useSite
's Properties
IOException
- if an error occurred while reading the inputpublic static Map<String,AppNGizerClient.SiteConfig> readSite(InputStream in, AppNGizerClient.Config.Format format) throws IOException
AppNGizerClient.SiteConfig
sin
- the stream to read fromformat
- the AppNGizerClient.Config.Format
to useIOException
- if an error occurred while reading the inputpublic static Map<String,AppNGizerClient.PropertyWrapper> read(InputStream in, AppNGizerClient.Config.Format format) throws IOException
AppNGizerClient.PropertyWrapper
sin
- the stream to read fromformat
- the AppNGizerClient.Config.Format
to useIOException
- if an error occurred while reading the inputpublic static Properties writePlatformProperties(AppNGizerClient appNGizer, InputStream in, AppNGizerClient.Config.Format format) throws IOException
appNGizer
- the AppNGizerClient
to usein
- the InputStream
to read fromformat
- the AppNGizerClient.Config.Format
to useProperties
IOException
- if an error occurred while reading the inputpublic static Properties writeSiteApplicationProperties(AppNGizerClient appNGizer, String site, String app, InputStream in, AppNGizerClient.Config.Format format) throws IOException
appNGizer
- the AppNGizerClient
to usesite
- the Site
where the Application
is installed
onapp
- the Application
's namein
- the InputStream
to read fromformat
- the AppNGizerClient.Config.Format
to useApplication
's Properties
IOException
- if an error occurred while reading the inputCopyright © 2011–2020 aiticon GmbH. All rights reserved.