private void attachFormDataBody ( final HttpServerExchange exchange ) throws IOException { Object data ; FormParserFactory formParserFactory = FormParserFactory . builder ( ) . build ( ) ; FormDataParser parser = formParserFactory . createParser ( exchange ) ; if ( parser != null ) { FormData formData = parser . parseBlocking ( ) ; data = BodyConverter . convert ( formData ) ; exchange . putAttachment ( REQUEST_BODY , data ) ; } }
Method used to parse the body into FormData and attach it into exchange