Package com.networknt.codegen.handler
Class ValidateUploadFileHandler
- java.lang.Object
-
- com.networknt.codegen.handler.ValidateUploadFileHandler
-
- All Implemented Interfaces:
com.networknt.rpc.Handler
@Deprecated public class ValidateUploadFileHandler extends Object implements com.networknt.rpc.Handler
Deprecated.- Author:
- Nicholas Azar Created on July 8, 2017.
-
-
Constructor Summary
Constructors Constructor Description ValidateUploadFileHandler()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ByteBufferhandle(io.undertow.server.HttpServerExchange exchange, Object o)Deprecated.Retrieve the file from the request and validate the json contents against a schema.
-
-
-
Method Detail
-
handle
public ByteBuffer handle(io.undertow.server.HttpServerExchange exchange, Object o)
Deprecated.Retrieve the file from the request and validate the json contents against a schema. Will return the contents of the file as well.- Specified by:
handlein interfacecom.networknt.rpc.Handler- Parameters:
o- The multipart as parsed from com.networknt.rpc.router.MultipartHandler- Returns:
- The contents of the file if valid, null otherwise. TODO to provide error messages.
-
-