|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.http.util.Multipart
public class Multipart
Represents a multipart entity as described here: http://tools.ietf.org/html/rfc2046#section-5.1
| Nested Class Summary | |
|---|---|
static class |
Multipart.Part
A single part of a multipart entity |
| Constructor Summary | |
|---|---|
Multipart()
|
|
| Method Summary | |
|---|---|
static String |
getBoundary(String contentType)
Given a content type value, get the "boundary" parameter |
static List<Multipart.Part> |
parse(Map<String,String> headers,
byte[] body)
Parses a multipart message or a multipart subpart of a multipart message. |
static Map<String,String> |
parseHeaders(String s)
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 |
|---|
public Multipart()
| Method Detail |
|---|
public static List<Multipart.Part> parse(Map<String,String> headers,
byte[] body)
public static Map<String,String> parseHeaders(String s)
s - The header blob
public static String getBoundary(String contentType)
contentType - Content type value with boundary parameter. Should be of the
form "type/subtype; boundary=foobar; param=value"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||