Klasse ProcessorService

java.lang.Object
de.dlr.proseo.ui.gui.service.ProcessorService

@Service public class ProcessorService extends Object
A bridge between the GUI frontend and the backend services related to processors. It provides methods to interact with processor-related functionalities by making HTTP requests to the appropriate endpoints.
Autor:
David Mazo
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.springframework.web.reactive.function.client.WebClient.ResponseSpec
    delete(String processorClassId)
    Delete a processor class by id
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    get(String processorName)
    Gets a processor class by its name
    org.springframework.web.reactive.function.client.WebClient.ResponseSpec
    get(String missionCode, String processorName, String processorVersion)
    Get a processor by processor class name and processor version
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    getById(String processorId)
    Get a processor class by its database ID
    org.springframework.web.reactive.function.client.WebClient.ResponseSpec
    patch(String processorClassId, String missionCode, String processorName, String[] productClasses)
    Update a processor class by id
    reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse>
    post(String missionCode, String processorName, String[] productClasses)
    Create a processor class

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • ProcessorService

      public ProcessorService()
  • Methodendetails

    • get

      public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> get(String processorName)
      Gets a processor class by its name
      Parameter:
      processorName - the processor class name to search for
      Gibt zurück:
      a Mono<ClientResponse> providing access to the response status and headers, and as well as methods to consume the response body
    • getById

      public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> getById(String processorId)
      Get a processor class by its database ID
      Parameter:
      processorId - the database ID to search for
      Gibt zurück:
      a Mono<ClientResponse> providing access to the response status and headers, and as well as methods to consume the response body
    • post

      public reactor.core.publisher.Mono<org.springframework.web.reactive.function.client.ClientResponse> post(String missionCode, String processorName, String[] productClasses)
      Create a processor class
      Parameter:
      missionCode - the code of the mission to which the new processor class belongs
      processorName - user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a mission
      productClasses - the product classes a processor of this class can generate
      Gibt zurück:
      a Mono<ClientResponse> providing access to the response status and headers, and as well as methods to consume the response body TODO verify
    • patch

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec patch(String processorClassId, String missionCode, String processorName, String[] productClasses)
      Update a processor class by id
      Parameter:
      processorClassId - database ID of processor class to update
      missionCode - the code of the mission to which the new processor class belongs
      processorName - user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a mission
      productClasses - the product classes a processor of this class can generate
      Gibt zurück:
      the updated processor class TODO verify
    • delete

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec delete(String processorClassId)
      Delete a processor class by id
      Parameter:
      processorClassId - of Processor Class to be removed
      Gibt zurück:
      a ResponseSpec that the caller can subscribe to, e.g. for extracting the response body or handling errors TODO verify
    • get

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(String missionCode, String processorName, String processorVersion)
      Get a processor by processor class name and processor version
      Parameter:
      missionCode - the mission of the processor
      processorName - the processor class name
      processorVersion - the processor version
      Gibt zurück:
      a ResponseSpec that the caller can subscribe to, e.g. for extracting the response body or handling errors TODO verify