Package org.gnome.soup
Class Auth.Builder<B extends Auth.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theAuthobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theAuthobject. 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:
buildin classGObject.Builder<B extends Auth.Builder<B>>- Returns:
- a new instance of
Authwith the properties that were set in the Builder object.
-
setAuthority
-
setIsForProxy
Whether or not the auth is for a proxy server.- Parameters:
isForProxy- the value for theis-for-proxyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setRealm
-