public boolean ready ( ) { for ( VertxFileUpload file : files ) { if ( file . getErrorIfAny ( ) != null ) { return false ; } } String contentType = request . headers ( ) . get ( HeaderNames . CONTENT_TYPE ) ; if ( contentType != null ) { contentType = HttpUtils . getContentTypeFromContentTypeAndCharacterSetting ( contentType ) ; if ( ( HttpUtils . isPostOrPut ( request ) ) && ( contentType . equalsIgnoreCase ( MimeTypes . FORM ) || contentType . equalsIgnoreCase ( MimeTypes . MULTIPART ) ) ) { formData = new HashMap <> ( ) ; for ( String key : request . formAttributes ( ) . names ( ) ) { formData . put ( key , request . formAttributes ( ) . getAll ( key ) ) ; } return true ; } } formData = new HashMap <> ( ) ; return true ; }
Callbacks invokes when the request has been read completely .