WARNING: This class will be REMOVED in the next version.
@Deprecated public class Multipart extends Object
Multipart
Modifier and Type | Class and Description |
---|---|
static class |
Multipart.Part
Deprecated.
with the addition of a protocol buffers client in 0.14 all
the existing REST client code should be in client.http.* this
class has therefore been moved. Please use
com.basho.riak.client.http.util.ClientHelper instead.
WARNING: This class will be REMOVED in the next version. |
Constructor and Description |
---|
Multipart()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
getBoundary(String contentType)
Deprecated.
Given a content type value, get the "boundary" parameter
|
static List<Multipart.Part> |
parse(Map<String,String> headers,
byte[] body)
Deprecated.
Parses a multipart message or a multipart subpart of a multipart message.
|
static Map<String,String> |
parseHeaders(String s)
Deprecated.
Parse a block of header lines as defined here:
http://tools.ietf.org/html/rfc822#section-3.2
|
public static List<Multipart.Part> parse(Map<String,String> headers, byte[] body)
public static Map<String,String> parseHeaders(String s)
s
- The header blobpublic static String getBoundary(String contentType)
contentType
- Content type value with boundary parameter. Should be of the
form "type/subtype; boundary=foobar; param=value"Copyright © 2014. All Rights Reserved.