Package com.microsoft.rest.protocol
Interface ResponseBuilder.Factory
-
- All Known Implementing Classes:
ServiceResponseBuilder.Factory
- Enclosing interface:
- ResponseBuilder<T,E extends RestException>
public static interface ResponseBuilder.FactoryA factory that creates a builder based on the return type and the exception type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,E extends RestException>
ResponseBuilder<T,E>newInstance(SerializerAdapter<?> serializerAdapter)Returns a response builder instance.
-
-
-
Method Detail
-
newInstance
<T,E extends RestException> ResponseBuilder<T,E> newInstance(SerializerAdapter<?> serializerAdapter)
Returns a response builder instance. This can be created new or cached.- Type Parameters:
T- the type of the return objectE- the type of the exception- Parameters:
serializerAdapter- the serializer adapter to deserialize the response- Returns:
- a response builder instance
-
-