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 Type
    Method
    Description
    Iterable<com.invirgance.convirgance.json.JSONObject>
    Processes an HTTP request to retrieve data without generating a response.
  • Method Details

    • process

      Iterable<com.invirgance.convirgance.json.JSONObject> process(HttpRequest request)
      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.

      1. Extract parameters from the HTTP request
      2. Store parameters in thread-local storage for access by other components
      3. Use the configured binding to retrieve data based on the parameters
      4. 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