Package org.gnome.soup
Class AuthDomain.Builder<B extends AuthDomain.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.soup.AuthDomain.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
AuthDomainBasic.Builder
,AuthDomainDigest.Builder
- Enclosing class:
AuthDomain
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAuthDomain
object.setFilter
(AuthDomainFilter filter) TheAuthDomainFilter
for the domain.setFilterData
(MemorySegment filterData) Data to pass to theAuthDomainFilter
.setGenericAuthCallback
(AuthDomainGenericAuthCallback genericAuthCallback) TheAuthDomainGenericAuthCallback
.setGenericAuthData
(MemorySegment genericAuthData) The data to pass to theAuthDomainGenericAuthCallback
.setProxy
(boolean proxy) Whether or not this is a proxy auth domain.The realm of this auth domain.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 theAuthDomain
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 toAuthDomain
.- Overrides:
build
in classGObject.Builder<B extends AuthDomain.Builder<B>>
- Returns:
- a new instance of
AuthDomain
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setFilter
TheAuthDomainFilter
for the domain.- Parameters:
filter
- the value for thefilter
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFilterData
Data to pass to theAuthDomainFilter
.- Parameters:
filterData
- the value for thefilter-data
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGenericAuthCallback
TheAuthDomainGenericAuthCallback
.- Parameters:
genericAuthCallback
- the value for thegeneric-auth-callback
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGenericAuthData
The data to pass to theAuthDomainGenericAuthCallback
.- Parameters:
genericAuthData
- the value for thegeneric-auth-data
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setProxy
Whether or not this is a proxy auth domain.- Parameters:
proxy
- the value for theproxy
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRealm
-