Index

A B C E G H L M P R S T W 
All Classes and Interfaces|All Packages

A

ApiUtil - Class in lv.id.jc.piglatin.api
 
ApiUtil() - Constructor for class lv.id.jc.piglatin.api.ApiUtil
 
apply(int) - Method in class lv.id.jc.piglatin.actuator.HealthFunction
Converts an HTTP status code into a Health object that represents the health of a service.
apply(String) - Method in class lv.id.jc.piglatin.core.PhraseTranslator
Translates a phrase to Pig Latin.
apply(String) - Method in class lv.id.jc.piglatin.core.WordsMatcher
This method applies the word-matching pattern to a given phrase.
apply(String) - Method in class lv.id.jc.piglatin.core.WordTranslator
Translates a word to Pig Latin.

B

BlogHealthIndicator - Class in lv.id.jc.piglatin.actuator
 
BlogHealthIndicator(IntSupplier, IntFunction<Health>) - Constructor for class lv.id.jc.piglatin.actuator.BlogHealthIndicator
 

C

count() - Method in class lv.id.jc.piglatin.actuator.TranslationCountEndpoint
Retrieves the current count of translations.

E

equals(Object) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
equals(Object) - Method in class lv.id.jc.piglatin.model.TranslationRequest
 
equals(Object) - Method in class lv.id.jc.piglatin.model.TranslationResponse
 
error(String) - Method in class lv.id.jc.piglatin.model.Translate400Response
 

G

getAsInt() - Method in class lv.id.jc.piglatin.actuator.StatusCodeSupplier
Returns the HTTP response code obtained by making a GET request to the specified base URL.
getError() - Method in class lv.id.jc.piglatin.model.Translate400Response
The error message.
getPath() - Method in class lv.id.jc.piglatin.model.Translate400Response
The request path.
getRequest() - Method in interface lv.id.jc.piglatin.api.PigLatinApi
 
getSentence() - Method in class lv.id.jc.piglatin.model.TranslationRequest
English sentence for translation.
getSentence() - Method in class lv.id.jc.piglatin.model.TranslationResponse
The sentence is translated into Pig Latin.
getStatus() - Method in class lv.id.jc.piglatin.model.Translate400Response
The HTTP status code.
getTimestamp() - Method in class lv.id.jc.piglatin.model.Translate400Response
The date and time of the error.
groups() - Element in annotation interface lv.id.jc.piglatin.core.Word
The groups the constraint belongs to.

H

hashCode() - Method in class lv.id.jc.piglatin.model.Translate400Response
 
hashCode() - Method in class lv.id.jc.piglatin.model.TranslationRequest
 
hashCode() - Method in class lv.id.jc.piglatin.model.TranslationResponse
 
health() - Method in class lv.id.jc.piglatin.actuator.BlogHealthIndicator
 
HealthFunction - Class in lv.id.jc.piglatin.actuator
 
HealthFunction() - Constructor for class lv.id.jc.piglatin.actuator.HealthFunction
 
httpClient() - Method in class lv.id.jc.piglatin.PigLatinRestApplication
Returns a new instance of HttpClient.

L

lv.id.jc.piglatin - package lv.id.jc.piglatin
 
lv.id.jc.piglatin.actuator - package lv.id.jc.piglatin.actuator
 
lv.id.jc.piglatin.api - package lv.id.jc.piglatin.api
 
lv.id.jc.piglatin.controller - package lv.id.jc.piglatin.controller
 
lv.id.jc.piglatin.core - package lv.id.jc.piglatin.core
This package contains the core functionality for the Pig Latin application.
lv.id.jc.piglatin.model - package lv.id.jc.piglatin.model
 
lv.id.jc.piglatin.service - package lv.id.jc.piglatin.service
 

M

main(String[]) - Static method in class lv.id.jc.piglatin.PigLatinRestApplication
 
message() - Element in annotation interface lv.id.jc.piglatin.core.Word
The default error message if the validation fails.

P

path(String) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
payload() - Element in annotation interface lv.id.jc.piglatin.core.Word
The payload that can be associated with a constraint violation.
PhraseTranslator - Class in lv.id.jc.piglatin.core
The PhraseTranslator class translates a phrase to Pig Latin.
PhraseTranslator(Function<String, Matcher>, UnaryOperator<String>) - Constructor for class lv.id.jc.piglatin.core.PhraseTranslator
Constructs a new PhraseTranslator.
PigLatinApi - Interface in lv.id.jc.piglatin.api
 
PigLatinController - Class in lv.id.jc.piglatin.controller
PigLatinController handles translation requests for translating English sentences to Pig Latin.
PigLatinController(TranslationService) - Constructor for class lv.id.jc.piglatin.controller.PigLatinController
 
PigLatinRestApplication - Class in lv.id.jc.piglatin
The main class for the Pig Latin REST application.
PigLatinRestApplication() - Constructor for class lv.id.jc.piglatin.PigLatinRestApplication
 

R

reset() - Method in class lv.id.jc.piglatin.actuator.TranslationCountEndpoint
Resets the translation counts to zero.

S

sentence(String) - Method in class lv.id.jc.piglatin.model.TranslationRequest
 
sentence(String) - Method in class lv.id.jc.piglatin.model.TranslationResponse
 
set(int) - Method in class lv.id.jc.piglatin.actuator.TranslationCountEndpoint
Sets the translation counts to the specified value.
setError(String) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
setExampleResponse(NativeWebRequest, String, String) - Static method in class lv.id.jc.piglatin.api.ApiUtil
 
setPath(String) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
setSentence(String) - Method in class lv.id.jc.piglatin.model.TranslationRequest
 
setSentence(String) - Method in class lv.id.jc.piglatin.model.TranslationResponse
 
setStatus(Integer) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
setTimestamp(OffsetDateTime) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
status(Integer) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
StatusCodeSupplier - Class in lv.id.jc.piglatin.actuator
 
StatusCodeSupplier(HttpClient) - Constructor for class lv.id.jc.piglatin.actuator.StatusCodeSupplier
 

T

timestamp(OffsetDateTime) - Method in class lv.id.jc.piglatin.model.Translate400Response
 
toString() - Method in class lv.id.jc.piglatin.model.Translate400Response
 
toString() - Method in class lv.id.jc.piglatin.model.TranslationRequest
 
toString() - Method in class lv.id.jc.piglatin.model.TranslationResponse
 
translate(String) - Method in class lv.id.jc.piglatin.service.TranslationService
Translates a given text into Pig Latin.
translate(TranslationRequest) - Method in interface lv.id.jc.piglatin.api.PigLatinApi
POST /pig-latin : Translate text to Pig Latin Translate English text to Pig Latin following the rules described in the [description](#/info/description).
translate(TranslationRequest) - Method in class lv.id.jc.piglatin.controller.PigLatinController
 
Translate400Response - Class in lv.id.jc.piglatin.model
Translate400Response
Translate400Response() - Constructor for class lv.id.jc.piglatin.model.Translate400Response
 
TranslationCountEndpoint - Class in lv.id.jc.piglatin.actuator
This class represents an endpoint for counting translations.
TranslationCountEndpoint(AtomicInteger) - Constructor for class lv.id.jc.piglatin.actuator.TranslationCountEndpoint
 
translationCounter() - Method in class lv.id.jc.piglatin.PigLatinRestApplication
Returns an AtomicInteger object representing a counter for translations.
TranslationRequest - Class in lv.id.jc.piglatin.model
The request body contains the English sentence for translation.
TranslationRequest() - Constructor for class lv.id.jc.piglatin.model.TranslationRequest
 
TranslationRequest(String) - Constructor for class lv.id.jc.piglatin.model.TranslationRequest
Constructor with only required parameters
TranslationResponse - Class in lv.id.jc.piglatin.model
The response body contains the translated sentence in Pig Latin.
TranslationResponse() - Constructor for class lv.id.jc.piglatin.model.TranslationResponse
 
TranslationResponse(String) - Constructor for class lv.id.jc.piglatin.model.TranslationResponse
Constructor with only required parameters
TranslationService - Class in lv.id.jc.piglatin.service
The TranslationService class provides a service for translating English sentences to Pig Latin.
TranslationService(UnaryOperator<String>, AtomicInteger) - Constructor for class lv.id.jc.piglatin.service.TranslationService
 

W

Word - Annotation Interface in lv.id.jc.piglatin.core
A single word.
WordsMatcher - Class in lv.id.jc.piglatin.core
This class is responsible for matching words in a given phrase.
WordsMatcher() - Constructor for class lv.id.jc.piglatin.core.WordsMatcher
 
WordTranslator - Class in lv.id.jc.piglatin.core
This class is responsible for translating words to Pig Latin.
WordTranslator() - Constructor for class lv.id.jc.piglatin.core.WordTranslator
 
A B C E G H L M P R S T W 
All Classes and Interfaces|All Packages