Class BatchResponseWriter
- java.lang.Object
-
- org.apache.olingo.odata2.core.batch.BatchResponseWriter
-
public class BatchResponseWriter extends Object
-
-
Constructor Summary
Constructors Constructor Description BatchResponseWriter()Creates a BatchResponseWriter which write theentityas a String with default charset (see BatchHelper.DEFAULT_CHARSET).BatchResponseWriter(boolean writeEntityAsInputStream)Creates a BatchResponseWriter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ODataResponsewriteResponse(List<BatchResponsePart> batchResponseParts)
-
-
-
Constructor Detail
-
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 Detail
-
writeResponse
public ODataResponse writeResponse(List<BatchResponsePart> batchResponseParts) throws BatchException
- Throws:
BatchException
-
-