public class ResponseConversionFunctionFactoryV2 extends Object
Factory class to create the appropriate type of Function to convert a REST Response into its final form.
| Constructor and Description |
|---|
ResponseConversionFunctionFactoryV2() |
| Modifier and Type | Method and 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.
|
<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.
|
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.
|
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.
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.
serviceDetails - service details of the Responsepublic <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.
clazz - The type of instance to convert to.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.
clazz - The type of instance to convert to.serviceDetails - service details of the Responsepublic <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.
type - The generic type to convert to.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.
type - The generic type to convert to.serviceDetails - service details of the ResponseCopyright © 2016–2022. All rights reserved.