Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACCEPT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- ACCEPT_ENCODING - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- ACCEPTED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
202 Accepted
. - ActuatorController - Class in com.bobocode.bring.web.actuator.controller
-
Controller responsible for managing actuator endpoints.
- ActuatorController() - Constructor for class com.bobocode.bring.web.actuator.controller.ActuatorController
- ActuatorService - Interface in com.bobocode.bring.web.actuator.service
-
Service interface for providing actuator information.
- addSorted(RestControllerParams, List<RestControllerParams>) - Method in interface com.bobocode.bring.web.servlet.mapping.request.RequestParamsResolver
-
Adds a RestControllerParams object to the list in a sorted manner based on the presence of PathVariable.
- ALREADY_REPORTED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
208 Already Reported
. - APPLICATION_JSON_VALUE - Static variable in class com.bobocode.bring.web.servlet.http.MediaType
-
Represents the "application/json" media type.
- AUTHORIZATION - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
B
- BAD_GATEWAY - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
502 Bad Gateway
. - BAD_REQUEST - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
400 Bad Request
. - BANDWIDTH_LIMIT_EXCEEDED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
509 Bandwidth Limit Exceeded
- baseDirectory - Variable in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- basePackages(String...) - Static method in class com.bobocode.bring.web.BringWebApplication
- BEFORE_DESTROY_EVENT - Static variable in class com.bobocode.bring.web.servlet.BringTomcatApplicationLifecycleListener
- body - Variable in class com.bobocode.bring.web.servlet.http.ResponseEntity
- branch - Variable in class com.bobocode.bring.web.actuator.dto.GitInfo
- BRING_CONTEXT - Static variable in class com.bobocode.bring.web.servlet.WebStarter
-
Attribute key for storing the BringApplicationContext in the servlet context.
- BRING_CORE_PACKAGE - Static variable in class com.bobocode.bring.web.BringWebApplication
- BRING_WEB_PACKAGE - Static variable in class com.bobocode.bring.web.BringWebApplication
- bringApplicationContext - Variable in class com.bobocode.bring.web.servlet.BringTomcatApplicationLifecycleListener
- BringServlet - Interface in com.bobocode.bring.web.servlet
-
Marker interface used to identify classes that need to be implemented to be used as REST controllers.
- bringServlets - Variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
List of registered BringServlet instances.
- BringTomcatApplicationLifecycleListener - Class in com.bobocode.bring.web.servlet
- BringTomcatApplicationLifecycleListener() - Constructor for class com.bobocode.bring.web.servlet.BringTomcatApplicationLifecycleListener
- BringWebApplication - Class in com.bobocode.bring.web
-
The
BringWebApplication
class provides static methods for running the Bring application context. - BringWebApplication() - Constructor for class com.bobocode.bring.web.BringWebApplication
C
- CACHE_CONTROL - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- changeLogLevel(String, String) - Static method in class com.bobocode.bring.web.actuator.utils.LogLevelChangerUtils
-
Changes the log level for the specified package.
- checkConnectorHasStarted(Connector) - Method in class com.bobocode.bring.web.server.TomcatWebServer
- checkIfBodyIsSimple(Object) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Checks if the given object represents a simple type for direct inclusion in the HTTP response body.
- checkIfPathVariableAnnotationIsPresent(Parameter[]) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Checks if any of the given parameters are annotated with
PathVariable
. - checkIfUrlIsStatic(String, String) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Checks if the provided request path and parameter path match a static URL pattern.
- checkOnDuplicatePath(Map<String, List<String>>) - Method in class com.bobocode.bring.web.servlet.RestControllerContext
-
Checks for duplicate paths and throws an exception if found.
- checkParameters(Map<String, List<RestControllerParams>>) - Method in class com.bobocode.bring.web.servlet.RestControllerContext
-
Checks parameters for @RequestBody and @RequestHeader annotations.
- checkParams(String, RestControllerParams) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Checks if the given
RestControllerParams
match the provided request path. - checkPathFile(Path, String) - Method in class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
-
Checks if the file exists, is not a directory, and is within the specified static folder.
- checkRequestBodyAnnotation(Method, Parameter[], List<String>, int) - Method in class com.bobocode.bring.web.servlet.RestControllerContext
-
Checks the type of parameter annotated with @RequestBody and throws an exception if unsupported.
- checkRequestHeaderAnnotation(Method, Parameter[], List<String>, int) - Method in class com.bobocode.bring.web.servlet.RestControllerContext
-
Checks the presence of a value in the @RequestHeader annotation for a method parameter.
- checkThatConnectorsHaveStarted() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- CLIENT_ERROR - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- code - Variable in class com.bobocode.bring.web.servlet.error.ErrorResponse
-
The error code associated with the error response.
- com.bobocode.bring.web - package com.bobocode.bring.web
- com.bobocode.bring.web.actuator.controller - package com.bobocode.bring.web.actuator.controller
- com.bobocode.bring.web.actuator.dto - package com.bobocode.bring.web.actuator.dto
- com.bobocode.bring.web.actuator.service - package com.bobocode.bring.web.actuator.service
- com.bobocode.bring.web.actuator.service.impl - package com.bobocode.bring.web.actuator.service.impl
- com.bobocode.bring.web.actuator.utils - package com.bobocode.bring.web.actuator.utils
- com.bobocode.bring.web.server - package com.bobocode.bring.web.server
- com.bobocode.bring.web.server.exception - package com.bobocode.bring.web.server.exception
- com.bobocode.bring.web.server.properties - package com.bobocode.bring.web.server.properties
- com.bobocode.bring.web.servlet - package com.bobocode.bring.web.servlet
- com.bobocode.bring.web.servlet.annotation - package com.bobocode.bring.web.servlet.annotation
- com.bobocode.bring.web.servlet.annotation.resolver - package com.bobocode.bring.web.servlet.annotation.resolver
- com.bobocode.bring.web.servlet.bbp - package com.bobocode.bring.web.servlet.bbp
- com.bobocode.bring.web.servlet.error - package com.bobocode.bring.web.servlet.error
- com.bobocode.bring.web.servlet.exception - package com.bobocode.bring.web.servlet.exception
- com.bobocode.bring.web.servlet.http - package com.bobocode.bring.web.servlet.http
- com.bobocode.bring.web.servlet.mapping - package com.bobocode.bring.web.servlet.mapping
- com.bobocode.bring.web.servlet.mapping.request - package com.bobocode.bring.web.servlet.mapping.request
- com.bobocode.bring.web.servlet.mapping.response - package com.bobocode.bring.web.servlet.mapping.response
- com.bobocode.bring.web.servlet.scaner - package com.bobocode.bring.web.servlet.scaner
- com.bobocode.bring.web.servlet.scaner.resolver - package com.bobocode.bring.web.servlet.scaner.resolver
- com.bobocode.bring.web.staticcontent.controller - package com.bobocode.bring.web.staticcontent.controller
- com.bobocode.bring.web.staticcontent.exception - package com.bobocode.bring.web.staticcontent.exception
- com.bobocode.bring.web.staticcontent.service - package com.bobocode.bring.web.staticcontent.service
- com.bobocode.bring.web.staticcontent.service.impl - package com.bobocode.bring.web.staticcontent.service.impl
- com.bobocode.bring.web.utils - package com.bobocode.bring.web.utils
- commit - Variable in class com.bobocode.bring.web.actuator.dto.GitInfo
- Commit - Class in com.bobocode.bring.web.actuator.dto
-
Represents information about a Git commit.
- Commit() - Constructor for class com.bobocode.bring.web.actuator.dto.Commit
- CONFLICT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
409 Conflict
. - CONNECTION - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- ConnectorStartFailedException - Exception Class in com.bobocode.bring.web.server.exception
-
Exception thrown when a connector configured to listen on a specific port fails to start.
- ConnectorStartFailedException(int) - Constructor for exception class com.bobocode.bring.web.server.exception.ConnectorStartFailedException
- CONTENT_ENCODING - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- CONTENT_LANGUAGE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- CONTENT_LENGTH - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- CONTENT_TYPE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- context - Variable in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- contextPath - Variable in class com.bobocode.bring.web.server.properties.ServerProperties
-
The context path for the web server.
- contextPath - Variable in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- CONTINUE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
100 Continue
. - Controller - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Indicates that the annotated class is a controller.
- ControllerBeanNameAnnotationResolver - Class in com.bobocode.bring.web.servlet.annotation.resolver
-
An implementation of AnnotationResolver used for resolving bean names associated with classes annotated with @Controller.
- ControllerBeanNameAnnotationResolver() - Constructor for class com.bobocode.bring.web.servlet.annotation.resolver.ControllerBeanNameAnnotationResolver
- ControllerClassPathScanner - Class in com.bobocode.bring.web.servlet.scaner
-
Implementation of ClassPathScanner that scans for classes annotated with @Controller using Reflections.
- ControllerClassPathScanner() - Constructor for class com.bobocode.bring.web.servlet.scaner.ControllerClassPathScanner
- COOKIE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- CREATED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
201 Created
. - createTempDir(String) - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Creates a temporary directory for Tomcat to use.
D
- defaultActuatorService - Variable in class com.bobocode.bring.web.actuator.controller.ActuatorController
- DefaultActuatorService - Class in com.bobocode.bring.web.actuator.service.impl
-
Default implementation of the
ActuatorService
interface. - DefaultActuatorService() - Constructor for class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- defaultErrorResponse(Throwable, Boolean) - Method in class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
-
Prepares a default error response for internal server errors.
- DefaultStaticResourceService - Class in com.bobocode.bring.web.staticcontent.service.impl
-
Implementation of the
StaticResourceService
interface for handling static resource requests. - DefaultStaticResourceService() - Constructor for class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
- DELETE - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- DeleteMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for mapping HTTP
DELETE
requests onto specific handler methods. - DeleteParamsResolver - Class in com.bobocode.bring.web.servlet.mapping.request
-
The DeleteParamsResolver class implements the RequestParamsResolver interface to handle the @DeleteMapping annotation.
- DeleteParamsResolver() - Constructor for class com.bobocode.bring.web.servlet.mapping.request.DeleteParamsResolver
- destroySilently() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- DISPATCHER_SERVLET_NAME - Static variable in class com.bobocode.bring.web.servlet.WebStarter
-
Default name for the dispatcher servlet.
- dispatcherServlet - Variable in class com.bobocode.bring.web.servlet.WebStarter
-
The DispatcherServlet responsible for handling HTTP requests.
- DispatcherServlet - Class in com.bobocode.bring.web.servlet
-
The
DispatcherServlet
class extendsFrameworkServlet
and serves as the central dispatcher for handling HTTP requests in a RESTful web application. - DispatcherServlet(ObjectMapper) - Constructor for class com.bobocode.bring.web.servlet.DispatcherServlet
- doDelete(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP DELETE requests by delegating to the common
processRequest
method. - doGet(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP GET requests by delegating to the common
processRequest
method. - doHead(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP HEAD requests by delegating to the common
processRequest
method. - doOptions(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP OPTIONS requests by delegating to the common
processRequest
method. - doPost(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP POST requests by delegating to the common
processRequest
method. - doPut(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP PUT requests by delegating to the common
processRequest
method. - doTrace(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Handles HTTP TRACE requests by delegating to the common
processRequest
method.
E
- EARLY_HINTS - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
103 Early Hints
. - EMPTY - Static variable in class com.bobocode.bring.web.utils.HttpServletRequestUtils
-
An empty string constant.
- env() - Method in class com.bobocode.bring.web.actuator.controller.ActuatorController
-
Endpoint for retrieving environment properties of the application.
- equals(Object) - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Indicates whether some other object is "equal to" this one.
- ERROR_ON_DUPLICATE_PATH - Static variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
Error message prefix for duplicate paths.
- ErrorResponse - Class in com.bobocode.bring.web.servlet.error
-
The ErrorResponse class represents an object containing details about an error response.
- ErrorResponse() - Constructor for class com.bobocode.bring.web.servlet.error.ErrorResponse
- errorResponseCreator - Variable in class com.bobocode.bring.web.servlet.JsonExceptionHandler
- ErrorResponseCreator - Class in com.bobocode.bring.web.servlet.error
-
The ErrorResponseCreator class is responsible for creating instances of ErrorResponse.
- ErrorResponseCreator() - Constructor for class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
- ETAG - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- EXPECTATION_FAILED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
417 Expectation Failed
. - extractPathVariable(String, Object[], Parameter[], int) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Extracts the value of a path variable based on the specified annotation and sets it in the corresponding position of the
args
array. - extractRequestBody(HttpServletRequest, Object[], Parameter[], int) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Extracts the value of a request body parameter based on the specified annotation and sets it in the corresponding position of the
args
array. - extractRequestHeaderParam(HttpServletRequest, Object[], Parameter[], int) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Extracts the value of a request header parameter based on the specified annotation and sets it in the corresponding position of the
args
array. - extractRequestParam(HttpServletRequest, Method, Object[], int, Parameter[]) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Extracts the value of a request parameter based on the specified annotation and sets it in the corresponding position of the
args
array.
F
- FAILED_DEPENDENCY - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
424 Failed Dependency
. - FALSE - Static variable in class com.bobocode.bring.web.utils.ParameterTypeUtils
-
A constant string representing the boolean value "false".
- FORBIDDEN - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
403 Forbidden
. - FOUND - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
302 Found
. - FrameworkServlet - Class in com.bobocode.bring.web.servlet
-
The
FrameworkServlet
is an abstract class that extendsHttpServlet
and provides a base implementation for handling HTTP requests in a framework. - FrameworkServlet() - Constructor for class com.bobocode.bring.web.servlet.FrameworkServlet
G
- GATEWAY_TIMEOUT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
504 Gateway Timeout
. - get(String) - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Retrieves the value of a specific header.
- GET - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- getAllHeadersNames() - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Retrieves a list of all available header names.
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.mapping.request.DeleteParamsResolver
-
Retrieves the @DeleteMapping annotation class.
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.mapping.request.GetParamsResolver
-
Retrieves the @GetMapping annotation class.
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.mapping.request.PostParamsResolver
-
Retrieves the @PostMapping annotation class.
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.mapping.request.PutParamsResolver
-
Retrieves the @PutMapping annotation class.
- getAnnotation() - Method in interface com.bobocode.bring.web.servlet.mapping.request.RequestParamsResolver
-
Retrieves the annotation class associated with the resolver.
- getAnnotation() - Method in interface com.bobocode.bring.web.servlet.mapping.response.ResponseAnnotationResolver
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.mapping.response.ResponseStatusAnnotationResolver
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.scaner.ControllerClassPathScanner
- getAnnotation() - Method in class com.bobocode.bring.web.servlet.scaner.RestControllerClassPathScanner
- getBody() - Method in class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Gets the body of the response.
- getCause(Throwable) - Method in class com.bobocode.bring.web.servlet.JsonExceptionHandler
-
Gets the root cause of the given throwable.
- getContext() - Method in interface com.bobocode.bring.web.server.ServletWebServerFactory
-
Returns the
Context
associated with the servlet-based web server. - getContext() - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Returns the
Context
object associated with the embedded Tomcat server. - getContextPath() - Method in interface com.bobocode.bring.web.server.ServletWebServerFactory
-
Returns the context path for the servlet-based web server.
- getContextPath() - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Returns the context path for the embedded Tomcat server.
- getContextPath() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- getGitInfo() - Method in interface com.bobocode.bring.web.actuator.service.ActuatorService
-
Prepares Git information including branch details and the latest commit information.
- getGitInfo() - Method in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
-
Returns the Git information for the Actuator endpoint.
- getHeaders() - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Retrieves the header name-value pairs.
- getHeaders() - Method in class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Gets the headers included in the response.
- getHeadersNameList() - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Retrieves a list of all header names.
- getHttpStatus() - Method in class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Gets the HTTP status of the response.
- GetMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for mapping HTTP
GET
requests onto specific handler methods. - getMessage(ResponseStatus, Throwable) - Method in class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
-
Retrieves the error message based on the provided ResponseStatus and Throwable.
- getMethodPath(String) - Method in interface com.bobocode.bring.web.servlet.mapping.request.RequestParamsResolver
-
Extracts the method path from the provided path by removing path variables.
- getName() - Method in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
-
Retrieves the header name as a string.
- getParameterNames(AccessibleObject) - Method in class com.bobocode.bring.web.utils.ReflectionUtils
-
Retrieves the parameter names of the specified accessible method or constructor.
- getParameterValue(HttpServletRequest, HttpServletResponse, String, Method, Parameter[], Object[], int) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Extracts the value for the method parameter at index
index
based on its annotations and type. - getParamsMap() - Method in class com.bobocode.bring.web.servlet.RestControllerContext
-
Retrieves a map containing controller paths and associated parameters.
- GetParamsResolver - Class in com.bobocode.bring.web.servlet.mapping.request
-
The GetParamsResolver class implements the RequestParamsResolver interface to handle the @GetMapping annotation.
- GetParamsResolver() - Constructor for class com.bobocode.bring.web.servlet.mapping.request.GetParamsResolver
- getPort() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- getPort() - Method in interface com.bobocode.bring.web.server.WebServer
-
Return the port this server is listening on.
- getPortsDescription(boolean) - Method in class com.bobocode.bring.web.server.TomcatWebServer
- getReasonPhrase() - Method in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- getRequestPath(HttpServletRequest) - Static method in class com.bobocode.bring.web.utils.HttpServletRequestUtils
-
Retrieves the request path from the given
HttpServletRequest
, excluding the context path. - getRestControllerParams(BringServlet, List<RequestParamsResolver>) - Static method in class com.bobocode.bring.web.utils.RestControllerParamsUtil
-
Retrieves the mapping of controller methods to their associated
RestControllerParams
. - getRestControllerParams(HttpServletRequest) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Retrieves the
RestControllerParams
for the givenHttpServletRequest
. - getRestControllerProcessResult(Object, Method, HttpServletResponse, Object...) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Invokes the controller method with the provided arguments and handles the resulting response.
- getSeries() - Method in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- getShortenedPath(String) - Static method in class com.bobocode.bring.web.utils.HttpServletRequestUtils
-
Obtains a shortened version of the given request path, excluding the last segment (e.g., file or resource name).
- getStackTrace(Throwable, Boolean) - Method in class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
-
Returns the stack trace as a string based on the specified flag.
- getStaticFile(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.staticcontent.controller.StaticResourceController
-
Handles GET requests for static resources.
- getStaticFile(String) - Method in class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
-
Retrieves the absolute path for the requested static file.
- getStaticFile(String) - Method in interface com.bobocode.bring.web.staticcontent.service.StaticResourceService
-
Retrieves the absolute path for the requested static file.
- getValue() - Method in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- getValue() - Method in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- getWebServer() - Method in interface com.bobocode.bring.web.server.ServletWebServerFactory
-
Creates and returns a new instance of a servlet-based
WebServer
. - getWebServer() - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Returns a new instance of
TomcatWebServer
configured based on the factory's settings. - GIT_BRANCH_PROPERTY - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GIT_COMMIT_ID_PROPERTY - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GIT_COMMIT_MESSAGE_FULL_PROPERTY - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GIT_COMMIT_TIME_PROPERTY - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GIT_FILE_NAME - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GIT_PROPERTIES_FILE_NOT_FOUND_MESSAGE - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- gitInfo - Static variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- GitInfo - Class in com.bobocode.bring.web.actuator.dto
-
Represents information about Git.
- GitInfo() - Constructor for class com.bobocode.bring.web.actuator.dto.GitInfo
- GONE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
410 Gone
.
H
- handleAnnotation(HttpServletResponse, Method) - Method in interface com.bobocode.bring.web.servlet.mapping.response.ResponseAnnotationResolver
- handleAnnotation(HttpServletResponse, Method) - Method in class com.bobocode.bring.web.servlet.mapping.response.ResponseStatusAnnotationResolver
- handleAnnotation(Object, Method, String, Map<String, List<RestControllerParams>>) - Method in class com.bobocode.bring.web.servlet.mapping.request.DeleteParamsResolver
-
Handles the @DeleteMapping annotation on a method and processes the associated parameters.
- handleAnnotation(Object, Method, String, Map<String, List<RestControllerParams>>) - Method in class com.bobocode.bring.web.servlet.mapping.request.GetParamsResolver
-
Handles the @GetMapping annotation on a method and processes the associated parameters.
- handleAnnotation(Object, Method, String, Map<String, List<RestControllerParams>>) - Method in class com.bobocode.bring.web.servlet.mapping.request.PostParamsResolver
-
Handles the @PostMapping annotation on a method and processes the associated parameters.
- handleAnnotation(Object, Method, String, Map<String, List<RestControllerParams>>) - Method in class com.bobocode.bring.web.servlet.mapping.request.PutParamsResolver
-
Handles the @PutMapping annotation on a method and processes the associated parameters.
- handleAnnotation(Object, Method, String, Map<String, List<RestControllerParams>>) - Method in interface com.bobocode.bring.web.servlet.mapping.request.RequestParamsResolver
-
Handles the annotation on a method and processes the associated parameters.
- hashCode() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Returns a hash code value for this object.
- HEAD - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- headers - Variable in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Map to store header name-value pairs.
- headers - Variable in class com.bobocode.bring.web.servlet.http.ResponseEntity
- headersNameList - Variable in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
List containing all header names as strings.
- health() - Method in class com.bobocode.bring.web.actuator.controller.ActuatorController
-
Endpoint for checking the health of the application.
- HOST - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- HTTP_STATUS_OK - Static variable in class com.bobocode.bring.web.servlet.DispatcherServlet
- HTTP_VERSION_NOT_SUPPORTED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
505 HTTP Version Not Supported
. - HttpHeaders - Class in com.bobocode.bring.web.servlet.http
-
The HttpHeaders class represents a collection of HTTP headers.
- HttpHeaders() - Constructor for class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Constructs a new HttpHeaders object with an empty header map and initializes the list of header names.
- HttpHeaders.Name - Enum Class in com.bobocode.bring.web.servlet.http
-
Enumeration containing common HTTP header names.
- HttpServletRequestUtils - Class in com.bobocode.bring.web.utils
-
The
HttpServletRequestUtils
class provides utility methods for working withHttpServletRequest
. - HttpServletRequestUtils() - Constructor for class com.bobocode.bring.web.utils.HttpServletRequestUtils
- httpStatus - Variable in class com.bobocode.bring.web.servlet.http.ResponseEntity
- HttpStatus - Enum Class in com.bobocode.bring.web.servlet.http
-
Enumeration representing HTTP status codes as defined in the HTTP/1.1 specification.
- HttpStatus(int, HttpStatus.Series, String) - Constructor for enum class com.bobocode.bring.web.servlet.http.HttpStatus
- HttpStatus.Series - Enum Class in com.bobocode.bring.web.servlet.http
I
- I_AM_A_TEAPOT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
418 I'm a teapot
. - id - Variable in class com.bobocode.bring.web.actuator.dto.Commit
- IM_USED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
226 IM Used
. - info - Variable in class com.bobocode.bring.web.utils.ReflectionUtils
-
An instance of Paranamer for parameter name lookup.
- info() - Method in class com.bobocode.bring.web.actuator.controller.ActuatorController
-
Endpoint for retrieving Git information about the application.
- INFORMATIONAL - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- init(ServletConfig) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Initializes the servlet with the provided configuration.
- initialize() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- instance - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
The field for the
instance
record component. - instance() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns the value of the
instance
record component. - INSUFFICIENT_STORAGE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
507 Insufficient Storage
- INTERNAL_SERVER_ERROR - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
500 Internal Server Error
. - isSupported(Class<?>) - Method in class com.bobocode.bring.web.servlet.annotation.resolver.ControllerBeanNameAnnotationResolver
-
Checks if the resolver supports handling annotations on the specified class.
- isSupported(Class<?>) - Method in class com.bobocode.bring.web.servlet.scaner.resolver.RestControllerBeanNameAnnotationResolver
-
Checks if the resolver supports handling annotations on the specified class.
J
- JAVA_LANG_PACKAGE - Static variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
Package name for java.lang.
- jsonExceptionHandler - Variable in class com.bobocode.bring.web.servlet.WebStarter
-
The JsonExceptionHandler for handling JSON-related exceptions.
- jsonExceptionHandler() - Method in class com.bobocode.bring.web.server.WebServerConfiguration
-
Creates and returns a
JsonExceptionHandler
bean for handling JSON exceptions. - JsonExceptionHandler - Class in com.bobocode.bring.web.servlet
-
Component for handling exceptions and generating JSON error responses.
- JsonExceptionHandler() - Constructor for class com.bobocode.bring.web.servlet.JsonExceptionHandler
L
- LAST_MODIFIED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- LENGTH_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
411 Length Required
. - lifecycleEvent(LifecycleEvent) - Method in class com.bobocode.bring.web.servlet.BringTomcatApplicationLifecycleListener
- LOCATION - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- LOCKED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
423 Locked
. - logger(String, String) - Method in class com.bobocode.bring.web.actuator.controller.ActuatorController
-
Endpoint for dynamically changing the log level of specific loggers based on package name.
- LogLevelChangerUtils - Class in com.bobocode.bring.web.actuator.utils
-
Utility class for changing the log level of a specific package.
- LogLevelChangerUtils() - Constructor for class com.bobocode.bring.web.actuator.utils.LogLevelChangerUtils
- LOOP_DETECTED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
508 Loop Detected
M
- MediaType - Class in com.bobocode.bring.web.servlet.http
-
Utility class for representing common media types used in HTTP requests and responses.
- MediaType() - Constructor for class com.bobocode.bring.web.servlet.http.MediaType
- message - Variable in class com.bobocode.bring.web.actuator.dto.Commit
- message - Variable in class com.bobocode.bring.web.servlet.error.ErrorResponse
-
The error message providing additional information about the error.
- method - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
The field for the
method
record component. - method - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
The field for the
method
record component. - method() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns the value of the
method
record component. - method() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Returns the value of the
method
record component. - METHOD_NOT_ALLOWED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
405 Method Not Allowed
. - MethodArgumentTypeMismatchException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The MethodArgumentTypeMismatchException class is a runtime exception that indicates a failure to convert a method argument to the required type.
- MethodArgumentTypeMismatchException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MethodArgumentTypeMismatchException
- MISSING_APPLICATION_MAPPING_MESSAGE - Static variable in class com.bobocode.bring.web.servlet.DispatcherServlet
- MissingApplicationMappingException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The MissingApplicationMappingException class is a runtime exception that indicates the absence of an explicit mapping for a particular request path in the application.
- MissingApplicationMappingException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MissingApplicationMappingException
- MissingApplicationMappingException(String, Throwable, boolean, boolean) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MissingApplicationMappingException
- MissingBringServletImplException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The MissingBringServletImplException class is a runtime exception that indicates the absence of the implementation of the BringServlet interface in a RestController.
- MissingBringServletImplException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MissingBringServletImplException
- MissingRequestHeaderAnnotationValueException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The MissingRequestHeaderAnnotationValueException class is a runtime exception that indicates the absence of a required value for the
@RequestHeader
in a method parameter. - MissingRequestHeaderAnnotationValueException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MissingRequestHeaderAnnotationValueException
- MissingRequestParamException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The MissingRequestParamException class is a runtime exception that indicates the absence of a required request parameter for a method parameter type annotated with
@RequestParam
. - MissingRequestParamException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.MissingRequestParamException
- monitor - Variable in class com.bobocode.bring.web.server.TomcatWebServer
- MOVED_PERMANENTLY - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
301 Moved Permanently
. - MULTI_STATUS - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
207 Multi-Status
. - MULTIPLE_CHOICES - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
300 Multiple Choices
.
N
- name - Variable in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- Name(String) - Constructor for enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- NETWORK_AUTHENTICATION_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
511 Network Authentication Required
. - NO_CONTENT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
204 No Content
. - NON_AUTHORITATIVE_INFORMATION - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
203 Non-Authoritative Information
. - NOT_ACCEPTABLE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
406 Not Acceptable
. - NOT_EXTENDED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
510 Not Extended
- NOT_FOUND - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
404 Not Found
. - NOT_IMPLEMENTED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
501 Not Implemented
. - NOT_MODIFIED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
304 Not Modified
.
O
- objectMapper - Variable in class com.bobocode.bring.web.servlet.DispatcherServlet
- objectMapper - Variable in class com.bobocode.bring.web.servlet.JsonExceptionHandler
- objectMapper() - Method in class com.bobocode.bring.web.server.WebServerConfiguration
-
Creates and returns an
ObjectMapper
bean for JSON object mapping. - OK - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
200 OK
. - OPTIONS - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
P
- ParameterTypeUtils - Class in com.bobocode.bring.web.utils
-
The
ParameterTypeUtils
class is a utility class that provides methods for parsing path variables to their corresponding parameter types. - ParameterTypeUtils() - Constructor for class com.bobocode.bring.web.utils.ParameterTypeUtils
- parseToParameterType(String, Class<?>) - Static method in class com.bobocode.bring.web.utils.ParameterTypeUtils
-
Parses the given path variable to the specified parameter type.
- PARTIAL_CONTENT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
206 Partial Content
. - PATCH - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- PatchMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for mapping HTTP
PATCH
requests onto specific handler methods. - path - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
The field for the
path
record component. - path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.DeleteMapping
-
The URL path or pattern for mapping HTTP DELETE requests to the annotated method.
- path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.GetMapping
-
The URL path or pattern for mapping HTTP GET requests to the annotated method.
- path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.PatchMapping
-
The URL path or pattern for mapping HTTP PATCH requests to the annotated method.
- path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.PostMapping
-
The URL path or pattern for mapping HTTP POST requests to the annotated method.
- path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.PutMapping
-
The URL path or pattern for mapping HTTP PUT requests to the annotated method.
- path() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.RequestMapping
-
The URL path or pattern for mapping HTTP requests to the annotated class.
- path() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns the value of the
path
record component. - PathVariable - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation used to indicate that a method parameter should be bound to a URI template variable.
- PAYLOAD_TOO_LARGE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
413 Payload Too Large
. - PAYMENT_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
402 Payment Required
. - performResponse(RestControllerProcessResult, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Handles the response generated by a controller method.
- PERMANENT_REDIRECT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
308 Permanent Redirect
. - port - Variable in class com.bobocode.bring.web.server.properties.ServerProperties
-
The port on which the web server will listen for incoming requests.
- port - Variable in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- POST - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- PostMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for mapping HTTP
POST
requests onto specific handler methods. - PostParamsResolver - Class in com.bobocode.bring.web.servlet.mapping.request
-
The PostParamsResolver class implements the RequestParamsResolver interface to handle the @PostMapping annotation.
- PostParamsResolver() - Constructor for class com.bobocode.bring.web.servlet.mapping.request.PostParamsResolver
- postProcessInitialization(Object, String) - Method in class com.bobocode.bring.web.servlet.bbp.RestControllerBeanPostProcessor
-
Processes bean initialization annotated with
@RestController
. - PRECONDITION_FAILED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
412 Precondition failed
. - PRECONDITION_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
428 Precondition Required
. - prepareArgs(HttpServletRequest, HttpServletResponse, String, Method) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Prepares the arguments for invoking a controller method by populating an array with values obtained from the given
HttpServletRequest
,HttpServletResponse
, and request path. - prepareBody(Throwable) - Method in class com.bobocode.bring.web.servlet.JsonExceptionHandler
-
Prepares the JSON body of the error response based on the thrown exception.
- prepareCommitInfo(Properties) - Method in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
-
Prepares commit information based on the provided properties.
- prepareErrorResponse(ResponseStatus, Throwable, Boolean) - Method in class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
-
Prepares a customized error response based on the provided parameters.
- prepareErrorResponseCreator() - Method in class com.bobocode.bring.web.server.WebServerConfiguration
-
Creates and returns an
ErrorResponseCreator
bean for preparing error responses. - prepareGitInfo() - Method in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
-
Initializes the Git information during the bean's post-construction phase.
- prepareGitInfo(Properties, Commit) - Method in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
-
Prepares Git information based on the provided properties and commit details.
- preparePropertyData() - Method in interface com.bobocode.bring.web.actuator.service.ActuatorService
-
Prepares system properties data.
- preparePropertyData() - Method in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
-
Prepares system properties data for the Actuator endpoint.
- prepareStackTrace(Throwable) - Method in class com.bobocode.bring.web.servlet.error.ErrorResponseCreator
-
Prepares the stack trace as a string.
- PROCESSING - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
102 Processing
. - processRequest(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Overrides the
processRequest
method ofFrameworkServlet
. - processRequest(HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.FrameworkServlet
-
Processes the HTTP request.
- processResponseEntity(HttpServletResponse, ResponseEntity<?>) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Processes a
ResponseEntity
object, setting the HTTP status code and headers in the providedHttpServletResponse
. - processResponseStatusAnnotation(RestControllerProcessResult, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Processes the
ResponseStatus
annotation, if present, for a controller method. - processRestControllerRequest(RestControllerParams, HttpServletRequest, HttpServletResponse) - Method in class com.bobocode.bring.web.servlet.DispatcherServlet
-
Processes the HTTP request for a specific
RestControllerParams
. - properties - Variable in class com.bobocode.bring.web.actuator.dto.PropertiesData
-
A map representing system properties, where keys are property names and values are property values.
- PropertiesData - Class in com.bobocode.bring.web.actuator.dto
-
DTO class representing system properties data.
- PropertiesData() - Constructor for class com.bobocode.bring.web.actuator.dto.PropertiesData
- PROXY_AUTHENTICATION_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
407 Proxy Authentication Required
. - PUT - Enum constant in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- PutMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for mapping HTTP
PUT
requests onto specific handler methods. - PutParamsResolver - Class in com.bobocode.bring.web.servlet.mapping.request
-
The PutParamsResolver class implements the RequestParamsResolver interface to handle the @PutMapping annotation.
- PutParamsResolver() - Constructor for class com.bobocode.bring.web.servlet.mapping.request.PutParamsResolver
R
- reason() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.ResponseStatus
-
The optional reason associated with the response status.
- reasonPhrase - Variable in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- REDIRECTION - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- reflections - Variable in class com.bobocode.bring.web.servlet.scaner.ControllerClassPathScanner
-
The Reflections instance used for scanning classes.
- reflections - Variable in class com.bobocode.bring.web.servlet.scaner.RestControllerClassPathScanner
-
The Reflections instance used for scanning classes.
- ReflectionUtils - Class in com.bobocode.bring.web.utils
-
The
ReflectionUtils
class is a utility class providing methods for reflection-related operations. - ReflectionUtils() - Constructor for class com.bobocode.bring.web.utils.ReflectionUtils
- REGEX_STATIC_URL - Static variable in class com.bobocode.bring.web.servlet.DispatcherServlet
- report(Request, Response, Throwable) - Method in class com.bobocode.bring.web.servlet.JsonExceptionHandler
-
Overrides the default error reporting method to intercept and customize error handling.
- REQUEST_BODY_EXCEPTION_MESSAGE - Static variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
Exception message for unsupported type in @RequestBody annotation.
- REQUEST_HEADER_EXCEPTION_MESSAGE - Static variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
Exception message for missing @RequestHeader annotation value.
- REQUEST_HEADER_FIELDS_TOO_LARGE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
431 Request Header Fields Too Large
. - REQUEST_TIMEOUT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
408 Request Timeout
. - RequestBody - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation used to indicate that a method parameter should be bound to the body of the HTTP request.
- RequestBodyTypeUnsupportedException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The RequestBodyTypeUnsupportedException class is a runtime exception that indicates an unsupported type for the @RequestBody annotation.
- RequestBodyTypeUnsupportedException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.RequestBodyTypeUnsupportedException
- REQUESTED_RANGE_NOT_SATISFIABLE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
416 Requested Range Not Satisfiable
. - RequestHeader - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation used to indicate that a method parameter should be bound to a specific HTTP request header.
- RequestMapping - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation used to indicate the mapping of a request to a specific controller class.
- requestMethod - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
The field for the
requestMethod
record component. - requestMethod() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns the value of the
requestMethod
record component. - RequestMethod - Enum Class in com.bobocode.bring.web.servlet.annotation
-
Enumeration representing the standard HTTP methods.
- RequestMethod() - Constructor for enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
- RequestParam - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation used to indicate that a method parameter should be bound to a query parameter in a web request.
- RequestParamsResolver - Interface in com.bobocode.bring.web.servlet.mapping.request
-
The RequestParamsResolver interface provides methods for resolving request parameters in the web context of a
@RestController
. - requestParamsResolvers - Variable in class com.bobocode.bring.web.servlet.RestControllerContext
-
List of registered RequestParamsResolver instances.
- RequestPathDuplicateException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The RequestPathDuplicateException class is a runtime exception that indicates the presence of duplicate request paths in the application.
- RequestPathDuplicateException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.RequestPathDuplicateException
- RESET_CONTENT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
205 Reset Content
. - resolve(Class<?>) - Method in class com.bobocode.bring.web.servlet.annotation.resolver.ControllerBeanNameAnnotationResolver
-
Resolves the bean name based on the @Controller annotation.
- resolve(Class<?>) - Method in class com.bobocode.bring.web.servlet.scaner.resolver.RestControllerBeanNameAnnotationResolver
-
Resolves the bean name based on the @RestController annotation.
- ResponseAnnotationResolver - Interface in com.bobocode.bring.web.servlet.mapping.response
- ResponseEntity<T> - Class in com.bobocode.bring.web.servlet.http
-
Represents an HTTP response entity, containing a response body, headers, and HTTP status.
- ResponseEntity(HttpHeaders, HttpStatus) - Constructor for class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Constructs a new ResponseEntity with the given headers and HTTP status.
- ResponseEntity(T, HttpHeaders, HttpStatus) - Constructor for class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Constructs a new ResponseEntity with the given body, headers, and HTTP status.
- ResponseEntity(T, HttpStatus) - Constructor for class com.bobocode.bring.web.servlet.http.ResponseEntity
-
Constructs a new ResponseEntity with the given body and HTTP status.
- ResponseStatus - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Annotation for marking a class or method with the desired HTTP response status code and optional reason.
- ResponseStatusAnnotationResolver - Class in com.bobocode.bring.web.servlet.mapping.response
- ResponseStatusAnnotationResolver() - Constructor for class com.bobocode.bring.web.servlet.mapping.response.ResponseStatusAnnotationResolver
- REST_CONTROLLER_PARAMS - Static variable in class com.bobocode.bring.web.servlet.DispatcherServlet
- REST_CONTROLLER_PARAMS - Static variable in class com.bobocode.bring.web.servlet.WebStarter
-
Attribute key for storing the REST controller parameters map in the servlet context.
- RestController - Annotation Interface in com.bobocode.bring.web.servlet.annotation
-
Indicates that the annotated class is a specialized type of controller designed for RESTful services.
- RestControllerBeanNameAnnotationResolver - Class in com.bobocode.bring.web.servlet.scaner.resolver
-
An implementation of AnnotationResolver specifically designed for resolving bean names associated with classes annotated with @RestController.
- RestControllerBeanNameAnnotationResolver() - Constructor for class com.bobocode.bring.web.servlet.scaner.resolver.RestControllerBeanNameAnnotationResolver
- RestControllerBeanPostProcessor - Class in com.bobocode.bring.web.servlet.bbp
-
A
BeanPostProcessor
implementation that processes bean initialization annotated with@RestController
. - RestControllerBeanPostProcessor() - Constructor for class com.bobocode.bring.web.servlet.bbp.RestControllerBeanPostProcessor
- RestControllerClassPathScanner - Class in com.bobocode.bring.web.servlet.scaner
-
Implementation of ClassPathScanner that scans for classes annotated with @RestController using Reflections.
- RestControllerClassPathScanner() - Constructor for class com.bobocode.bring.web.servlet.scaner.RestControllerClassPathScanner
- restControllerContext - Variable in class com.bobocode.bring.web.servlet.WebStarter
-
The RestControllerContext for managing REST controllers and their parameters.
- RestControllerContext - Class in com.bobocode.bring.web.servlet
-
The
RestControllerContext
class represents the context for managing REST controllers and their associated parameters in a web application. - RestControllerContext(List<BringServlet>, List<RequestParamsResolver>) - Constructor for class com.bobocode.bring.web.servlet.RestControllerContext
-
Constructs a new RestControllerContext with the specified BringServlets and RequestParamsResolvers.
- RestControllerParams - Record Class in com.bobocode.bring.web.servlet.mapping
-
The
RestControllerParams
record represents parameters associated with a method in a web controller. - RestControllerParams(Object, Method, RequestMethod, String) - Constructor for record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Creates an instance of a
RestControllerParams
record class. - RestControllerParamsUtil - Class in com.bobocode.bring.web.utils
-
The
RestControllerParamsUtil
class is a utility class providing methods for extractingRestControllerParams
information from aBringServlet
using a list ofRequestParamsResolver
s. - RestControllerParamsUtil() - Constructor for class com.bobocode.bring.web.utils.RestControllerParamsUtil
- RestControllerProcessResult - Record Class in com.bobocode.bring.web.servlet.mapping
-
The
RestControllerProcessResult
record represents the result of processing a method in a web controller. - RestControllerProcessResult(Method, Object) - Constructor for record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Creates an instance of a
RestControllerProcessResult
record class. - result - Variable in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
The field for the
result
record component. - result() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Returns the value of the
result
record component. - run(BringApplicationContext) - Method in class com.bobocode.bring.web.servlet.WebStarter
-
Runs the web application.
- run(Class<?>) - Static method in class com.bobocode.bring.web.BringWebApplication
-
Run the Bring application context based on the provided configuration class.
- run(String) - Static method in class com.bobocode.bring.web.BringWebApplication
-
Run the Bring application context based on the provided base package for component scanning.
- run(String...) - Static method in class com.bobocode.bring.web.BringWebApplication
-
Run the Bring application context based on the provided base package for component scanning.
S
- scan() - Method in class com.bobocode.bring.web.servlet.scaner.ControllerClassPathScanner
-
Scans the classpath to retrieve classes annotated with @Controller.
- scan() - Method in class com.bobocode.bring.web.servlet.scaner.RestControllerClassPathScanner
-
Scans the classpath to retrieve classes annotated with @RestController.
- SEE_OTHER - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
303 See Other
. - series - Variable in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- Series(int) - Constructor for enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- SERVER_ERROR - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- serverProperties - Variable in class com.bobocode.bring.web.actuator.service.impl.DefaultActuatorService
- serverProperties - Variable in class com.bobocode.bring.web.server.WebServerConfiguration
- serverProperties - Variable in class com.bobocode.bring.web.servlet.JsonExceptionHandler
- ServerProperties - Class in com.bobocode.bring.web.server.properties
-
Configuration properties for the web server.
- ServerProperties() - Constructor for class com.bobocode.bring.web.server.properties.ServerProperties
- SERVICE_UNAVAILABLE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
503 Service Unavailable
. - servletWebServerFactory - Variable in class com.bobocode.bring.web.servlet.WebStarter
-
The ServletWebServerFactory used to create the embedded servlet container.
- ServletWebServerFactory - Interface in com.bobocode.bring.web.server
-
A factory interface for creating and configuring servlet-based web servers.
- set(String, String) - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Sets a single header with a specific value.
- set(String, List<String>) - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Sets a single header with multiple values, comma-separated.
- SET_COOKIE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
- setBaseDirectory(File) - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Sets the base directory for the embedded Tomcat server.
- setContentType(HttpServletResponse, Path) - Method in class com.bobocode.bring.web.staticcontent.controller.StaticResourceController
-
Sets the content type in the HTTP response based on the file type.
- setErrorResponse(Response, Throwable) - Method in class com.bobocode.bring.web.servlet.JsonExceptionHandler
-
Sets the JSON error response in the servlet response.
- setHeaders(Response, ErrorResponse) - Static method in class com.bobocode.bring.web.servlet.JsonExceptionHandler
-
Sets the headers in the servlet response for the JSON error response.
- setPort(int) - Method in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
-
Sets the port number for the embedded Tomcat server.
- setTomcatAppLifecycleListener(LifecycleListener) - Method in interface com.bobocode.bring.web.server.ServletWebServerFactory
- stackTrace - Variable in class com.bobocode.bring.web.servlet.error.ErrorResponse
-
The stack trace information indicating the sequence of method calls leading to the error.
- start() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- start() - Method in interface com.bobocode.bring.web.server.WebServer
-
Starts the web server.
- startDaemonAwaitThread() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- started - Variable in class com.bobocode.bring.web.server.TomcatWebServer
- STATIC_FILE_NOT_FOUND_MESSAGE - Static variable in class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
- STATIC_FOLDER - Static variable in class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
- STATIC_FOLDER_NOT_FOUND_MESSAGE - Static variable in class com.bobocode.bring.web.staticcontent.service.impl.DefaultStaticResourceService
- StaticFileNotFoundException - Exception Class in com.bobocode.bring.web.staticcontent.exception
-
Exception thrown when a static file is not found.
- StaticFileNotFoundException(String) - Constructor for exception class com.bobocode.bring.web.staticcontent.exception.StaticFileNotFoundException
-
Constructs a new
StaticFileNotFoundException
with the specified detail message. - StaticFileNotFoundException(String, Throwable, boolean, boolean) - Constructor for exception class com.bobocode.bring.web.staticcontent.exception.StaticFileNotFoundException
- StaticResourceController - Class in com.bobocode.bring.web.staticcontent.controller
-
Controller responsible for handling static resource requests.
- StaticResourceController() - Constructor for class com.bobocode.bring.web.staticcontent.controller.StaticResourceController
- staticResourceService - Variable in class com.bobocode.bring.web.staticcontent.controller.StaticResourceController
- StaticResourceService - Interface in com.bobocode.bring.web.staticcontent.service
-
Interface defining methods for handling static resource requests.
- status - Variable in class com.bobocode.bring.web.servlet.error.ErrorResponse
-
The status message corresponding to the error code.
- stop() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- stop() - Method in interface com.bobocode.bring.web.server.WebServer
-
Stops the web server.
- stop() - Method in class com.bobocode.bring.web.servlet.WebStarter
-
Stops the embedded Tomcat server.
- stopSilently() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- stopTomcat() - Method in class com.bobocode.bring.web.server.TomcatWebServer
- SUCCESSFUL - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- SWITCHING_PROTOCOLS - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
101 Switching Protocols
.
T
- TEMPORARY_REDIRECT - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
307 Temporary Redirect
. - TEXT_HTML_VALUE - Static variable in class com.bobocode.bring.web.servlet.http.MediaType
-
Represents the "text/html" media type.
- time - Variable in class com.bobocode.bring.web.actuator.dto.Commit
- timestamp - Variable in class com.bobocode.bring.web.servlet.error.ErrorResponse
-
The timestamp indicating when the error response was created.
- toCommaDelimitedString(List<String>) - Method in class com.bobocode.bring.web.servlet.http.HttpHeaders
-
Converts a list of header values to a comma-separated string.
- tomcat - Variable in class com.bobocode.bring.web.server.TomcatWebServer
- tomcatAppLifecycleListener - Variable in class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- tomcatServletWebServerFactory() - Method in class com.bobocode.bring.web.server.WebServerConfiguration
-
Creates and returns a
TomcatServletWebServerFactory
bean for configuring the embedded Tomcat web server. - TomcatServletWebServerFactory - Class in com.bobocode.bring.web.server
-
ServletWebServerFactory
implementation for Apache Tomcat. - TomcatServletWebServerFactory() - Constructor for class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- TomcatServletWebServerFactory(int) - Constructor for class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- TomcatServletWebServerFactory(int, String) - Constructor for class com.bobocode.bring.web.server.TomcatServletWebServerFactory
- TomcatWebServer - Class in com.bobocode.bring.web.server
-
Implementation of the
WebServer
interface for the Apache Tomcat server. - TomcatWebServer(Tomcat) - Constructor for class com.bobocode.bring.web.server.TomcatWebServer
- TOO_EARLY - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
425 Too Early
. - TOO_MANY_REQUESTS - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
429 Too Many Requests
. - toString() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerParams
-
Returns a string representation of this record class.
- toString() - Method in record class com.bobocode.bring.web.servlet.mapping.RestControllerProcessResult
-
Returns a string representation of this record class.
- TRUE - Static variable in class com.bobocode.bring.web.utils.ParameterTypeUtils
-
A constant string representing the boolean value "true".
- TypeArgumentUnsupportedException - Exception Class in com.bobocode.bring.web.servlet.exception
-
The TypeArgumentUnsupportedException class is a runtime exception that indicates the usage of an unsupported type argument.
- TypeArgumentUnsupportedException(String) - Constructor for exception class com.bobocode.bring.web.servlet.exception.TypeArgumentUnsupportedException
U
- UNAUTHORIZED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
401 Unauthorized
. - UNAVAILABLE_FOR_LEGAL_REASONS - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
451 Unavailable For Legal Reasons
. - UNPROCESSABLE_ENTITY - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
422 Unprocessable Entity
. - UNSUPPORTED_MEDIA_TYPE - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
415 Unsupported Media Type
. - UPGRADE_REQUIRED - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
426 Upgrade Required
. - URI_TOO_LONG - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
414 URI Too Long
. - URL_PATTERN - Static variable in class com.bobocode.bring.web.servlet.WebStarter
-
Default URL pattern for the dispatcher servlet.
- UTF8_VALUE - Static variable in class com.bobocode.bring.web.servlet.http.MediaType
-
Represents the "UTF-8" character encoding.
V
- value - Variable in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
- value - Variable in enum class com.bobocode.bring.web.servlet.http.HttpStatus
- value() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.PathVariable
- value() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.RequestHeader
- value() - Element in annotation interface com.bobocode.bring.web.servlet.annotation.ResponseStatus
-
The HTTP response status code.
- valueOf(String) - Static method in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.bobocode.bring.web.servlet.annotation.RequestMethod
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bobocode.bring.web.servlet.http.HttpHeaders.Name
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bobocode.bring.web.servlet.http.HttpStatus.Series
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARIANT_ALSO_NEGOTIATES - Enum constant in enum class com.bobocode.bring.web.servlet.http.HttpStatus
-
506 Variant Also Negotiates
W
- webServer - Variable in class com.bobocode.bring.web.servlet.WebStarter
-
The TomcatWebServer instance representing the embedded Tomcat server.
- WebServer - Interface in com.bobocode.bring.web.server
-
The
WebServer
interface defines basic lifecycle methods to manage the server's state, including starting and stopping. - WebServerConfiguration - Class in com.bobocode.bring.web.server
-
Configuration class for setting up and customizing the web server and related beans.
- WebServerConfiguration() - Constructor for class com.bobocode.bring.web.server.WebServerConfiguration
- WebServerException - Exception Class in com.bobocode.bring.web.server.exception
-
RuntimeException used to represent generic exceptions related to web server operations.
- WebServerException(String, Throwable) - Constructor for exception class com.bobocode.bring.web.server.exception.WebServerException
- WebStarter - Class in com.bobocode.bring.web.servlet
-
The
WebStarter
class is responsible for initializing and running a web application using Apache Tomcat as the embedded servlet container. - WebStarter(TomcatServletWebServerFactory, DispatcherServlet, JsonExceptionHandler, RestControllerContext) - Constructor for class com.bobocode.bring.web.servlet.WebStarter
-
Constructs a new WebStarter with the specified components.
- withMessage - Variable in class com.bobocode.bring.web.server.properties.ServerProperties
-
Configuration property for controlling whether commit messages are included in GitInfo responses.
- withStackTrace - Variable in class com.bobocode.bring.web.server.properties.ServerProperties
-
Indicates whether stack traces should be included in error responses.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form