Package io.vertx.mutiny.httpproxy
Class BodyTransformer
java.lang.Object
io.vertx.mutiny.httpproxy.BodyTransformer
- All Implemented Interfaces:
MutinyDelegate
A synchronous function that transforms an HTTP body entity.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
BodyTransformer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBodyTransformer(io.vertx.httpproxy.BodyTransformer delegate) Create a new instance ofBodyTransformerdelegating to the given (non-null) instance ofBodyTransformer.BodyTransformer(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanconsumes(io.vertx.httpproxy.MediaType mediaType) booleanio.vertx.httpproxy.BodyTransformerGet the delegate instance.inthashCode()static BodyTransformernewInstance(io.vertx.httpproxy.BodyTransformer delegate) Creates a new instance of theBodyTransformer.io.vertx.httpproxy.MediaTypeproduces(io.vertx.httpproxy.MediaType mediaType) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
BodyTransformer
public BodyTransformer(io.vertx.httpproxy.BodyTransformer delegate) Create a new instance ofBodyTransformerdelegating to the given (non-null) instance ofBodyTransformer. -
BodyTransformer
-
-
Method Details
-
getDelegate
public io.vertx.httpproxy.BodyTransformer getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
consumes
public boolean consumes(io.vertx.httpproxy.MediaType mediaType) - Returns:
- whether this transformer consumes the
mediaType,mediaTypecan benullwhen the HTTP head does not present a body, the default implementation returnstrue
-
produces
public io.vertx.httpproxy.MediaType produces(io.vertx.httpproxy.MediaType mediaType) - Returns:
- the media type produced by this transformer, the default implementation returns the same media type
-
newInstance
Creates a new instance of theBodyTransformer. -
hashCode
public int hashCode() -
equals
-
toString
-