java.lang.Object
io.qt.QtObject
io.qt.httpserver.QHttpServerRouterRule
- All Implemented Interfaces:
QtObjectInterface
The base class for QHttpServerRouter rules
Java wrapper for Qt class QHttpServerRouterRule
- Since:
- This class was introduced in Qt 6.4.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQHttpServerRouterRule
(String pathPattern, QObject context, QHttpServerRouterRule.RouterHandler func) SeeQHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QObject*, Handler&&) QHttpServerRouterRule
(String pathPattern, QHttpServerRequest.Methods methods, QObject context, QHttpServerRouterRule.RouterHandler func) SeeQHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QHttpServerRequest::Methods, const QObject*, Handler&&) QHttpServerRouterRule
(String pathPattern, QHttpServerRequest.Methods methods, QHttpServerRouterRule.RouterHandler func) SeeQHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QHttpServerRequest::Methods, const QObject*, Handler&&) QHttpServerRouterRule
(String pathPattern, QHttpServerRouterRule.RouterHandler func) SeeQHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString,, Handler&&) -
Method Summary
Modifier and TypeMethodDescriptionfinal QObject
protected final boolean
createPathRegexp
(QMetaType [] metaTypes, Map<? extends QMetaType, String> converters) SeeQHttpServerRouterRule::
createPathRegexp(std::initializer_list<QMetaType>, QHash<QMetaType, QString>) protected final boolean
exec
(QHttpServerRequest request, QHttpServerResponder responder) protected final boolean
protected boolean
matches
(QHttpServerRequest request, QRegularExpressionMatch match) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QHttpServerRouterRule
See
QHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString,, Handler&&) - Parameters:
pathPattern
-func
-context
-
-
QHttpServerRouterRule
public QHttpServerRouterRule(String pathPattern, QObject context, QHttpServerRouterRule.RouterHandler func) See
QHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QObject*, Handler&&) - Parameters:
pathPattern
-context
-func
-
-
QHttpServerRouterRule
public QHttpServerRouterRule(String pathPattern, QHttpServerRequest.Methods methods, QHttpServerRouterRule.RouterHandler func) See
QHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QHttpServerRequest::Methods, const QObject*, Handler&&) - Parameters:
pathPattern
-methods
-func
-
-
QHttpServerRouterRule
public QHttpServerRouterRule(String pathPattern, QHttpServerRequest.Methods methods, QObject context, QHttpServerRouterRule.RouterHandler func) See
QHttpServerRouterRule::
QHttpServerRouterRule<Handler>(QString, const QHttpServerRequest::Methods, const QObject*, Handler&&) - Parameters:
pathPattern
-methods
-context
-func
-
-
-
Method Details
-
contextObject
- Returns:
-
createPathRegexp
@QtUninvokable protected final boolean createPathRegexp(QMetaType [] metaTypes, Map<? extends QMetaType, String> converters) See
QHttpServerRouterRule::
createPathRegexp(std::initializer_list<QMetaType>, QHash<QMetaType, QString>) - Parameters:
metaTypes
-converters
-- Returns:
-
exec
@QtUninvokable protected final boolean exec(QHttpServerRequest request, QHttpServerResponder responder) - Parameters:
request
-responder
-- Returns:
-
hasValidMethods
- Returns:
-
matches
- Parameters:
request
-match
-- Returns:
-