Package org.gnome.soup
Class HSTSEnforcer.Builder<B extends HSTSEnforcer.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.soup.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theHSTSEnforcer
object.onChanged
(HSTSEnforcer.ChangedCallback handler) Emitted whenhstsEnforcer
changes.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theHSTSEnforcer
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toHSTSEnforcer
.- Overrides:
build
in classGObject.Builder<B extends HSTSEnforcer.Builder<B>>
- Returns:
- a new instance of
HSTSEnforcer
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
onChanged
Emitted whenhstsEnforcer
changes.If a policy has been added,
newPolicy
will contain the newly-added policy andoldPolicy
will benull
. If a policy has been deleted,oldPolicy
will contain the to-be-deleted policy andnewPolicy
will benull
. If a policy has been changed,oldPolicy
will contain its old value, andnewPolicy
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:
-