Class MultipartFormAnalyser
- java.lang.Object
-
- io.vertx.openapi.validation.analyser.ContentAnalyser
-
- io.vertx.openapi.validation.analyser.MultipartFormAnalyser
-
public class MultipartFormAnalyser extends ContentAnalyser
-
-
Field Summary
-
Fields inherited from class io.vertx.openapi.validation.analyser.ContentAnalyser
content, contentType, requestOrResponse
-
-
Constructor Summary
Constructors Constructor Description MultipartFormAnalyser(String contentType, Buffer content, ValidationContext context)Creates a new content analyser.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSyntacticalCorrectness()Checks if the content is syntactically correct.static StringextractBoundary(String contentType)Objecttransform()Transforms the content into a format that can be validated by theRequestValidator, orResponseValidator.-
Methods inherited from class io.vertx.openapi.validation.analyser.ContentAnalyser
buildSyntaxException, decodeJsonContent, getContentAnalyser
-
-
-
-
Constructor Detail
-
MultipartFormAnalyser
public MultipartFormAnalyser(String contentType, Buffer content, ValidationContext context)
Creates a new content analyser.- Parameters:
contentType- the content type.content- the content to be analysed.context- the context in which the content is used.
-
-
Method Detail
-
checkSyntacticalCorrectness
public void checkSyntacticalCorrectness()
Description copied from class:ContentAnalyserChecks if the content is syntactically correct.Throws a
ValidatorExceptionif the content is syntactically incorrect.- Specified by:
checkSyntacticalCorrectnessin classContentAnalyser
-
transform
public Object transform()
Description copied from class:ContentAnalyserTransforms the content into a format that can be validated by theRequestValidator, orResponseValidator.Throws a
ValidatorExceptionif the content can't be transformed.- Specified by:
transformin classContentAnalyser- Returns:
- the transformed content.
-
-