com.basho.riak.client.http.util
Class Multipart.Part

java.lang.Object
  extended by com.basho.riak.client.http.util.Multipart.Part
Enclosing class:
Multipart

public static class Multipart.Part
extends Object

A single part of a multipart entity


Constructor Summary
Multipart.Part(Map<String,String> headers, byte[] body)
           
Multipart.Part(Map<String,String> headers, InputStream body)
           
 
Method Summary
 byte[] getBody()
          Body of this part
 String getBodyAsString()
           
 Map<String,String> getHeaders()
          Headers defined in the part
 InputStream getStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multipart.Part

public Multipart.Part(Map<String,String> headers,
                      byte[] body)

Multipart.Part

public Multipart.Part(Map<String,String> headers,
                      InputStream body)
Method Detail

getHeaders

public Map<String,String> getHeaders()
Headers defined in the part


getBody

public byte[] getBody()
Body of this part


getBodyAsString

public String getBodyAsString()

getStream

public InputStream getStream()


Copyright © 2012. All Rights Reserved.