Class SupportJson
- java.lang.Object
-
- com.github.fmjsjx.libnetty.http.server.middleware.SupportJson
-
- All Implemented Interfaces:
Middleware,java.util.function.BiFunction<HttpRequestContext,MiddlewareChain,java.util.concurrent.CompletionStage<HttpResult>>
@Deprecated public class SupportJson extends java.lang.Object implements Middleware
Deprecated.AMiddlewareprovides aSupportJson.JsonLibraryto support JSON features.- Since:
- 1.1
- See Also:
Middleware,MiddlewareChain,SupportJson.JsonLibrary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSupportJson.Jackson2JsonLibraryDeprecated.please useJackson2JsonLibraryinsteadstatic classSupportJson.JsonExceptionDeprecated.please useJsonLibrary.JsonExceptioninsteadstatic interfaceSupportJson.JsonLibraryDeprecated.please useJsonLibraryinstead
-
Constructor Summary
Constructors Constructor Description SupportJson()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<HttpResult>apply(HttpRequestContext ctx, MiddlewareChain next)Deprecated.Apply thisMiddlewareto the givenHttpRequestContext.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.fmjsjx.libnetty.http.server.middleware.Middleware
close, onServerClosed
-
-
-
-
Method Detail
-
apply
public java.util.concurrent.CompletionStage<HttpResult> apply(HttpRequestContext ctx, MiddlewareChain next)
Deprecated.Description copied from interface:MiddlewareApply thisMiddlewareto the givenHttpRequestContext.- Specified by:
applyin interfacejava.util.function.BiFunction<HttpRequestContext,MiddlewareChain,java.util.concurrent.CompletionStage<HttpResult>>- Specified by:
applyin interfaceMiddleware- Parameters:
ctx- theHttpRequestContextobject of the current HTTP requestnext- theMiddlewareChainfor invoking the nextMiddleware- Returns:
- a
CompletionStage<HttpResult>
-
-