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