public class HttpBody extends Object
Modifier and Type | Method and Description |
---|---|
static HttpBody |
bytes(byte[] bytes,
String contentType) |
static HttpBody |
formFields(MultiValuedMap fields,
String contentType) |
byte[] |
getBytes() |
String |
getContentType() |
Map<String,String[]> |
getParameters() |
List<MultiPartItem> |
getParts() |
InputStream |
getStream() |
boolean |
isMultiPart() |
boolean |
isStream() |
boolean |
isUrlEncoded() |
static HttpBody |
multiPart(List<MultiPartItem> parts,
String contentType) |
static HttpBody |
stream(InputStream stream,
String contentType) |
static HttpBody |
string(String value,
String contentType) |
public boolean isStream()
public boolean isUrlEncoded()
public boolean isMultiPart()
public byte[] getBytes()
public InputStream getStream()
public String getContentType()
public List<MultiPartItem> getParts()
public static HttpBody stream(InputStream stream, String contentType)
public static HttpBody formFields(MultiValuedMap fields, String contentType)
public static HttpBody multiPart(List<MultiPartItem> parts, String contentType)
Copyright © 2018. All rights reserved.