Package org.webkitgtk
Class WebResource.Builder<B extends WebResource.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.WebResource.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
WebResource
public static class WebResource.Builder<B extends WebResource.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theWebResourceobject.onFailed(WebResource.FailedCallback handler) This signal is emitted when an error occurs during the resource load operation.This signal is emitted when a TLS error occurs during the resource load operation.onFinished(WebResource.FinishedCallback handler) This signal is emitted when the resource load finishes successfully or due to an error.This signal is emitted whenrequesthas been sent to the server.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 theWebResourceobject. 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 toWebResource.- Overrides:
buildin classGObject.Builder<B extends WebResource.Builder<B>>- Returns:
- a new instance of
WebResourcewith the properties that were set in the Builder object.
-
onFailed
This signal is emitted when an error occurs during the resource load operation.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onFailedWithTlsErrors
This signal is emitted when a TLS error occurs during the resource load operation.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.8
- See Also:
-
onFinished
This signal is emitted when the resource load finishes successfully or due to an error. In case of errorsWebKitWebResource::failed signal is emitted before this one.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onSentRequest
This signal is emitted whenrequesthas been sent to the server. In case of a server redirection this signal is emitted again with therequestargument containing the new request sent to the server due to the redirection and theredirectedResponseparameter containing the response received by the server for the initial request.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-