Package com.networknt.codegen.handler
Class FrameworkListHandler
- java.lang.Object
-
- com.networknt.codegen.handler.FrameworkListHandler
-
- All Implemented Interfaces:
com.networknt.rpc.Handler
public class FrameworkListHandler extends Object implements com.networknt.rpc.Handler
Created by steve on 26/04/17.
-
-
Constructor Summary
Constructors Constructor Description FrameworkListHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferhandle(io.undertow.server.HttpServerExchange exchange, Object input)Returns a JSON list of all available frameworks defined in the service.yml of codegen-cli.
-
-
-
Method Detail
-
handle
public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
Returns a JSON list of all available frameworks defined in the service.yml of codegen-cli. If any issues occur with converting the result to JSON, an empty string is returned (not an empty json list).- Specified by:
handlein interfacecom.networknt.rpc.Handler
-
-