- All Implemented Interfaces:
QtObjectInterface
API for sending replies from an HTTP server
Java wrapper for Qt class QHttpServerResponder
- Since:
- This class was introduced in Qt 6.4.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQHttpServerResponder::StatusCode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QPair<QByteArray,
QByteArray>[] headerList
(QPair<QByteArray, QByteArray> ... pairs) Convenient method to create an array of pairs asQHttpServerResponder::HeaderList
final void
sendResponse
(QHttpServerResponse response) final void
write()
Overloaded function forwrite(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, byte [] mimeType) Overloaded function forwrite(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, byte [] mimeType, QHttpServerResponder.StatusCode status) final void
write
(byte [] data, QByteArray mimeType) Overloaded function forwrite(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
write
(byte [] data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function forwrite(byte[], io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) Overloaded function forwrite(io.qt.core.QByteArray, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
.final void
Overloaded function forwrite(byte[], java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, String mimeType, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, byte [] mimeType) Overloaded function forwrite(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, byte [] mimeType, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, QByteArray mimeType) Overloaded function forwrite(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function forwrite(io.qt.core.QByteArray, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
write
(QByteArray data, String mimeType) Overloaded function forwrite(io.qt.core.QByteArray, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, String mimeType, QHttpServerResponder.StatusCode status) final void
write
(QJsonDocument document) Overloaded function forwrite(io.qt.core.QJsonDocument, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QJsonDocument document, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function forwrite(io.qt.core.QJsonDocument, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QJsonDocument document, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
write
(QJsonDocument document, QHttpServerResponder.StatusCode status) final void
write
(QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function forwrite(io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
Overloaded function forwrite(io.qt.core.QIODevice, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, byte [] mimeType, QHttpServerResponder.StatusCode status) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
.final void
write
(QIODevice data, QByteArray mimeType) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
write
(QIODevice data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) final void
Overloaded function forwrite(io.qt.core.QIODevice, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, String mimeType, QHttpServerResponder.StatusCode status) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
.final void
write
(QHttpServerResponder.StatusCode status) final void
Overloaded function forwrite(java.lang.String, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(String data, byte [] mimeType, QHttpServerResponder.StatusCode status) final void
write
(String data, QByteArray mimeType) Overloaded function forwrite(java.lang.String, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(String data, QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
Overloaded function forwrite(java.lang.String, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(String data, String mimeType, QHttpServerResponder.StatusCode status) final void
writeBody
(byte [] body) Overloaded function forwriteBody(io.qt.core.QByteArray)
.final void
writeBody
(QByteArray body) final void
final void
writeBody
(ByteBuffer body) final void
writeHeader
(byte [] key, byte [] value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(byte [] key, QByteArray value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(byte [] key, String value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(QByteArray key, byte [] value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(QByteArray key, QByteArray value) final void
writeHeader
(QByteArray key, String value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(String key, byte [] value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(String key, QByteArray value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeader
(String key, String value) Overloaded function forwriteHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
writeHeaders
(QPair<? extends QByteArray, ? extends QByteArray> ... headers) final void
Overloaded function forwriteStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Method Details
-
sendResponse
- Parameters:
response
-- Since:
- This function was introduced in Qt 6.5.
-
write
@QtUninvokable public final void write(QByteArray data, QByteArray mimeType, QHttpServerResponder.StatusCode status) - Parameters:
data
-mimeType
-status
-
-
write
@QtUninvokable public final void write(QByteArray data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) - Parameters:
data
-headers
-status
-
-
write
- Parameters:
status
-
-
write
@QtUninvokable public final void write(QIODevice data, QByteArray mimeType, QHttpServerResponder.StatusCode status) - Parameters:
data
-mimeType
-status
-
-
write
@QtUninvokable public final void write(QIODevice data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) - Parameters:
data
-headers
-status
-
-
write
@QtUninvokable public final void write(QJsonDocument document, QHttpServerResponder.StatusCode status) - Parameters:
document
-status
-
-
write
@QtUninvokable public final void write(QJsonDocument document, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) - Parameters:
document
-headers
-status
-
-
write
@QtUninvokable public final void write(QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) - Parameters:
headers
-status
-
-
writeBody
- Parameters:
body
-
-
writeBody
- Parameters:
body
-
-
writeBody
- Parameters:
body
-
-
writeHeader
- Parameters:
key
-value
-
-
writeHeaders
@SafeVarargs @QtUninvokable public final void writeHeaders(QPair<? extends QByteArray, ? extends QByteArray> ... headers) - Parameters:
headers
-
-
writeStatusLine
- Parameters:
status
-
-
headerList
@SafeVarargs @QtUninvokable public static QPair<QByteArray,QByteArray>[] headerList(QPair<QByteArray, QByteArray> ... pairs) Convenient method to create an array of pairs as
QHttpServerResponder::HeaderList
-
write
Overloaded function for
write(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(byte [] data, QByteArray mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(java.lang.String, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(String data, QByteArray mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QByteArray data, byte [] mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(byte [] data, byte [] mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(java.lang.String, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(String data, byte [] mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.core.QByteArray, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QByteArray data, String mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(byte[], java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(byte [] data, String mimeType, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(java.lang.String, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(String data, String mimeType, QHttpServerResponder.StatusCode status) -
write
@SafeVarargs @QtUninvokable public final void write(QByteArray data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function for
write(io.qt.core.QByteArray, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@SafeVarargs @QtUninvokable public final void write(byte [] data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function for
write(byte[], io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(byte [] data, QPair<? extends QByteArray, ? extends QByteArray> [] headers, QHttpServerResponder.StatusCode status) Overloaded function for
write(io.qt.core.QByteArray, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
write
Overloaded function for
write(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(io.qt.core.QIODevice, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QIODevice data, byte [] mimeType, QHttpServerResponder.StatusCode status) Overloaded function for
write(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
write
Overloaded function for
write(io.qt.core.QIODevice, java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(QIODevice data, String mimeType, QHttpServerResponder.StatusCode status) Overloaded function for
write(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
write
@SafeVarargs @QtUninvokable public final void write(QIODevice data, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function for
write(io.qt.core.QIODevice, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(io.qt.core.QJsonDocument, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@SafeVarargs @QtUninvokable public final void write(QJsonDocument document, QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function for
write(io.qt.core.QJsonDocument, io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@SafeVarargs @QtUninvokable public final void write(QPair<? extends QByteArray, ? extends QByteArray> ... headers) Overloaded function for
write(io.qt.core.QPair[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeBody
Overloaded function for
writeBody(io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeHeader
Overloaded function for
writeHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
writeStatusLine
Overloaded function for
writeStatusLine(io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.
-