Package org.gnome.webkit
Class WebResource.Builder<B extends WebResource.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.webkit.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theWebResource
object.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 whenrequest
has been sent to the server.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 theWebResource
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 toWebResource
.- Overrides:
build
in classGObject.Builder<B extends WebResource.Builder<B>>
- Returns:
- a new instance of
WebResource
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
onFailed
This signal is emitted when an error occurs during the resource load operation.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance 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
Builder
instance is returned, to allow method chaining - 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
Builder
instance is returned, to allow method chaining - See Also:
-
onSentRequest
This signal is emitted whenrequest
has been sent to the server. In case of a server redirection this signal is emitted again with therequest
argument containing the new request sent to the server due to the redirection and theredirectedResponse
parameter containing the response received by the server for the initial request.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-