java.lang.Object
io.qt.QtObject
io.qt.network.QNetworkRequestFactory
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Convenience class for grouping remote server endpoints that share common network request properties
Java wrapper for Qt class QNetworkRequestFactory
- Since:
- This class was introduced in Qt 6.7.
-
Constructor Summary
ConstructorDescriptionQNetworkRequestFactory
(QUrl baseUrl) QNetworkRequestFactory
(String baseUrl) Overloaded constructor forQNetworkRequestFactory(io.qt.core.QUrl)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QNetworkRequestFactory other) final Object
attribute
(QNetworkRequest.Attribute attribute) final Object
attribute
(QNetworkRequest.Attribute attribute, Object defaultValue) final QUrl
baseUrl()
final QByteArray
final void
clearAttribute
(QNetworkRequest.Attribute attribute) final void
final void
final void
final void
final void
final void
clone()
Creates and returns a copy of this object.final QHttpHeaders
final QNetworkRequest
final QNetworkRequest
createRequest
(QUrlQuery query) final QNetworkRequest
createRequest
(String path) final QNetworkRequest
createRequest
(String path, QUrlQuery query) final String
password()
final QNetworkRequest.Priority
priority()
final QUrlQuery
final void
setAttribute
(QNetworkRequest.Attribute attribute, Object value) final void
setBaseUrl
(QUrl url) final void
setBaseUrl
(String url) Overloaded function forsetBaseUrl(io.qt.core.QUrl)
.final void
setBearerToken
(byte [] token) Overloaded function forsetBearerToken(io.qt.core.QByteArray)
.final void
setBearerToken
(QByteArray token) final void
setCommonHeaders
(QHttpHeaders headers) final void
setPassword
(String password) final void
setPriority
(QNetworkRequest.Priority priority) final void
setQueryParameters
(QUrlQuery query) final void
setSslConfiguration
(QSslConfiguration configuration) final void
setTransferTimeout
(TemporalAmount timeout) final void
setUserName
(String userName) final QSslConfiguration
final void
swap
(QNetworkRequestFactory other) toString()
Seeoperator<<(QDebug,
QNetworkRequestFactory) final Duration
final String
userName()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QNetworkRequestFactory
public QNetworkRequestFactory() -
QNetworkRequestFactory
- Parameters:
other
-
-
QNetworkRequestFactory
- Parameters:
baseUrl
-
-
QNetworkRequestFactory
Overloaded constructor for
QNetworkRequestFactory(io.qt.core.QUrl)
.
-
-
Method Details
-
attribute
- Parameters:
attribute
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
attribute
@QtUninvokable public final Object attribute(QNetworkRequest.Attribute attribute, Object defaultValue) - Parameters:
attribute
-defaultValue
-- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
baseUrl
- Returns:
-
bearerToken
- Returns:
-
clearAttribute
- Parameters:
attribute
-- Since:
- This function was introduced in Qt 6.8.
-
clearAttributes
- Since:
- This function was introduced in Qt 6.8.
-
clearBearerToken
-
clearCommonHeaders
-
clearPassword
-
clearQueryParameters
-
clearUserName
-
commonHeaders
- Returns:
-
createRequest
- Returns:
-
createRequest
- Parameters:
path
-- Returns:
-
createRequest
- Parameters:
path
-query
-- Returns:
-
createRequest
- Parameters:
query
-- Returns:
-
assign
- Parameters:
other
-
-
password
- Returns:
-
priority
- Returns:
- Since:
- This function was introduced in Qt 6.8.
-
queryParameters
- Returns:
-
setAttribute
- Parameters:
attribute
-value
-- Since:
- This function was introduced in Qt 6.8.
-
setBaseUrl
- Parameters:
url
-
-
setBearerToken
- Parameters:
token
-
-
setCommonHeaders
- Parameters:
headers
-
-
setPassword
- Parameters:
password
-
-
setPriority
- Parameters:
priority
-- Since:
- This function was introduced in Qt 6.8.
-
setQueryParameters
- Parameters:
query
-
-
setSslConfiguration
- Parameters:
configuration
-
-
setTransferTimeout
- Parameters:
timeout
-
-
setUserName
- Parameters:
userName
-
-
sslConfiguration
- Returns:
-
swap
- Parameters:
other
-
-
transferTimeout
- Returns:
-
userName
- Returns:
-
toString
See
operator<<(QDebug,
QNetworkRequestFactory) -
clone
Creates and returns a copy of this object.
See
QNetworkRequestFactory::
QNetworkRequestFactory(QNetworkRequestFactory) -
setBaseUrl
Overloaded function for
setBaseUrl(io.qt.core.QUrl)
. -
setBearerToken
Overloaded function for
setBearerToken(io.qt.core.QByteArray)
.
-