All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.webengine.core.QWebEngineUrlRequestJob Maven / Gradle / Ivy

Go to download

Provides public API shared by both modules {@code qtjambi.webenginequick} and {@code qtjambi.webenginewidgets}.

There is a newer version: 6.7.2
Show newest version
package io.qt.webengine.core;

import io.qt.*;


/**
 * 

Represents a custom URL request

*

Java wrapper for Qt class QWebEngineUrlRequestJob

*/ public final class QWebEngineUrlRequestJob extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QWebEngineUrlRequestJob.class); /** *

Java wrapper for Qt enum QWebEngineUrlRequestJob::Error

*/ public enum Error implements QtEnumerator { @Deprecated /** *

Representing QWebEngineUrlRequestJob::NoError

* @deprecated This attribute has no effect. */ NoError(0), /** *

Representing QWebEngineUrlRequestJob::UrlNotFound

*/ UrlNotFound(1), /** *

Representing QWebEngineUrlRequestJob::UrlInvalid

*/ UrlInvalid(2), /** *

Representing QWebEngineUrlRequestJob::RequestAborted

*/ RequestAborted(3), /** *

Representing QWebEngineUrlRequestJob::RequestDenied

*/ RequestDenied(4), /** *

Representing QWebEngineUrlRequestJob::RequestFailed

*/ RequestFailed(5); static { QtJambi_LibraryUtilities.initialize(); } private Error(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Error resolve(int value) { switch (value) { case 0: return NoError; case 1: return UrlNotFound; case 2: return UrlInvalid; case 3: return RequestAborted; case 4: return RequestDenied; case 5: return RequestFailed; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QWebEngineUrlRequestJob::fail(QWebEngineUrlRequestJob::Error)

* @param error */ @QtUninvokable public final void fail(io.qt.webengine.core.QWebEngineUrlRequestJob.@NonNull Error error){ fail_native_QWebEngineUrlRequestJob_Error(QtJambi_LibraryUtilities.internal.nativeId(this), error.value()); } @QtUninvokable private native void fail_native_QWebEngineUrlRequestJob_Error(long __this__nativeId, int error); /** *

See QWebEngineUrlRequestJob::initiator()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QUrl initiator(){ return initiator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QUrl initiator_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlRequestJob::redirect(QUrl)

* @param url */ @QtUninvokable public final void redirect(io.qt.core.@NonNull QUrl url){ redirect_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url)); } @QtUninvokable private native void redirect_native_cref_QUrl(long __this__nativeId, long url); /** *

See QWebEngineUrlRequestJob::reply(QByteArray,QIODevice*)

* @param contentType * @param device */ @QtUninvokable public final void reply(io.qt.core.@NonNull QByteArray contentType, io.qt.core.@Nullable QIODevice device){ reply_native_cref_QByteArray_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(contentType), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); } @QtUninvokable private native void reply_native_cref_QByteArray_QIODevice_ptr(long __this__nativeId, long contentType, long device); /** *

See QWebEngineUrlRequestJob::requestBody()const

* @since This function was introduced in Qt 6.7. * @return */ @QtUninvokable public final io.qt.core.@Nullable QIODevice requestBody(){ return requestBody_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIODevice requestBody_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlRequestJob::requestHeaders()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QMap requestHeaders(){ return requestHeaders_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMap requestHeaders_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlRequestJob::requestMethod()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QByteArray requestMethod(){ return requestMethod_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray requestMethod_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlRequestJob::requestUrl()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QUrl requestUrl(){ return requestUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QUrl requestUrl_native_constfct(long __this__nativeId); /** *

See QWebEngineUrlRequestJob::setAdditionalResponseHeaders(QMultiMap<QByteArray,QByteArray>)const

* @since This function was introduced in Qt 6.6. * @param additionalResponseHeaders */ @QtUninvokable public final void setAdditionalResponseHeaders(java.util.@NonNull Map> additionalResponseHeaders){ setAdditionalResponseHeaders_native_cref_QMultiMap_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), additionalResponseHeaders); } @QtUninvokable private native void setAdditionalResponseHeaders_native_cref_QMultiMap_constfct(long __this__nativeId, java.util.Map> additionalResponseHeaders); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess private QWebEngineUrlRequestJob(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #redirect(io.qt.core.QUrl)}.

*/ @QtUninvokable public final void redirect(java.lang.@NonNull String url) { redirect(new io.qt.core.QUrl(url)); } /** *

Overloaded function for {@link #reply(io.qt.core.QByteArray, io.qt.core.QIODevice)}.

*/ @QtUninvokable public final void reply(byte @NonNull[] contentType, io.qt.core.@Nullable QIODevice device) { reply(new io.qt.core.QByteArray(contentType), device); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy