Class SetResponseContentTypeHandler

java.lang.Object
org.keycloak.quarkus.runtime.integration.resteasy.SetResponseContentTypeHandler
All Implemented Interfaces:
org.jboss.resteasy.reactive.server.spi.ServerRestHandler, org.jboss.resteasy.reactive.spi.RestHandler<org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext>

public class SetResponseContentTypeHandler extends Object implements org.jboss.resteasy.reactive.server.spi.ServerRestHandler

A ServerRestHandler that set the media type produced by a JAX-RS resource method.

The main reason behind this handler is to make the response media type available to DefaultSecurityHeadersProvider.

  • Constructor Details

    • SetResponseContentTypeHandler

      public SetResponseContentTypeHandler(String[] producesMediaTypes)
  • Method Details

    • handle

      public void handle(org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext requestContext)
      Specified by:
      handle in interface org.jboss.resteasy.reactive.spi.RestHandler<org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext>
      Specified by:
      handle in interface org.jboss.resteasy.reactive.server.spi.ServerRestHandler