Class BaseConfiguration

java.lang.Object
org.gcube.smartgears.configuration.container.BaseConfiguration

public class BaseConfiguration extends Object
Base configuration for SmartGears containers.
Author:
Luca Frosini (ISTI-CNR)
  • 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

      public Mode getMode()
      Returns the container mode.
      Returns:
      the mode
    • getHostname

      public String getHostname()
      Returns the hostname.
      Returns:
      the hostname
    • getPort

      public Integer getPort()
      Returns the port number.
      Returns:
      the port number
    • getProtocol

      public String 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

      public String 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

      public void setMode(Mode mode)
      Sets the container mode.
      Parameters:
      mode - the mode to set
    • setHostname

      public void setHostname(String hostname)
      Sets the hostname.
      Parameters:
      hostname - the hostname to set
    • setPort

      public void setPort(Integer port)
      Sets the port number.
      Parameters:
      port - the port number to set
    • setProtocol

      public void setProtocol(String protocol)
      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

      public void setInfrastructure(String infrastructure)
      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

      public String toString()
      Overrides:
      toString in class Object