Package v1.sulphurapi.handlers.http
Class ContentTypeHandler
java.lang.Object
v1.sulphurapi.handlers.http.ContentTypeHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateBody
(org.json.JSONObject content, String contentType) Prepare to calculate the body based on provided contentType.
-
Constructor Details
-
ContentTypeHandler
public ContentTypeHandler()Constructor for ContentTypeHandler. Initializes the content type actions for handling different content types.
-
-
Method Details
-
calculateBody
Prepare to calculate the body based on provided contentType. This method will run the appropriate method viaRunnable
interface- Parameters:
content
- the map containing pairs of data to build the body of the callercontentType
- the type to select the appropriate action to run- Returns:
- the calculated body as a String
-