java.lang.Object
io.helidon.webserver.context.ContextFeature
- All Implemented Interfaces:
io.helidon.common.Weighted,HttpFeature,ServerLifecycle,Comparable<io.helidon.common.Weighted>,Supplier<HttpFeature>
Adds
Context support to Helidon 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(io.helidon.config.Config config) Create a new context feature with custom setup.voidsetup(HttpRouting.Builder routing) doubleweight()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.http.HttpFeature
get, socket, socketRequiredMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStartMethods inherited from interface io.helidon.common.Weighted
compareTo
-
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
- Specified by:
setupin interfaceHttpFeature
-
weight
public double weight()- Specified by:
weightin interfaceio.helidon.common.Weighted
-