Class HSTSHandler

    • Constructor Detail

      • HSTSHandler

        public HSTSHandler​(HSTSHandler delegate)
      • HSTSHandler

        public HSTSHandler​(Object delegate)
    • Method Detail

      • hashCode

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

        public static HSTSHandler create​(long maxAge,
                                         boolean includeSubDomains)
        Creates a new instance that shall consider the configuration for sub domains.
        Parameters:
        maxAge - max age to attribute to the header
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        public static HSTSHandler create​(boolean includeSubDomains)
        Creates a new instance that shall consider the configuration for sub domains.
        Parameters:
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        public static HSTSHandler create()
        Creates a new instance that does not consider the configuration for sub domains. Using the default max age.
        Returns:
        an instance.