Package ubic.gemma.rest.util
Class ResponseDataObject<T>
java.lang.Object
ubic.gemma.rest.util.ResponseDataObject<T>
- Direct Known Subclasses:
AnalysisResultSetsWebService.PaginatedResultsResponseDataObjectDifferentialExpressionAnalysisResultSetValueObject,DatasetsWebService.ResponseDataObjectCellTypeAssignmentValueObject,DatasetsWebService.ResponseDataObjectExpressionExperimentValueObject,DatasetsWebService.ResponseDataObjectListCellLevelCharacteristicsValueObject,DatasetsWebService.ResponseDataObjectSingleCellDimensionValueObject,FilteredResponseDataObject,PaginatedResponseDataObject,SearchWebService.SearchResultsResponseDataObject
Wrapper for a non-error response payload compliant with the
Google JSON style-guide
- Author:
- tesarst
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S extends ResponseDataObject<T>>
SaddWarnings(Iterable<Throwable> throwables, String location, LocationType locationType) Add a bunch of warnings togetWarnings().getData()A list of warnings applicable to the request.
-
Constructor Details
-
ResponseDataObject
- Parameters:
payload- the data to be serialised and returned as the response payload.
-
-
Method Details
-
addWarnings
public <S extends ResponseDataObject<T>> S addWarnings(Iterable<Throwable> throwables, String location, LocationType locationType) Add a bunch of warnings togetWarnings(). -
getData
-
getWarnings
A list of warnings applicable to the request.This is an extension to the Google JSON style-guide.
-