Module io.smallrye.mutiny.vertx.web
Package io.vertx.mutiny.ext.web.handler
Class ResponseContentTypeHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.ResponseContentTypeHandler
- All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate,io.vertx.core.Handler<RoutingContext>,PlatformHandler,Consumer<RoutingContext>
public class ResponseContentTypeHandler
extends Object
implements io.smallrye.mutiny.vertx.MutinyDelegate, PlatformHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A handler which sets the response content type automatically according to the best
Accept header match.
The header is set only if:
- no object is stored in the routing context under the name
ResponseContentTypeHandler - a match is found
- the header is not present already
- content length header is absent or set to something different than zero
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.smallrye.mutiny.vertx.TypeArg<ResponseContentTypeHandler> static final String -
Constructor Summary
ConstructorsConstructorDescriptionResponseContentTypeHandler(io.vertx.ext.web.handler.ResponseContentTypeHandler delegate) ResponseContentTypeHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) static ResponseContentTypeHandlercreate()static ResponseContentTypeHandlerbooleanio.vertx.ext.web.handler.ResponseContentTypeHandlervoidhandle(RoutingContext arg0) inthashCode()static ResponseContentTypeHandlernewInstance(io.vertx.ext.web.handler.ResponseContentTypeHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_DISABLE_FLAG
- See Also:
-
-
Constructor Details
-
ResponseContentTypeHandler
public ResponseContentTypeHandler(io.vertx.ext.web.handler.ResponseContentTypeHandler delegate) -
ResponseContentTypeHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.ResponseContentTypeHandler getDelegate()- Specified by:
getDelegatein interfaceio.smallrye.mutiny.vertx.MutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfacePlatformHandler
-
create
- Returns:
- the response content type handler
-
create
- Parameters:
disableFlag-- Returns:
- the response content type handler
-
accept
- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
newInstance
public static ResponseContentTypeHandler newInstance(io.vertx.ext.web.handler.ResponseContentTypeHandler arg)
-