Class BatchHelper
- java.lang.Object
-
- org.apache.olingo.odata2.core.batch.BatchHelper
-
public class BatchHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBINARY_ENCODINGstatic CharsetDEFAULT_CHARSETstatic StringDEFAULT_ENCODINGstatic StringHTTP_CONTENT_IDstatic StringHTTP_CONTENT_TRANSFER_ENCODINGstatic StringISO_ENCODINGstatic StringMIME_HEADER_CONTENT_IDstatic StringREQUEST_HEADER_CONTENT_IDstatic StringUTF8_ENCODING
-
Constructor Summary
Constructors Constructor Description BatchHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharsetextractCharset(Map<String,String> headers)static CharsetextractCharset(ContentType contentType)protected static StringgenerateBoundary(String value)protected static byte[]getBytes(String body)
-
-
-
Field Detail
-
BINARY_ENCODING
public static final String BINARY_ENCODING
- See Also:
- Constant Field Values
-
UTF8_ENCODING
public static final String UTF8_ENCODING
- See Also:
- Constant Field Values
-
ISO_ENCODING
public static final String ISO_ENCODING
- See Also:
- Constant Field Values
-
DEFAULT_ENCODING
public static String DEFAULT_ENCODING
-
HTTP_CONTENT_TRANSFER_ENCODING
public static final String HTTP_CONTENT_TRANSFER_ENCODING
- See Also:
- Constant Field Values
-
HTTP_CONTENT_ID
public static final String HTTP_CONTENT_ID
- See Also:
- Constant Field Values
-
MIME_HEADER_CONTENT_ID
public static final String MIME_HEADER_CONTENT_ID
- See Also:
- Constant Field Values
-
REQUEST_HEADER_CONTENT_ID
public static final String REQUEST_HEADER_CONTENT_ID
- See Also:
- Constant Field Values
-
DEFAULT_CHARSET
public static Charset DEFAULT_CHARSET
-
-
Method Detail
-
getBytes
protected static byte[] getBytes(String body)
-
extractCharset
public static Charset extractCharset(ContentType contentType)
-
-