Class ContextFeature
java.lang.Object
io.helidon.nima.webserver.context.ContextFeature
- All Implemented Interfaces:
Weighted,HttpFeature,ServerLifecycle,Comparable<Weighted>,Supplier<HttpFeature>
Adds
Context support to NĂma WebServer.
When added to the processing, further processing will be executed in a request specific context.-
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextFeaturecreate()Create a new context feature with default setup.static ContextFeatureCreate a new context feature with custom setup.voidsetup(HttpRouting.Builder routing) Method to set up a feature.doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.nima.webserver.http.HttpFeature
getMethods inherited from interface io.helidon.nima.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
create
Create a new context feature with default setup.- Returns:
- a new feature
-
create
Create a new context feature with custom setup.- Parameters:
config- configuration- Returns:
- a new configured feature
-
setup
Description copied from interface:HttpFeatureMethod to set up a feature.- Specified by:
setupin interfaceHttpFeature- Parameters:
routing- routing builder
-
weight
public double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted.
-