- All Implemented Interfaces:
QtObjectInterface
Encapsulates an HTTP response
Java wrapper for Qt class QHttpServerResponse
-
Constructor Summary
ConstructorDescriptionQHttpServerResponse
(byte [] data) Overloaded constructor forQHttpServerResponse(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, byte [] data) Overloaded constructor forQHttpServerResponse(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, byte [] data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(byte [] mimeType, QByteArray data) Overloaded constructor forQHttpServerResponse(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(byte [] mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(byte [] data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
.Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, byte [] data) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, byte [] data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray mimeType, QByteArray data) Overloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QByteArray mimeType, String data) QHttpServerResponse
(QByteArray mimeType, String data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QJsonArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QJsonArray data, QHttpServerResponder.StatusCode status) Overloaded constructor forQHttpServerResponse(io.qt.core.QJsonObject, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(QJsonObject data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(QHttpServerResponder.StatusCode statusCode) QHttpServerResponse
(String data) Overloaded constructor forQHttpServerResponse(java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.QHttpServerResponse
(String mimeType, QByteArray data) QHttpServerResponse
(String mimeType, QByteArray data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(String data, QHttpServerResponder.StatusCode status) QHttpServerResponse
(String mimeType, String data) QHttpServerResponse
(String mimeType, String data, QHttpServerResponder.StatusCode status) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addHeader
(byte [] name, byte [] value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(byte [] name, QByteArray value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(QByteArray name, byte [] value) Overloaded function foraddHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
addHeader
(QByteArray name, QByteArray value) final void
addHeader
(QByteArray key, String value) final void
addHeader
(String key, QByteArray value) final void
addHeaders
(QPair<QByteArray, QByteArray> ... headers) final void
clearHeader
(byte [] name) Overloaded function forclearHeader(io.qt.core.QByteArray)
.final void
clearHeader
(QByteArray name) final void
clearHeader
(String key) final void
final QByteArray
data()
static QHttpServerResponse
final boolean
hasHeader
(byte [] name) Overloaded function forhasHeader(io.qt.core.QByteArray)
.final boolean
hasHeader
(byte [] name, byte [] value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(byte [] name, QByteArray value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(QByteArray name) final boolean
hasHeader
(QByteArray name, byte [] value) Overloaded function forhasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final boolean
hasHeader
(QByteArray name, QByteArray value) final boolean
final boolean
hasHeader
(String name, QByteArray value) final boolean
final QList
<QByteArray> headers
(byte [] name) Overloaded function forheaders(io.qt.core.QByteArray)
.final QList
<QByteArray> headers
(QByteArray name) final QList
<QByteArray> final QByteArray
mimeType()
final void
setHeader
(byte [] name, byte [] value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(byte [] name, QByteArray value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(QByteArray name, byte [] value) Overloaded function forsetHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.final void
setHeader
(QByteArray name, QByteArray value) final void
setHeader
(QByteArray key, String value) final void
setHeader
(String key, QByteArray value) final void
setHeaders
(QPair<QByteArray, QByteArray> ... headers) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
public QHttpServerResponse(String mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
-
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, String data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(byte[], io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(byte [] mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, byte [] data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
public QHttpServerResponse(byte [] mimeType, byte [] data) Overloaded constructor for
QHttpServerResponse(byte[], byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
public QHttpServerResponse(byte [] data) Overloaded constructor for
QHttpServerResponse(byte[], io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonObject, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.
-
-
Method Details
-
addHeader
-
addHeaders
-
clearHeader
-
clearHeaders
-
data
-
hasHeader
-
hasHeader
-
headers
-
mimeType
-
setHeader
-
setHeaders
-
statusCode
-
fromFile
-
addHeader
-
addHeader
-
setHeader
-
setHeader
-
clearHeader
-
hasHeader
-
hasHeader
-
hasHeader
-
headers
-
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
addHeader
Overloaded function for
addHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
clearHeader
Overloaded function for
clearHeader(io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
hasHeader
Overloaded function for
hasHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
headers
Overloaded function for
headers(io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
. -
setHeader
Overloaded function for
setHeader(io.qt.core.QByteArray, io.qt.core.QByteArray)
.
-