Class Controller

java.lang.Object
io.quarkiverse.renarde.Controller
Direct Known Subclasses:
HxController

public class Controller extends Object
  • Field Details

    • i18n

      @Inject protected I18N i18n
    • identity

      @Inject protected io.quarkus.security.identity.SecurityIdentity identity
    • renderArgs

      @Inject protected RenderArgs renderArgs
    • validation

      @Inject protected Validation validation
    • flash

      @Inject protected Flash flash
    • uriInfo

      @Inject protected jakarta.ws.rs.core.UriInfo uriInfo
  • Constructor Details

    • Controller

      public Controller()
  • Method Details

    • validationFailed

      protected boolean validationFailed()
    • prepareForErrorRedirect

      protected void prepareForErrorRedirect()
    • flash

      protected void flash(String key, Object value)
    • emptyAsNull

      protected static String emptyAsNull(String val)
    • forbidden

      protected jakarta.ws.rs.core.Response forbidden()
    • forbidden

      protected jakarta.ws.rs.core.Response forbidden(String message)
    • badRequest

      protected jakarta.ws.rs.core.Response badRequest()
    • notFoundIfNull

      protected void notFoundIfNull(Object obj)
    • notFound

      protected jakarta.ws.rs.core.Response notFound(String message)
    • notFound

      protected jakarta.ws.rs.core.Response notFound()
    • beforeRedirect

      protected void beforeRedirect()
      This hook is called before any redirects caused by calls to controller public methods, including redirect(FooController.class).method().
    • seeOther

      protected jakarta.ws.rs.core.Response seeOther(String uri)
    • seeOther

      protected static jakarta.ws.rs.core.Response seeOther(URI uri)
    • temporaryRedirect

      protected jakarta.ws.rs.core.Response temporaryRedirect(URI uri)
    • redirect

      protected <T extends Controller> T redirect(Class<T> target)