Package org.ehrbase.rest.util
Class InternalResponse<T>
- java.lang.Object
-
- org.ehrbase.rest.util.InternalResponse<T>
-
- Type Parameters:
T-
public class InternalResponse<T> extends Object
Wrapper class to allow internal creation of response data classes with access to their headers, necessary to build different responses based on the response data.
-
-
Constructor Summary
Constructors Constructor Description InternalResponse(T responseData, org.springframework.http.HttpHeaders headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.HttpHeadersgetHeaders()TgetResponseData()voidsetHeaders(org.springframework.http.HttpHeaders headers)voidsetResponseData(T responseData)
-
-
-
Constructor Detail
-
InternalResponse
public InternalResponse(T responseData, org.springframework.http.HttpHeaders headers)
-
-