java.lang.Object
io.helidon.webserver.FormParamsSupport
- All Implemented Interfaces:
Handler,Service,BiConsumer<ServerRequest,ServerResponse>
@Deprecated(since="2.0.2")
public class FormParamsSupport
extends Object
implements Service, Handler
Deprecated.
Provides support for form parameters in requests, adding a reader for URL-encoded text
(if the request's media type so indicates) and also adding a reader for
FormParams.
Developers will typically add this support to routing:
Routing.builder()
.register(FormParamSupport.create())
. ... // any other handlers
When responding to a request, the developer can use
request.content().as(FormParams.class).thenApply(fp -> ...)
and use all the methods defined on FormParams (which extends
Parameters).-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.Handler
Handler.EntityHandler<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerRequest req, ServerResponse res) static FormParamsSupportcreate()Deprecated.voidupdate(Routing.Rules rules) Deprecated.UpdatesRouting.Ruleswithhandlersrepresenting this service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
FormParamsSupport
public FormParamsSupport()Deprecated.
-
-
Method Details
-
update
Deprecated.Description copied from interface:ServiceUpdatesRouting.Ruleswithhandlersrepresenting this service. -
accept
Deprecated.Description copied from interface:Handler- Specified by:
acceptin interfaceBiConsumer<ServerRequest,ServerResponse> - Specified by:
acceptin interfaceHandler- Parameters:
req- an HTTP server request.res- an HTTP server response.
-
create
Deprecated.- Returns:
- the singleton instance of
FormParamSupport
-
DefaultMediaSupport.formParamReader()instead