Class Support

java.lang.Object
swiss.trustbroker.config.dto.Support

public class Support extends Object
Support configuration.
Since:
1.7.0
See Also:
  • Constructor Details

    • Support

      public Support()
    • Support

      public Support(boolean enabled, String webDumpPathRegEx, String debugMarkerName, String debugEnabledValue, String allowedNetworks, List<String> allowedClientIps, Map<String,String> level, int memoryLimitBytes)
      Creates a new Support instance.
      Parameters:
      enabled - Feature flag
      webDumpPathRegEx - Extends debug support with web message dumping on configured servlet path
      debugMarkerName - HTTP cookie or header name identifying the debug session.
      debugEnabledValue - Value of the cookie or header signaling debug ON e.g. 'true'
      allowedNetworks - Network header if present checked against the configured regexp e.g. 'INTRANET|INTERNET'
      allowedClientIps - List of IP regexp rules matched against the IP address received from perimeter or socket e.g. '192\.168\..*'
      level - Logger names handle on a higher level than the default logging.logger level.
      memoryLimitBytes - Configure in-memory limits so network traffic cannot crash pods.
      Since:
      1.13.0, 1.15.0
  • Method Details

    • builder

      public static Support.SupportBuilder builder()
    • isEnabled

      public boolean isEnabled()
      Feature flag
    • getWebDumpPathRegEx

      public String getWebDumpPathRegEx()
      Extends debug support with web message dumping on configured servlet path
      Since:
      1.13.0
    • getDebugMarkerName

      public String getDebugMarkerName()
      HTTP cookie or header name identifying the debug session.
    • getDebugEnabledValue

      public String getDebugEnabledValue()
      Value of the cookie or header signaling debug ON e.g. 'true'
    • getAllowedNetworks

      public String getAllowedNetworks()
      Network header if present checked against the configured regexp e.g. 'INTRANET|INTERNET'
    • getAllowedClientIps

      public List<String> getAllowedClientIps()
      List of IP regexp rules matched against the IP address received from perimeter or socket e.g. '192\.168\..*'
    • getLevel

      public Map<String,String> getLevel()
      Logger names handle on a higher level than the default logging.logger level.
    • getMemoryLimitBytes

      public int getMemoryLimitBytes()
      Configure in-memory limits so network traffic cannot crash pods.
      Since:
      1.15.0
    • setEnabled

      public void setEnabled(boolean enabled)
      Feature flag
    • setWebDumpPathRegEx

      public void setWebDumpPathRegEx(String webDumpPathRegEx)
      Extends debug support with web message dumping on configured servlet path
      Since:
      1.13.0
    • setDebugMarkerName

      public void setDebugMarkerName(String debugMarkerName)
      HTTP cookie or header name identifying the debug session.
    • setDebugEnabledValue

      public void setDebugEnabledValue(String debugEnabledValue)
      Value of the cookie or header signaling debug ON e.g. 'true'
    • setAllowedNetworks

      public void setAllowedNetworks(String allowedNetworks)
      Network header if present checked against the configured regexp e.g. 'INTRANET|INTERNET'
    • setAllowedClientIps

      public void setAllowedClientIps(List<String> allowedClientIps)
      List of IP regexp rules matched against the IP address received from perimeter or socket e.g. '192\.168\..*'
    • setLevel

      public void setLevel(Map<String,String> level)
      Logger names handle on a higher level than the default logging.logger level.
    • setMemoryLimitBytes

      public void setMemoryLimitBytes(int memoryLimitBytes)
      Configure in-memory limits so network traffic cannot crash pods.
      Since:
      1.15.0
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object