Class HSTSEnforcerDB.Builder<B extends HSTSEnforcerDB.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
HSTSEnforcerDB

public static class HSTSEnforcerDB.Builder<B extends HSTSEnforcerDB.Builder<B>> extends HSTSEnforcer.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public HSTSEnforcerDB build()
      Finish building the HSTSEnforcerDB object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to HSTSEnforcerDB.
      Overrides:
      build in class HSTSEnforcer.Builder<B extends HSTSEnforcerDB.Builder<B>>
      Returns:
      a new instance of HSTSEnforcerDB with the properties that were set in the Builder object.
    • setFilename

      public B setFilename(String filename)
      The filename of the SQLite database where HSTS policies are stored.
      Parameters:
      filename - the value for the filename property
      Returns:
      the Builder instance is returned, to allow method chaining