Class URIRequest
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.webkitgtk.URIRequest
- All Implemented Interfaces:
Proxy
Represents a URI request.
A WebKitURIRequest can be created with a URI using the
webkit_uri_request_new() method, and you can get the URI of an
existing request with the webkit_uri_request_get_uri() one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classURIRequest.Builder<B extends URIRequest.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new URIRequest.URIRequest(MemorySegment address) Create a URIRequest instance for the provided memory address.URIRequest(String uri) Creates a newWebKitURIRequestfor the given URI. -
Method Summary
Modifier and TypeMethodDescriptionprotected URIRequestasParent()Return this instance as if it were its parent type.static URIRequest.Builder<? extends URIRequest.Builder> builder()AURIRequest.Builderobject constructs aURIRequestwith the specified properties.Get the HTTP headers of aWebKitURIRequestas aSoupMessageHeaders.Get the HTTP method of theWebKitURIRequest.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the URIRequest class.getUri()Obtains the request URI.voidSet the URI of this URIRequestMethods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
URIRequest
Create a URIRequest instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
URIRequest
Creates a newWebKitURIRequestfor the given URI.- Parameters:
uri- an URI
-
URIRequest
public URIRequest()Create a new URIRequest.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code. -
getHttpHeaders
Get the HTTP headers of aWebKitURIRequestas aSoupMessageHeaders.- Returns:
- a
SoupMessageHeaderswith the HTTP headers of this URIRequest ornullif this URIRequest is not an HTTP request.
-
getHttpMethod
Get the HTTP method of theWebKitURIRequest.- Returns:
- the HTTP method of the
WebKitURIRequestornullif this URIRequest is not an HTTP request. - Since:
- 2.12
-
getUri
-
setUri
-
builder
AURIRequest.Builderobject constructs aURIRequestwith the specified properties. Use the variousset...()methods to set properties, and finish construction withURIRequest.Builder.build().- Returns:
- the builder object
-