Class MultipartFormTransformer
- java.lang.Object
-
- io.vertx.openapi.validation.transformer.MultipartFormTransformer
-
- All Implemented Interfaces:
BodyTransformer
public class MultipartFormTransformer extends Object implements BodyTransformer
-
-
Constructor Summary
Constructors Constructor Description MultipartFormTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
extractBoundary(String contentType)
static Object
transform(MediaType type, Buffer body, String contentType, String responseOrRequest)
Object
transformRequest(MediaType type, ValidatableRequest request)
Transforms the body of a request into a format that can be validated by theRequestValidator
.Object
transformResponse(MediaType type, ValidatableResponse response)
Transforms the body of a response into a format that can be validated by theResponseValidator
.
-
-
-
Method Detail
-
transform
public static Object transform(MediaType type, Buffer body, String contentType, String responseOrRequest)
-
transformRequest
public Object transformRequest(MediaType type, ValidatableRequest request)
Description copied from interface:BodyTransformer
Transforms the body of a request into a format that can be validated by theRequestValidator
.- Specified by:
transformRequest
in interfaceBodyTransformer
- Parameters:
type
- the media type of the body.request
- the request with the body to transform.- Returns:
- the transformed body.
-
transformResponse
public Object transformResponse(MediaType type, ValidatableResponse response)
Description copied from interface:BodyTransformer
Transforms the body of a response into a format that can be validated by theResponseValidator
.- Specified by:
transformResponse
in interfaceBodyTransformer
- Parameters:
type
- the media type of the body.response
- the response with the body to transform.- Returns:
- the transformed body.
-
-