Class RequestBodyOrigin

java.lang.Object
com.invirgance.convirgance.web.origin.RequestBodyOrigin
All Implemented Interfaces:
Origin

@Wiring public class RequestBodyOrigin extends Object implements Origin
Provides direct access to the HTTP request body. RequestBodyOrigin creates a Source that wraps the input stream of the HTTP request, allowing direct access to the raw request body content.
 Use this origin when you need to:
 - Process JSON or XML data sent in request bodies
 - Handle file uploads or binary content
 - Create REST API endpoints for data submission
 
Author:
jbanes
  • Constructor Details

    • RequestBodyOrigin

      public RequestBodyOrigin()
  • Method Details

    • getOrigin

      public com.invirgance.convirgance.source.Source getOrigin(HttpRequest request, com.invirgance.convirgance.json.JSONObject parameters)
      Gets a Source that provides access to the request's InputStream.
      Specified by:
      getOrigin in interface Origin
      Parameters:
      request - The HttpRequest containing the body content
      parameters - Required by the Origin interface but not used in this implementation
      Returns:
      A Source wrapping the request's input stream