Interface Processable
- All Known Implementing Classes:
InsertService
,SelectService
public interface Processable
Implemented by services that can be called directly to return a stream of
data without generating an HTTP response. Primarily used internally to allow
internal service calls to work. (e.g.
virge:service
tag and
HypermediaVerb
service calls.- Author:
- jbanes
-
Method Summary
Modifier and TypeMethodDescriptionIterable
<com.invirgance.convirgance.json.JSONObject> process
(HttpRequest request) Processes an HTTP request to retrieve data without generating a response.
-
Method Details
-
process
Processes an HTTP request to retrieve data without generating a response.This method implements the core data retrieval pipeline and can be used by other components that need access to the data without writing to a response.
- Extract parameters from the HTTP request
- Store parameters in thread-local storage for access by other components
- Use the configured binding to retrieve data based on the parameters
- Apply any configured transformers to the data
- Parameters:
request
- The HTTP request containing the parameters- Returns:
- An iterable of JSONObjects containing the retrieved and transformed data
-