Class 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 Detail

      • ValidateUploadFileHandler

        public ValidateUploadFileHandler()
        Deprecated.
    • 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:
        handle in interface com.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.