ResponseBuilder.Factory Interface

public static interface ResponseBuilder.Factory

A factory that creates a builder based on the return type and the exception type.

Method Summary

Modifier and Type Method and Description
abstract ResponseBuilder<T,E> <T,E>newInstance(SerializerAdapter<?> serializerAdapter)

Returns a response builder instance.

Method Details

<T,E>newInstance

public abstract ResponseBuilder newInstance(SerializerAdapter serializerAdapter)

Returns a response builder instance. This can be created new or cached.

Parameters:

serializerAdapter - the serializer adapter to deserialize the response

Returns:

a response builder instance

Applies to