com.atlassian.httpclient.api
Interface EntityBuilder.Entity

Enclosing interface:
EntityBuilder

public static interface EntityBuilder.Entity

Represents a built entity consisting of a set of HTTP headers and an InputStream.


Method Summary
 Map<String,String> getHeaders()
          Gets all HTTP headers for the represented entity.
 InputStream getInputStream()
          Gets the input stream for the built entity.
 

Method Detail

getHeaders

Map<String,String> getHeaders()
Gets all HTTP headers for the represented entity. At a minimum, this should include an appropriate "Content-Type" header.

Returns:
A map of all HTTP headers for the entity

getInputStream

InputStream getInputStream()
Gets the input stream for the built entity.

Returns:
An entity input stream


Copyright © 2012–2015 Atlassian. All rights reserved.