Package org.gnome.soup
Class Auth.Builder<B extends Auth.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.soup.Auth.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
AuthBasic.Builder
,AuthDigest.Builder
,AuthNegotiate.Builder
,AuthNTLM.Builder
- Enclosing class:
Auth
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAuth
object.setAuthority
(String authority) The authority (host:port) being authenticated to.setIsForProxy
(boolean isForProxy) Whether or not the auth is for a proxy server.The authentication realm.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 theAuth
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 toAuth
.- Overrides:
build
in classGObject.Builder<B extends Auth.Builder<B>>
- Returns:
- a new instance of
Auth
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setAuthority
-
setIsForProxy
Whether or not the auth is for a proxy server.- Parameters:
isForProxy
- the value for theis-for-proxy
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRealm
-