Package 

Class JavalinDefaultRouting

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <E extends Exception> <Error class: unknown class> exception(Class<E> exceptionClass, ExceptionHandler<in E> exceptionHandler) Adds an exception mapper to the instance.
      <Error class: unknown class> error(Integer status, String contentType, Handler handler) Adds an error mapper for the specified content-type to the instance.
      JavalinDefaultRouting addEndpoint(Endpoint endpoint) Adds a request handler for the specified handlerType and path to the instance.
      <E extends Exception> <Error class: unknown class> wsException(Class<E> exceptionClass, WsExceptionHandler<in E> exceptionHandler) Adds a WebSocket exception mapper to the instance.
      <Error class: unknown class> addWsHandler(WsHandlerType handlerType, String path, Consumer<WsConfig> wsConfig, RouteRole roles) Adds a WebSocket handler of the specified type on the specified path.
      • Methods inherited from class io.javalin.router.JavalinDefaultRoutingApi

        addHttpHandler, addHttpHandler, after, after, afterMatched, afterMatched, before, before, beforeMatched, beforeMatched, delete, delete, error, error, error, get, get, head, head, options, options, patch, patch, post, post, put, put, sse, sse, sse, ws, ws, wsAfter, wsAfter, wsAfterUpgrade, wsAfterUpgrade, wsBefore, wsBefore, wsBeforeUpgrade, wsBeforeUpgrade
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait