public class ResponseConversionFunctionFactory extends Object
Factory class to create the appropriate type of Function to convert a REST Response into its final form.
Constructor and Description |
---|
ResponseConversionFunctionFactory() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.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> com.google.common.base.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> com.google.common.base.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.
|
public com.google.common.base.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 <T> com.google.common.base.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> com.google.common.base.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.Copyright © 2016–2022. All rights reserved.