com.basho.riak.client.util
Class Multipart

java.lang.Object
  extended by com.basho.riak.client.util.Multipart

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.Multipart instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class Multipart
extends Object

Represents a multipart entity as described here: http://tools.ietf.org/html/rfc2046#section-5.1

See Also:
Multipart

Nested Class Summary
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 Summary
Multipart()
          Deprecated.  
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multipart

public Multipart()
Deprecated. 
Method Detail

parse

public static List<Multipart.Part> parse(Map<String,String> headers,
                                         byte[] body)
Deprecated. 
Parses a multipart message or a multipart subpart of a multipart message.

Returns:
A list of the parts parsed into headers and body of this multipart message

parseHeaders

public 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

Parameters:
s - The header blob
Returns:
Map of header names to values

getBoundary

public static String getBoundary(String contentType)
Deprecated. 
Given a content type value, get the "boundary" parameter

Parameters:
contentType - Content type value with boundary parameter. Should be of the form "type/subtype; boundary=foobar; param=value"
Returns:
Value of the boundary parameter


Copyright © 2012. All Rights Reserved.