Index

A C F G I M N O P T 
All Classes and Interfaces|All Packages|Serialized Form

A

AuthFilter - Class in org.project.authentification
Simple authentication filter for Bearer tokens.
AuthFilter() - Constructor for class org.project.authentification.AuthFilter
 

C

ClientApiKey - Class in org.project.util
Singleton to create and provide a Gemini client using the API key from properties.

F

filter(ContainerRequestContext) - Method in class org.project.authentification.AuthFilter
Filter requests for Bearer token.

G

getCleanText(String) - Static method in class org.project.api.TextAPI
Clean and correct the input text using Gemini.
getClient() - Method in class org.project.util.ClientApiKey
Get the Gemini client.
getInstance() - Static method in class org.project.util.ClientApiKey
Get the singleton instance.
getProcessor(String) - Static method in class org.project.service.ProcessorFactory
Get processor for the given type.

I

InputProcessor - Interface in org.project.strategy
Interface for processing input before translation.

M

Main - Class in Unnamed Package
 
Main() - Constructor for class Main
 

N

NullPointerClient - Exception Class in org.project.exception
Exception for Gemini client null pointer errors.
NullPointerClient(String) - Constructor for exception class org.project.exception.NullPointerClient
Create exception with a message.

O

org.project.api - package org.project.api
This package manages the translation API.
org.project.authentification - package org.project.authentification
This package manages client authentication and API security.
org.project.controller - package org.project.controller
This package contains the REST controllers for the translation API.
org.project.exception - package org.project.exception
This package manages custom exceptions for the application.
org.project.service - package org.project.service
This package contains business logic and translation services.
org.project.strategy - package org.project.strategy
This package defines strategies and interfaces for text processing.
org.project.util - package org.project.util
This package contains utilities and helper classes for the application.

P

processor(Object) - Method in interface org.project.strategy.InputProcessor
Process input before translation.
processor(Object) - Method in class org.project.strategy.TextProcessor
Clean up text before translation.
ProcessorFactory - Class in org.project.service
Factory to get the right InputProcessor for a given type.
ProcessorFactory() - Constructor for class org.project.service.ProcessorFactory
 

T

TextAPI - Class in org.project.api
Provides text cleaning and correction utilities using Gemini.
TextAPI() - Constructor for class org.project.api.TextAPI
 
TextProcessor - Class in org.project.strategy
Preprocess plain text input before translation.
TextProcessor() - Constructor for class org.project.strategy.TextProcessor
 
translate(Map<String, String>) - Method in class org.project.controller.TranslateController
Handle translation requests (expects JSON with 'type' and 'input').
translate(Map<String, String>) - Static method in class org.project.service.TranslationService
Validate, clean, and translate the input request.
TranslateAPI - Class in org.project.api
Handles translation of text to Moroccan Darija using Gemini.
TranslateAPI() - Constructor for class org.project.api.TranslateAPI
 
TranslateController - Class in org.project.controller
REST controller for handling translation requests.
TranslateController() - Constructor for class org.project.controller.TranslateController
 
translateToDarija(String) - Static method in class org.project.api.TranslateAPI
Translate cleaned text to Moroccan Darija using Gemini.
TranslationService - Class in org.project.service
Service layer entry point for translation requests exposed to controllers.
TranslationService() - Constructor for class org.project.service.TranslationService
 
A C F G I M N O P T 
All Classes and Interfaces|All Packages|Serialized Form