Class HSTSEnforcer.Builder<B extends HSTSEnforcer.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
HSTSEnforcerDB.Builder
Enclosing class:
HSTSEnforcer

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

      public B onChanged(HSTSEnforcer.ChangedCallback handler)

      Emitted when hstsEnforcer changes.

      If a policy has been added, newPolicy will contain the newly-added policy and oldPolicy will be null. If a policy has been deleted, oldPolicy will contain the to-be-deleted policy and newPolicy will be null. If a policy has been changed, oldPolicy will contain its old value, and newPolicy its new value.

      Note that you shouldn't modify the policies from a callback to this signal.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: