Package com.networknt.codegen.handler
Class CodegenSingleHandler
- java.lang.Object
-
- com.networknt.codegen.handler.CodegenSingleHandler
-
- All Implemented Interfaces:
com.networknt.rpc.Handler
public class CodegenSingleHandler extends Object implements com.networknt.rpc.Handler
This is the handler that does the code generation for consumer request from the single page application in the view folder. There handler is only responsible for single project generation. It can accept text or url for the model and config from the UI.- Author:
- Steve Hu
-
-
Constructor Summary
Constructors Constructor Description CodegenSingleHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferhandle(io.undertow.server.HttpServerExchange exchange, Object input)ByteBuffervalidate(String serviceId, Object object)
-
-
-
Method Detail
-
handle
public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object input)
- Specified by:
handlein interfacecom.networknt.rpc.Handler
-
validate
public ByteBuffer validate(String serviceId, Object object)
- Specified by:
validatein interfacecom.networknt.rpc.Handler
-
-