- 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
swap
(QHttpServerResponder other) 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, QHttpHeaders headers) Overloaded function forwrite(byte[], io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(byte [] data, QHttpHeaders headers, QHttpServerResponder.StatusCode status) 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, QHttpHeaders headers) Overloaded function forwrite(io.qt.core.QByteArray, io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QByteArray data, QHttpHeaders 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, QHttpServerResponder.StatusCode status) final void
write
(QJsonDocument document, QHttpHeaders headers) Overloaded function forwrite(io.qt.core.QJsonDocument, io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QJsonDocument document, QHttpHeaders 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, QHttpHeaders headers) Overloaded function forwrite(io.qt.core.QIODevice, io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QIODevice data, QHttpHeaders 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
write
(QHttpHeaders headers) Overloaded function forwrite(io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
write
(QHttpHeaders headers, 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
writeBeginChunked
(byte [] mimeType) Overloaded function forwriteBeginChunked(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
writeBeginChunked
(byte [] mimeType, QHttpServerResponder.StatusCode status) Overloaded function forwriteBeginChunked(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
.final void
writeBeginChunked
(QByteArray mimeType) Overloaded function forwriteBeginChunked(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
writeBeginChunked
(QByteArray mimeType, QHttpServerResponder.StatusCode status) final void
writeBeginChunked
(QHttpHeaders headers) Overloaded function forwriteBeginChunked(io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
writeBeginChunked
(QHttpHeaders headers, QHttpServerResponder.StatusCode status) final void
writeBeginChunked
(QHttpHeaders headers, Collection<? extends QHttpHeaders.WellKnownHeader> trailerNames) Overloaded function forwriteBeginChunked(io.qt.network.QHttpHeaders, java.util.Collection, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.final void
writeBeginChunked
(QHttpHeaders headers, Collection<? extends QHttpHeaders.WellKnownHeader> trailerNames, QHttpServerResponder.StatusCode status) final void
writeChunk
(byte [] data) Overloaded function forwriteChunk(io.qt.core.QByteArray)
.final void
writeChunk
(QByteArray data) final void
writeEndChunked
(byte [] data) Overloaded function forwriteEndChunked(io.qt.core.QByteArray)
.final void
writeEndChunked
(byte [] data, QHttpHeaders trailers) Overloaded function forwriteEndChunked(io.qt.core.QByteArray, io.qt.network.QHttpHeaders)
.final void
writeEndChunked
(QByteArray data) final void
writeEndChunked
(QByteArray data, QHttpHeaders trailers) 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.
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 6.8.
-
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, QHttpHeaders headers, QHttpServerResponder.StatusCode status) - Parameters:
data
-headers
-status
-
-
write
@QtUninvokable public final void write(QHttpHeaders headers, QHttpServerResponder.StatusCode status) - Parameters:
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, QHttpHeaders headers, QHttpServerResponder.StatusCode status) - Parameters:
data
-headers
-status
-
-
write
@QtUninvokable public final void write(QJsonDocument document, QHttpHeaders headers, QHttpServerResponder.StatusCode status) - Parameters:
document
-headers
-status
-
-
write
@QtUninvokable public final void write(QJsonDocument document, QHttpServerResponder.StatusCode status) - Parameters:
document
-status
-
-
writeBeginChunked
@QtUninvokable public final void writeBeginChunked(QByteArray mimeType, QHttpServerResponder.StatusCode status) - Parameters:
mimeType
-status
-- Since:
- This function was introduced in Qt 6.8.
-
writeBeginChunked
@QtUninvokable public final void writeBeginChunked(QHttpHeaders headers, QHttpServerResponder.StatusCode status) - Parameters:
headers
-status
-- Since:
- This function was introduced in Qt 6.8.
-
writeBeginChunked
@QtUninvokable public final void writeBeginChunked(QHttpHeaders headers, Collection<? extends QHttpHeaders.WellKnownHeader> trailerNames, QHttpServerResponder.StatusCode status) - Parameters:
headers
-trailerNames
-status
-- Since:
- This function was introduced in Qt 6.8.
-
writeChunk
- Parameters:
data
-- Since:
- This function was introduced in Qt 6.8.
-
writeEndChunked
- Parameters:
data
-- Since:
- This function was introduced in Qt 6.8.
-
writeEndChunked
- Parameters:
data
-trailers
-- Since:
- This function was introduced in Qt 6.8.
-
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
Overloaded function for
write(io.qt.core.QByteArray, io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(byte[], io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
@QtUninvokable public final void write(byte [] data, QHttpHeaders headers, QHttpServerResponder.StatusCode status) -
write
Overloaded function for
write(io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
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
Overloaded function for
write(io.qt.core.QIODevice, io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
write
Overloaded function for
write(io.qt.core.QJsonDocument, io.qt.network.QHttpHeaders, 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
. -
writeBeginChunked
Overloaded function for
writeBeginChunked(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeBeginChunked
Overloaded function for
writeBeginChunked(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeBeginChunked
@QtUninvokable public final void writeBeginChunked(byte [] mimeType, QHttpServerResponder.StatusCode status) Overloaded function for
writeBeginChunked(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
writeBeginChunked
Overloaded function for
writeBeginChunked(io.qt.network.QHttpHeaders, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeBeginChunked
@QtUninvokable public final void writeBeginChunked(QHttpHeaders headers, Collection<? extends QHttpHeaders.WellKnownHeader> trailerNames) Overloaded function for
writeBeginChunked(io.qt.network.QHttpHeaders, java.util.Collection, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
writeChunk
Overloaded function for
writeChunk(io.qt.core.QByteArray)
. -
writeEndChunked
Overloaded function for
writeEndChunked(io.qt.core.QByteArray)
. -
writeEndChunked
Overloaded function for
writeEndChunked(io.qt.core.QByteArray, io.qt.network.QHttpHeaders)
.
-