Package backtraceio.library.common
Class RequestHelper
java.lang.Object
backtraceio.library.common.RequestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addEndOfRequest
(OutputStream outputStream) Write to output data stream string which ending the requeststatic void
addJson
(OutputStream outputStream, String json) Write JSON string to output data steamstatic String
Get Content-Type of request
-
Constructor Details
-
RequestHelper
public RequestHelper()
-
-
Method Details
-
getContentType
Get Content-Type of request- Returns:
- string with content type and information about boundary
-
addJson
Write JSON string to output data steam- Parameters:
outputStream
- output data streamjson
- JSON string with BacktraceData object- Throws:
IOException
-
addEndOfRequest
Write to output data stream string which ending the request- Parameters:
outputStream
- output data stream- Throws:
IOException
-