public interface HeadersCodec
| Modifier and Type | Field and Description |
|---|---|
static HeadersCodec |
DEFAULT_INSTANCE |
static Map<String,HeadersCodec> |
INSTANCES |
| Modifier and Type | Method and Description |
|---|---|
String |
contentType() |
Map<String,String> |
decode(InputStream stream) |
void |
encode(OutputStream stream,
Map<String,String> headers) |
static HeadersCodec |
getInstance(String contentType) |
static HeadersCodec |
loadInstance(String contentType)
Returns
HeadersCodec by given contentType. |
static final HeadersCodec DEFAULT_INSTANCE
static final Map<String,HeadersCodec> INSTANCES
static HeadersCodec getInstance(String contentType)
static HeadersCodec loadInstance(String contentType)
HeadersCodec by given contentType.contentType - contentType (required)HeadersCodec by given contentType (or throws IllegalArgumentException
is thrown if not exist)String contentType()
void encode(OutputStream stream, Map<String,String> headers) throws IOException
IOExceptionMap<String,String> decode(InputStream stream) throws IOException
IOExceptionCopyright © 2015–2021. All rights reserved.