Package io.github.jirkasa.servletrouter
package io.github.jirkasa.servletrouter
Simple lightweight library for servlet routing.
-
ClassDescriptionMiddleware that sets base URL attribute to request.Controller<Request extends javax.servlet.ServletRequest,
Response extends javax.servlet.ServletResponse> Represents component that is used to handle incoming requests for specific path (usually) in application.ErrorController<Request extends javax.servlet.ServletRequest,Response extends javax.servlet.ServletResponse> Handler<Request extends javax.servlet.ServletRequest,Response extends javax.servlet.ServletResponse> Represents component that handles requests.Implementation ofController
that uses HTTP protocol (HttpServletRequest and HttpServletResponse).ErrorController
that uses HttpServletRequest and HttpServletResponse.Middleware
that uses HttpServletRequest and HttpServletResponse.Implementation ofRouter
that uses HttpServletRequest and HttpServletResponse.Middleware<Request extends javax.servlet.ServletRequest,Response extends javax.servlet.ServletResponse> Represents component that is used to handle requests.Router<Request extends javax.servlet.ServletRequest,Response extends javax.servlet.ServletResponse> Registers handlers and controllers to specific paths and performs routing for incoming requests.