Class TranslationService

java.lang.Object
org.project.service.TranslationService

public class TranslationService extends Object
Service layer entry point for translation requests exposed to controllers.
  • Constructor Details

    • TranslationService

      public TranslationService()
  • Method Details

    • translate

      public static jakarta.ws.rs.core.Response translate(Map<String,String> request)
      Validate, clean, and translate the input request.
      Parameters:
      request - map with 'type' and 'input'
      Returns:
      HTTP response with translation or error