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