Class BaseConfiguration
java.lang.Object
org.gcube.smartgears.configuration.container.BaseConfiguration
Base configuration for SmartGears containers.
- Author:
- Luca Frosini (ISTI-CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether token expiration should be checked.Returns the hostname.Returns the infrastructure name.getMode()Returns the container mode.getPort()Returns the port number.Returns the protocol.longReturns the publication frequency in seconds.booleanReturns whether children context authorization is enabled.voidsetAuthorizeChildrenContext(boolean authorizeChildrenContext) Sets whether children context authorization is enabled.voidsetCheckTokenExpiration(boolean checkTokenExpiration) Sets whether token expiration should be checked.voidsetHostname(String hostname) Sets the hostname.voidsetInfrastructure(String infrastructure) Sets the infrastructure name.voidSets the container mode.voidSets the port number.voidsetProtocol(String protocol) Sets the protocol.voidsetPublicationFrequencyInSeconds(long publicationFrequencyInSeconds) Sets the publication frequency in seconds.toString()
-
Constructor Details
-
BaseConfiguration
public BaseConfiguration()
-
-
Method Details
-
checkTokenExpiration
public boolean checkTokenExpiration()Returns whether token expiration should be checked.- Returns:
- true if token expiration should be checked, false otherwise
-
getMode
Returns the container mode.- Returns:
- the mode
-
getHostname
Returns the hostname.- Returns:
- the hostname
-
getPort
Returns the port number.- Returns:
- the port number
-
getProtocol
Returns the protocol.- Returns:
- the protocol
-
isAuthorizeChildrenContext
public boolean isAuthorizeChildrenContext()Returns whether children context authorization is enabled.- Returns:
- true if children context authorization is enabled, false otherwise
-
getInfrastructure
Returns the infrastructure name.- Returns:
- the infrastructure name
-
getPublicationFrequencyInSeconds
public long getPublicationFrequencyInSeconds()Returns the publication frequency in seconds.- Returns:
- the publication frequency in seconds
-
setPublicationFrequencyInSeconds
public void setPublicationFrequencyInSeconds(long publicationFrequencyInSeconds) Sets the publication frequency in seconds.- Parameters:
publicationFrequencyInSeconds- the publication frequency to set
-
setMode
Sets the container mode.- Parameters:
mode- the mode to set
-
setHostname
Sets the hostname.- Parameters:
hostname- the hostname to set
-
setPort
Sets the port number.- Parameters:
port- the port number to set
-
setProtocol
Sets the protocol.- Parameters:
protocol- the protocol to set
-
setAuthorizeChildrenContext
public void setAuthorizeChildrenContext(boolean authorizeChildrenContext) Sets whether children context authorization is enabled.- Parameters:
authorizeChildrenContext- true to enable, false to disable
-
setInfrastructure
Sets the infrastructure name.- Parameters:
infrastructure- the infrastructure name to set
-
setCheckTokenExpiration
public void setCheckTokenExpiration(boolean checkTokenExpiration) Sets whether token expiration should be checked.- Parameters:
checkTokenExpiration- true to check token expiration, false otherwise
-
toString
-