Package com.microsoft.rest
Class ServiceResponseBuilder.Factory
- java.lang.Object
-
- com.microsoft.rest.ServiceResponseBuilder.Factory
-
- All Implemented Interfaces:
ResponseBuilder.Factory
- Enclosing class:
- ServiceResponseBuilder<T,E extends RestException>
public static final class ServiceResponseBuilder.Factory extends Object implements ResponseBuilder.Factory
A factory to create a service response builder.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,E extends RestException>
ServiceResponseBuilder<T,E>newInstance(SerializerAdapter<?> serializerAdapter)Returns a response builder instance.
-
-
-
Method Detail
-
newInstance
public <T,E extends RestException> ServiceResponseBuilder<T,E> newInstance(SerializerAdapter<?> serializerAdapter)
Description copied from interface:ResponseBuilder.FactoryReturns a response builder instance. This can be created new or cached.- Specified by:
newInstancein interfaceResponseBuilder.Factory- 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
-
-