Class BatchResponseWriter
java.lang.Object
org.apache.olingo.odata2.core.batch.BatchResponseWriter
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a BatchResponseWriter which write theentityas a String with default charset (see BatchHelper.DEFAULT_CHARSET).BatchResponseWriter(boolean writeEntityAsInputStream) Creates a BatchResponseWriter -
Method Summary
-
Constructor Details
-
BatchResponseWriter
public BatchResponseWriter()Creates a BatchResponseWriter which write theentityas a String with default charset (see BatchHelper.DEFAULT_CHARSET). -
BatchResponseWriter
public BatchResponseWriter(boolean writeEntityAsInputStream) Creates a BatchResponseWriter- Parameters:
writeEntityAsInputStream- iftruetheentityis set a InputStream. iffalsetheentityis set a String with default charset (see BatchHelper.DEFAULT_CHARSET).
-
-
Method Details
-
writeResponse
public ODataResponse writeResponse(List<BatchResponsePart> batchResponseParts) throws BatchException - Throws:
BatchException
-