Class BridgedApplicationConfiguration
- java.lang.Object
-
- org.gcube.smartgears.configuration.application.BridgedApplicationConfiguration
-
- All Implemented Interfaces:
ApplicationConfiguration
public class BridgedApplicationConfiguration extends Object implements ApplicationConfiguration
- Author:
- Fabio Simeoni, Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description BridgedApplicationConfiguration(ContainerConfiguration container, ApplicationConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcontext()Returns the context path of the applicationApplicationConfigurationcontext(String context)Sets the context path of the applicationStringdescription()Returns the description of the application.ApplicationConfigurationdescription(String description)Sets the description of the application.Set<Exclude>excludes()Returns a set of request paths that should not be subjected to request management.ApplicationConfigurationexcludes(Exclude... excludes)Set<Include>includes()Returns a set of request paths that should be subjected to request management.ApplicationConfigurationincludes(Include... includes)ApplicationConfigurationinner()voidmerge(ApplicationConfiguration config)Merges this configuration with another configurationModemode()Returns the management mode of the application.ApplicationConfigurationmode(Mode mode)Sets the management mode of this application.Stringname()Returns the name of the application.ApplicationConfigurationname(String name)Sets the name of the application.Persistencepersistence()Returns the persistence manager of the application.ApplicationConfigurationpersistence(Persistence manager)Sets the persistence manager of the application.booleanproxied()ProxyAddressproxyAddress()ApplicationConfigurationproxyAddress(ProxyAddress proxyaddress)StringserviceClass()Returns the class of the applicationApplicationConfigurationserviceClass(String group)Sets the class of the application.Set<String>startTokens()Returns the tokens in which the application operates when it first starts.ApplicationConfigurationstartTokens(Set<String> tokens)Sets the tokens in which the application operates when it first starts.voidvalidate()Validates this configuration.Stringversion()Returns the version of the application.ApplicationConfigurationversion(String version)Sets the version of the application.
-
-
-
Constructor Detail
-
BridgedApplicationConfiguration
public BridgedApplicationConfiguration(ContainerConfiguration container, ApplicationConfiguration config)
-
-
Method Detail
-
inner
public ApplicationConfiguration inner()
-
mode
public Mode mode()
Description copied from interface:ApplicationConfigurationReturns the management mode of the application.- Specified by:
modein interfaceApplicationConfiguration- Returns:
- the management mode
-
context
public String context()
Description copied from interface:ApplicationConfigurationReturns the context path of the application- Specified by:
contextin interfaceApplicationConfiguration- Returns:
- the context path
-
context
public ApplicationConfiguration context(String context)
Description copied from interface:ApplicationConfigurationSets the context path of the application- Specified by:
contextin interfaceApplicationConfiguration- Parameters:
context- the context path- Returns:
- this configuration
-
name
public String name()
Description copied from interface:ApplicationConfigurationReturns the name of the application.- Specified by:
namein interfaceApplicationConfiguration- Returns:
- the name
-
name
public ApplicationConfiguration name(String name)
Description copied from interface:ApplicationConfigurationSets the name of the application.- Specified by:
namein interfaceApplicationConfiguration- Parameters:
name- the name- Returns:
- this configuration
-
serviceClass
public String serviceClass()
Description copied from interface:ApplicationConfigurationReturns the class of the application- Specified by:
serviceClassin interfaceApplicationConfiguration- Returns:
- the class
-
serviceClass
public ApplicationConfiguration serviceClass(String group)
Description copied from interface:ApplicationConfigurationSets the class of the application.- Specified by:
serviceClassin interfaceApplicationConfiguration- Parameters:
group- the class- Returns:
- this configuration
-
version
public String version()
Description copied from interface:ApplicationConfigurationReturns the version of the application.- Specified by:
versionin interfaceApplicationConfiguration- Returns:
- the version
-
version
public ApplicationConfiguration version(String version)
Description copied from interface:ApplicationConfigurationSets the version of the application.- Specified by:
versionin interfaceApplicationConfiguration- Parameters:
version- the version- Returns:
- this configuration
-
description
public String description()
Description copied from interface:ApplicationConfigurationReturns the description of the application.- Specified by:
descriptionin interfaceApplicationConfiguration- Returns:
- the description
-
proxyAddress
public ProxyAddress proxyAddress()
- Specified by:
proxyAddressin interfaceApplicationConfiguration
-
description
public ApplicationConfiguration description(String description)
Description copied from interface:ApplicationConfigurationSets the description of the application.- Specified by:
descriptionin interfaceApplicationConfiguration- Parameters:
description- the description- Returns:
- this configuration
-
persistence
public Persistence persistence()
Description copied from interface:ApplicationConfigurationReturns the persistence manager of the application.- Specified by:
persistencein interfaceApplicationConfiguration- Returns:
- the manager
-
persistence
public ApplicationConfiguration persistence(Persistence manager)
Description copied from interface:ApplicationConfigurationSets the persistence manager of the application.- Specified by:
persistencein interfaceApplicationConfiguration- Parameters:
manager- the manager- Returns:
- this configuration
-
mode
public ApplicationConfiguration mode(Mode mode)
Description copied from interface:ApplicationConfigurationSets the management mode of this application.- Specified by:
modein interfaceApplicationConfiguration- Returns:
- this configuration
-
validate
public void validate()
Description copied from interface:ApplicationConfigurationValidates this configuration.- Specified by:
validatein interfaceApplicationConfiguration
-
excludes
public Set<Exclude> excludes()
Description copied from interface:ApplicationConfigurationReturns a set of request paths that should not be subjected to request management.- Specified by:
excludesin interfaceApplicationConfiguration- Returns:
- the set of exclude paths.
-
includes
public Set<Include> includes()
Description copied from interface:ApplicationConfigurationReturns a set of request paths that should be subjected to request management.- Specified by:
includesin interfaceApplicationConfiguration- Returns:
- the set of exclude paths.
-
merge
public void merge(ApplicationConfiguration config)
Description copied from interface:ApplicationConfigurationMerges this configuration with another configuration- Specified by:
mergein interfaceApplicationConfiguration- Parameters:
config- the other configuration
-
startTokens
public Set<String> startTokens()
Description copied from interface:ApplicationConfigurationReturns the tokens in which the application operates when it first starts.- Specified by:
startTokensin interfaceApplicationConfiguration- Returns:
- the tokens
-
startTokens
public ApplicationConfiguration startTokens(Set<String> tokens)
Description copied from interface:ApplicationConfigurationSets the tokens in which the application operates when it first starts.- Specified by:
startTokensin interfaceApplicationConfiguration- Returns:
- this configuration
-
proxied
public boolean proxied()
- Specified by:
proxiedin interfaceApplicationConfiguration
-
excludes
public ApplicationConfiguration excludes(Exclude... excludes)
- Specified by:
excludesin interfaceApplicationConfiguration
-
includes
public ApplicationConfiguration includes(Include... includes)
- Specified by:
includesin interfaceApplicationConfiguration
-
proxyAddress
public ApplicationConfiguration proxyAddress(ProxyAddress proxyaddress)
- Specified by:
proxyAddressin interfaceApplicationConfiguration
-
-