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