Package com.oracle.bmc.http.internal
Class ResponseConversionFunctionFactoryV2
- java.lang.Object
-
- com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2
-
public class ResponseConversionFunctionFactoryV2 extends Object
Factory class to create the appropriate type of Function to convert a REST Response into its final form.
-
-
Constructor Summary
Constructors Constructor Description ResponseConversionFunctionFactoryV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<javax.ws.rs.core.Response,WithHeaders<Void>>create()Creates a Function that will not convert the Response into any given type, just return the headers.Function<javax.ws.rs.core.Response,WithHeaders<Void>>create(ServiceDetails serviceDetails)Creates a Function that will not convert the Response into any given type, just return the headers.<T> Function<javax.ws.rs.core.Response,WithHeaders<T>>create(Class<T> clazz)Creates a Function that will convert the Response into the given object type.<T> Function<javax.ws.rs.core.Response,WithHeaders<T>>create(Class<T> clazz, ServiceDetails serviceDetails)Creates a Function that will convert the Response into the given object type.<T> Function<javax.ws.rs.core.Response,WithHeaders<T>>create(javax.ws.rs.core.GenericType<T> type)Creates a Function that will convert the Response into a parameterized collection object, or some other parameterized type.<T> Function<javax.ws.rs.core.Response,WithHeaders<T>>create(javax.ws.rs.core.GenericType<T> type, ServiceDetails serviceDetails)Creates a Function that will convert the Response into a parameterized collection object, or some other parameterized type.
-
-
-
Method Detail
-
create
public Function<javax.ws.rs.core.Response,WithHeaders<Void>> create()
Creates a Function that will not convert the Response into any given type, just return the headers.- Returns:
- A new Function.
-
create
public Function<javax.ws.rs.core.Response,WithHeaders<Void>> create(ServiceDetails serviceDetails)
Creates a Function that will not convert the Response into any given type, just return the headers.- Parameters:
serviceDetails- service details of the Response- Returns:
- A new Function.
-
create
public <T> Function<javax.ws.rs.core.Response,WithHeaders<T>> create(Class<T> clazz)
Creates a Function that will convert the Response into the given object type.- Parameters:
clazz- The type of instance to convert to.- Returns:
- A new Function.
-
create
public <T> Function<javax.ws.rs.core.Response,WithHeaders<T>> create(Class<T> clazz, ServiceDetails serviceDetails)
Creates a Function that will convert the Response into the given object type.- Parameters:
clazz- The type of instance to convert to.serviceDetails- service details of the Response- Returns:
- A new Function.
-
create
public <T> Function<javax.ws.rs.core.Response,WithHeaders<T>> create(javax.ws.rs.core.GenericType<T> type)
Creates a Function that will convert the Response into a parameterized collection object, or some other parameterized type.- Parameters:
type- The generic type to convert to.- Returns:
- A new Function.
-
create
public <T> Function<javax.ws.rs.core.Response,WithHeaders<T>> create(javax.ws.rs.core.GenericType<T> type, ServiceDetails serviceDetails)
Creates a Function that will convert the Response into a parameterized collection object, or some other parameterized type.- Parameters:
type- The generic type to convert to.serviceDetails- service details of the Response- Returns:
- A new Function.
-
-