Package de.dlr.proseo.ui.gui.service
Klasse ProcessorService
java.lang.Object
de.dlr.proseo.ui.gui.service.ProcessorService
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 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.web.reactive.function.client.WebClient.ResponseSpec
Delete a processor class by idreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> Gets a processor class by its nameorg.springframework.web.reactive.function.client.WebClient.ResponseSpec
Get a processor by processor class name and processor versionreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> Get a processor class by its database IDorg.springframework.web.reactive.function.client.WebClient.ResponseSpec
Update a processor class by idreactor.core.publisher.Mono
<org.springframework.web.reactive.function.client.ClientResponse> Create a processor class
-
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 belongsprocessorName
- user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a missionproductClasses
- 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 updatemissionCode
- the code of the mission to which the new processor class belongsprocessorName
- user-defined processor class name (Processor_Name from Generic IPF Interface Specifications, sec. 4.1.3), unique within a missionproductClasses
- 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 processorprocessorName
- the processor class nameprocessorVersion
- 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
-