Package ubic.gemma.rest.util
Class ResponseDataObject<T>
- java.lang.Object
-
- ubic.gemma.rest.util.ResponseDataObject<T>
-
- Direct Known Subclasses:
AnalysisResultSetsWebService.PaginatedResultsResponseDataObjectDifferentialExpressionAnalysisResultSetValueObject
,FilteredResponseDataObject
,PaginatedResponseDataObject
,SearchWebService.SearchResultsResponseDataObject
public class ResponseDataObject<T> extends Object
Wrapper for a non-error response payload compliant with the Google JSON style-guide- Author:
- tesarst
-
-
Constructor Summary
Constructors Constructor Description ResponseDataObject(T payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends ResponseDataObject<T>>
SaddWarnings(Iterable<Throwable> throwables, String location, LocationType locationType)
Add a bunch of warnings to#getWarnings()
.
-
-
-
Constructor Detail
-
ResponseDataObject
public ResponseDataObject(T payload)
- Parameters:
payload
- the data to be serialised and returned as the response payload.
-
-
Method Detail
-
addWarnings
public <S extends ResponseDataObject<T>> S addWarnings(Iterable<Throwable> throwables, String location, LocationType locationType)
Add a bunch of warnings to#getWarnings()
.
-
-