Class ResponseContentTypeHandler
java.lang.Object
io.vertx.reactivex.ext.web.handler.ResponseContentTypeHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, PlatformHandler
public class ResponseContentTypeHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<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
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<ResponseContentTypeHandler> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseContentTypeHandlercreate()Create a response content type handler.static ResponseContentTypeHandlerCreate a response content type handler with a custom disable flag.booleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static ResponseContentTypeHandlertoString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_DISABLE_FLAG
- See Also:
-
-
Constructor Details
-
ResponseContentTypeHandler
-
ResponseContentTypeHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfacePlatformHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfacePlatformHandler- Parameters:
event- the event to handle
-
create
Create a response content type handler.- Returns:
- the response content type handler
-
create
Create a response content type handler with a custom disable flag.- Parameters:
disableFlag-- Returns:
- the response content type handler
-
newInstance
-