public class ImmutableHttpMessage extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ImmutableHttpMessage.Base64ByteSource |
static interface |
ImmutableHttpMessage.HttpContentSource |
static class |
ImmutableHttpMessage.MessageBuilder<B extends ImmutableHttpMessage.MessageBuilder> |
protected static class |
ImmutableHttpMessage.OriginalByteSource |
protected static class |
ImmutableHttpMessage.OriginalCharSource |
| Modifier and Type | Field and Description |
|---|---|
static Charset |
DEFAULT_HTTP_CHARSET |
com.google.common.collect.ImmutableMultimap<String,String> |
headers |
| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableHttpMessage(ImmutableHttpMessage.MessageBuilder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
protected static com.google.common.io.CharSource |
encodeToBase64(com.google.common.io.ByteSource byteSource) |
protected static com.google.common.io.ByteSource |
encodeToBytes(com.google.common.io.CharSource charSource,
Supplier<Charset> charsetSupplier) |
com.google.common.io.ByteSource |
getContentAsBytes() |
com.google.common.io.CharSource |
getContentAsChars() |
com.google.common.net.MediaType |
getContentType() |
String |
getFirstHeaderValue(String headerName) |
Stream<Map.Entry<String,String>> |
getHeaders(String headerName)
Finds headers by name, case-insensitively.
|
Stream<String> |
getHeaderValues(String headerName) |
protected com.google.common.base.MoreObjects.ToStringHelper |
toStringHelper() |
public static final Charset DEFAULT_HTTP_CHARSET
protected ImmutableHttpMessage(ImmutableHttpMessage.MessageBuilder<?> builder)
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
public com.google.common.io.ByteSource getContentAsBytes()
public com.google.common.io.CharSource getContentAsChars()
protected static com.google.common.io.CharSource encodeToBase64(com.google.common.io.ByteSource byteSource)
protected static com.google.common.io.ByteSource encodeToBytes(com.google.common.io.CharSource charSource,
Supplier<Charset> charsetSupplier)
public Stream<Map.Entry<String,String>> getHeaders(String headerName)
headerName - header name@Nullable public com.google.common.net.MediaType getContentType()
Copyright © 2016–2018. All rights reserved.