Class RequestBodyOrigin
java.lang.Object
com.invirgance.convirgance.web.origin.RequestBodyOrigin
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.invirgance.convirgance.source.Source
getOrigin
(HttpRequest request, com.invirgance.convirgance.json.JSONObject parameters) Gets aSource
that provides access to the request'sInputStream
.
-
Constructor Details
-
RequestBodyOrigin
public RequestBodyOrigin()
-
-
Method Details
-
getOrigin
public com.invirgance.convirgance.source.Source getOrigin(HttpRequest request, com.invirgance.convirgance.json.JSONObject parameters) Gets aSource
that provides access to the request'sInputStream
.- Specified by:
getOrigin
in interfaceOrigin
- Parameters:
request
- TheHttpRequest
containing the body contentparameters
- Required by the Origin interface but not used in this implementation- Returns:
- A Source wrapping the request's input stream
-