public static class DefaultResponseCodecs.ByteArrayResponseCodec extends java.lang.Object implements ResponseCodec<byte[]>
ResponseCodec.Factory<T>
Constructor and Description |
---|
ByteArrayResponseCodec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(RestResponse response) |
RestResponse |
encode(RestRequest request,
java.lang.String defaultMimeType,
byte[] response) |
RestResponse |
encodeFault(RestRequest request,
java.lang.String defaultMimeType,
java.lang.Throwable fault) |
public RestResponse encode(RestRequest request, java.lang.String defaultMimeType, byte[] response)
encode
in interface ResponseCodec<byte[]>
public byte[] decode(RestResponse response) throws ServerFault
decode
in interface ResponseCodec<byte[]>
ServerFault
public RestResponse encodeFault(RestRequest request, java.lang.String defaultMimeType, java.lang.Throwable fault)
encodeFault
in interface ResponseCodec<byte[]>
Copyright © 2021. All Rights Reserved.