Class PigLatinRestApplication

java.lang.Object
lv.id.jc.piglatin.PigLatinRestApplication

@SpringBootApplication public class PigLatinRestApplication extends Object
The main class for the Pig Latin REST application. This class is responsible for starting the application and defining beans.
  • Constructor Details

    • PigLatinRestApplication

      public PigLatinRestApplication()
  • Method Details

    • main

      public static void main(String[] args)
    • httpClient

      @Bean public HttpClient httpClient()
      Returns a new instance of HttpClient.
      Returns:
      the new instance of HttpClient
    • translationCounter

      @Bean public AtomicInteger translationCounter()
      Returns an AtomicInteger object representing a counter for translations. The counter starts at 0.
      Returns:
      the AtomicInteger object representing the translation counter