- All Implemented Interfaces:
QtObjectInterface
Encapsulates an HTTP response
Java wrapper for Qt's class QHttpServerResponse
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionOverloaded constructor forQHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
.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) protected
Constructor for internal use only.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
(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
(QByteArray name) final void
clearHeader
(String key) final void
final QByteArray
data()
static QHttpServerResponse
final boolean
hasHeader
(QByteArray name) final boolean
hasHeader
(QByteArray name, QByteArray value) final boolean
final boolean
hasHeader
(String name, QByteArray value) final boolean
final QList<QByteArray>
headers
(QByteArray name) final QList<QByteArray>
final QByteArray
mimeType()
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) final void
write
(QHttpServerResponder responder) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QByteArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
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
public QHttpServerResponse(QByteArray mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonArray, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(io.qt.core.QJsonObject, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Overloaded constructor for
QHttpServerResponse(java.lang.String, io.qt.httpserver.QHttpServerResponder.StatusCode)
withstatus = io.qt.httpserver.QHttpServerResponder.StatusCode.Ok
. -
QHttpServerResponse
-
QHttpServerResponse
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
-
QHttpServerResponse
public QHttpServerResponse(String mimeType, QByteArray data, QHttpServerResponder.StatusCode status) -
QHttpServerResponse
-
QHttpServerResponse
public QHttpServerResponse(QByteArray mimeType, String data, QHttpServerResponder.StatusCode status)
-
-
Method Details
-
addHeader
-
addHeaders
-
clearHeader
-
clearHeaders
-
data
-
hasHeader
-
hasHeader
-
headers
-
mimeType
-
setHeader
-
setHeaders
-
statusCode
-
write
-
fromFile
-
addHeader
-
addHeader
-
setHeader
-
setHeader
-
clearHeader
-
hasHeader
-
hasHeader
-
hasHeader
-
headers
-