Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ApiError - Record Class in com.dani.bff.error
-
Structured error body returned by the BFF for predictable client-side handling.
- ApiError(Instant, int, String, String, String) - Constructor for record class com.dani.bff.error.ApiError
-
Creates an instance of a
ApiErrorrecord class.
B
- BEARER_AUTH - Static variable in class com.dani.bff.config.OpenApiConfig
C
- com.dani.bff - package com.dani.bff
- com.dani.bff.api - package com.dani.bff.api
- com.dani.bff.config - package com.dani.bff.config
- com.dani.bff.dto - package com.dani.bff.dto
- com.dani.bff.error - package com.dani.bff.error
- com.dani.bff.gateway - package com.dani.bff.gateway
- com.dani.bff.service - package com.dani.bff.service
D
- dashboard(Jwt) - Method in class com.dani.bff.api.DashboardController
-
Returns the dashboard model assembled for the authenticated user.
- DashboardController - Class in com.dani.bff.api
-
HTTP API dedicated to the React dashboard experience.
- DashboardController(DashboardService) - Constructor for class com.dani.bff.api.DashboardController
- DashboardResponse - Record Class in com.dani.bff.dto
-
Frontend-oriented dashboard payload assembled from multiple backend services.
- DashboardResponse(UserProfile, List<ProductRecommendation>) - Constructor for record class com.dani.bff.dto.DashboardResponse
-
Creates an instance of a
DashboardResponserecord class. - DashboardService - Class in com.dani.bff.service
-
Coordinates the downstream calls required by the dashboard API.
- DashboardService(ResilientDashboardGateway) - Constructor for class com.dani.bff.service.DashboardService
- displayName() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns the value of the
displayNamerecord component. - displayName() - Method in record class com.dani.bff.dto.UserProfile
-
Returns the value of the
displayNamerecord component. - DownstreamProductResponse - Record Class in com.dani.bff.dto
-
Product representation returned by the downstream product service.
- DownstreamProductResponse(String, String, BigDecimal) - Constructor for record class com.dani.bff.dto.DownstreamProductResponse
-
Creates an instance of a
DownstreamProductResponserecord class. - DownstreamProperties - Class in com.dani.bff.config
-
Externalized connection settings for downstream services consumed by the BFF.
- DownstreamProperties() - Constructor for class com.dani.bff.config.DownstreamProperties
- DownstreamProperties.Service - Class in com.dani.bff.config
-
Base URL and timeout for one HTTP downstream service.
- DownstreamServiceException - Exception Class in com.dani.bff.error
-
Signals that a downstream HTTP service did not provide a usable response.
- DownstreamServiceException(String, HttpStatusCode, String) - Constructor for exception class com.dani.bff.error.DownstreamServiceException
-
Creates an exception with downstream service context.
- DownstreamUserResponse - Record Class in com.dani.bff.dto
-
User representation returned by the downstream user service.
- DownstreamUserResponse(String, String, String, String, String) - Constructor for record class com.dani.bff.dto.DownstreamUserResponse
-
Creates an instance of a
DownstreamUserResponserecord class.
E
- email() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns the value of the
emailrecord component. - email() - Method in record class com.dani.bff.dto.UserProfile
-
Returns the value of the
emailrecord component. - equals(Object) - Method in record class com.dani.bff.dto.DashboardResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.dani.bff.dto.ProductRecommendation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.dani.bff.dto.UserProfile
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.dani.bff.error.ApiError
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.dani.bff.error.ApiError
-
Returns the value of the
errorrecord component.
F
- fetchRecommendedProducts(String) - Method in class com.dani.bff.gateway.ProductServiceClient
-
Fetches product recommendations for a user from the product service.
- fetchUserProfile(String) - Method in class com.dani.bff.gateway.UserServiceClient
-
Fetches a user profile from the user service.
- firstName() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns the value of the
firstNamerecord component.
G
- getAudience() - Method in class com.dani.bff.config.JwtSecurityProperties
- getBaseUrl() - Method in class com.dani.bff.config.DownstreamProperties.Service
- getDashboard(Jwt) - Method in class com.dani.bff.service.DashboardService
-
Builds the dashboard response for the authenticated JWT subject.
- getIssuer() - Method in class com.dani.bff.config.JwtSecurityProperties
- getIssuerUri() - Method in class com.dani.bff.config.JwtSecurityProperties
- getJwkSetUri() - Method in class com.dani.bff.config.JwtSecurityProperties
- getProductService() - Method in class com.dani.bff.config.DownstreamProperties
- getRecommendedProducts(String) - Method in class com.dani.bff.gateway.ResilientDashboardGateway
-
Reads recommendations with an empty-list fallback.
- getSecret() - Method in class com.dani.bff.config.JwtSecurityProperties
- getServiceName() - Method in exception class com.dani.bff.error.DownstreamServiceException
- getStatusCode() - Method in exception class com.dani.bff.error.DownstreamServiceException
- getTimeout() - Method in class com.dani.bff.config.DownstreamProperties.Service
- getUserProfile(String) - Method in class com.dani.bff.gateway.ResilientDashboardGateway
-
Reads the user's profile with a safe placeholder fallback.
- getUserService() - Method in class com.dani.bff.config.DownstreamProperties
- GlobalErrorHandler - Class in com.dani.bff.error
-
Converts uncaught application exceptions into structured API errors.
- GlobalErrorHandler() - Constructor for class com.dani.bff.error.GlobalErrorHandler
H
- handleDownstreamFailure(DownstreamServiceException, ServerWebExchange) - Method in class com.dani.bff.error.GlobalErrorHandler
-
Handles downstream failures that escape resilience fallbacks.
- handleResponseStatus(ResponseStatusException, ServerWebExchange) - Method in class com.dani.bff.error.GlobalErrorHandler
- handleUnexpected(Exception, ServerWebExchange) - Method in class com.dani.bff.error.GlobalErrorHandler
- hashCode() - Method in record class com.dani.bff.dto.DashboardResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.dani.bff.dto.ProductRecommendation
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.dani.bff.dto.UserProfile
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.dani.bff.error.ApiError
-
Returns a hash code value for this object.
I
- id() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Returns the value of the
idrecord component. - id() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns the value of the
idrecord component. - id() - Method in record class com.dani.bff.dto.ProductRecommendation
-
Returns the value of the
idrecord component. - id() - Method in record class com.dani.bff.dto.UserProfile
-
Returns the value of the
idrecord component.
J
- JwtSecurityProperties - Class in com.dani.bff.config
-
JWT resource-server settings for local HMAC validation or production JWK validation.
- JwtSecurityProperties() - Constructor for class com.dani.bff.config.JwtSecurityProperties
L
- lastName() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns the value of the
lastNamerecord component.
M
- main(String[]) - Static method in class com.dani.bff.ReactBffGatewayApplication
-
Launches the Spring Boot runtime.
- message() - Method in record class com.dani.bff.error.ApiError
-
Returns the value of the
messagerecord component.
N
- name() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Returns the value of the
namerecord component. - name() - Method in record class com.dani.bff.dto.ProductRecommendation
-
Returns the value of the
namerecord component.
O
- of(HttpStatus, String, String) - Static method in record class com.dani.bff.error.ApiError
-
Creates an API error with the current timestamp.
- OpenApiConfig - Class in com.dani.bff.config
-
OpenAPI metadata for the BFF's public React-facing API contract.
- OpenApiConfig() - Constructor for class com.dani.bff.config.OpenApiConfig
P
- path() - Method in record class com.dani.bff.error.ApiError
-
Returns the value of the
pathrecord component. - price() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Returns the value of the
pricerecord component. - price() - Method in record class com.dani.bff.dto.ProductRecommendation
-
Returns the value of the
pricerecord component. - ProductRecommendation - Record Class in com.dani.bff.dto
-
Product card data optimized for display in the React dashboard.
- ProductRecommendation(String, String, BigDecimal) - Constructor for record class com.dani.bff.dto.ProductRecommendation
-
Creates an instance of a
ProductRecommendationrecord class. - ProductServiceClient - Class in com.dani.bff.gateway
-
HTTP client for the product service recommendation endpoint.
- ProductServiceClient(WebClient, DownstreamProperties) - Constructor for class com.dani.bff.gateway.ProductServiceClient
- productServiceWebClient(WebClient.Builder, DownstreamProperties) - Method in class com.dani.bff.config.WebClientConfig
R
- ReactBffGatewayApplication - Class in com.dani.bff
-
Starts the React BFF Gateway application and enables typed external configuration.
- ReactBffGatewayApplication() - Constructor for class com.dani.bff.ReactBffGatewayApplication
- reactiveJwtDecoder(JwtSecurityProperties) - Method in class com.dani.bff.config.SecurityConfig
-
Builds a JWT decoder from JWK, issuer discovery, or local HMAC settings in that order.
- recommendedProducts() - Method in record class com.dani.bff.dto.DashboardResponse
-
Returns the value of the
recommendedProductsrecord component. - ResilientDashboardGateway - Class in com.dani.bff.gateway
-
Applies circuit-breaker policies and fallback behavior around dashboard downstream calls.
- ResilientDashboardGateway(UserServiceClient, ProductServiceClient) - Constructor for class com.dani.bff.gateway.ResilientDashboardGateway
S
- SecurityConfig - Class in com.dani.bff.config
-
Configures JWT resource-server security and JSON security error responses.
- SecurityConfig() - Constructor for class com.dani.bff.config.SecurityConfig
- securityWebFilterChain(ServerHttpSecurity, ObjectMapper, boolean, boolean) - Method in class com.dani.bff.config.SecurityConfig
-
Protects BFF APIs, leaves health checks public, and denies unknown routes.
- Service() - Constructor for class com.dani.bff.config.DownstreamProperties.Service
- setAudience(String) - Method in class com.dani.bff.config.JwtSecurityProperties
- setBaseUrl(URI) - Method in class com.dani.bff.config.DownstreamProperties.Service
- setIssuer(String) - Method in class com.dani.bff.config.JwtSecurityProperties
- setIssuerUri(String) - Method in class com.dani.bff.config.JwtSecurityProperties
- setJwkSetUri(String) - Method in class com.dani.bff.config.JwtSecurityProperties
- setProductService(DownstreamProperties.Service) - Method in class com.dani.bff.config.DownstreamProperties
- setSecret(String) - Method in class com.dani.bff.config.JwtSecurityProperties
- setTimeout(Duration) - Method in class com.dani.bff.config.DownstreamProperties.Service
- setUserService(DownstreamProperties.Service) - Method in class com.dani.bff.config.DownstreamProperties
- status() - Method in record class com.dani.bff.error.ApiError
-
Returns the value of the
statusrecord component.
T
- timestamp() - Method in record class com.dani.bff.error.ApiError
-
Returns the value of the
timestamprecord component. - toRecommendation() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Converts the downstream contract into the stable BFF response contract.
- toString() - Method in record class com.dani.bff.dto.DashboardResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.dani.bff.dto.DownstreamProductResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.dani.bff.dto.ProductRecommendation
-
Returns a string representation of this record class.
- toString() - Method in record class com.dani.bff.dto.UserProfile
-
Returns a string representation of this record class.
- toString() - Method in record class com.dani.bff.error.ApiError
-
Returns a string representation of this record class.
- toUserProfile(String) - Method in record class com.dani.bff.dto.DownstreamUserResponse
-
Converts the downstream contract into the stable BFF user contract.
U
- unavailable(String) - Static method in record class com.dani.bff.dto.UserProfile
-
Creates a safe placeholder used when the user service is unavailable.
- user() - Method in record class com.dani.bff.dto.DashboardResponse
-
Returns the value of the
userrecord component. - UserProfile - Record Class in com.dani.bff.dto
-
User information exposed to the React application.
- UserProfile(String, String, String) - Constructor for record class com.dani.bff.dto.UserProfile
-
Creates an instance of a
UserProfilerecord class. - UserServiceClient - Class in com.dani.bff.gateway
-
HTTP client for the user service profile endpoint.
- UserServiceClient(WebClient, DownstreamProperties) - Constructor for class com.dani.bff.gateway.UserServiceClient
- userServiceWebClient(WebClient.Builder, DownstreamProperties) - Method in class com.dani.bff.config.WebClientConfig
W
- WebClientConfig - Class in com.dani.bff.config
-
Provides WebClient instances scoped to each downstream service.
- WebClientConfig() - Constructor for class com.dani.bff.config.WebClientConfig
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form