Class CachedCardinalityResponseImpl
java.lang.Object
se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase<Integer>
se.liu.ida.hefquin.federation.access.impl.response.CachedCardinalityResponseImpl
- All Implemented Interfaces:
CardinalityResponse,DataRetrievalResponse<Integer>
public class CachedCardinalityResponseImpl
extends DataRetrievalResponseBase<Integer>
implements CardinalityResponse
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase
data, errorDescription, errorStatusCode -
Constructor Summary
ConstructorsConstructorDescriptionCachedCardinalityResponseImpl(int cardinality, Date requestStartTime) Constructs a response with the given cardinality and request start time.CachedCardinalityResponseImpl(int cardinality, Date requestStartTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given cardinality, request start time, and error details.CachedCardinalityResponseImpl(int cardinality, Date requestStartTime, Date retrievalEndTime) Constructs a response with the given cardinality, request start time, and request end time.CachedCardinalityResponseImpl(int cardinality, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given cardinality, request start time, retrieval end time, and error details. -
Method Summary
Methods inherited from class se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase
getErrorDescription, getErrorStatusCode, getRequestStartTime, getResponseData, getRetrievalEndTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.federation.access.CardinalityResponse
getCardinalityMethods inherited from interface se.liu.ida.hefquin.federation.access.DataRetrievalResponse
getErrorDescription, getErrorStatusCode, getRequestDuration, getRequestStartTime, getResponseData, getRetrievalEndTime, isError
-
Constructor Details
-
CachedCardinalityResponseImpl
Constructs a response with the given cardinality and request start time. The retrieval end time is automatically set to the current time at the moment of construction. This constructor assumes no error occurred.- Parameters:
cardinality- the data contained in this response (must not benull)requestStartTime- the time at which the request was initiated (must not benull)
-
CachedCardinalityResponseImpl
Constructs a response with the given cardinality, request start time, and request end time. This constructor assumes no error occurred.- Parameters:
cardinality- the data contained in this response (must not benull)requestStartTime- the time at which the request was initiated (must not benull)retrievalEndTime- the time at which the retrieval of this response was completed (must not benull)
-
CachedCardinalityResponseImpl
public CachedCardinalityResponseImpl(int cardinality, Date requestStartTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given cardinality, request start time, and error details. The retrieval end time is automatically set to the current time at the moment of construction.- Parameters:
cardinality- the data contained in this response (must not benull)requestStartTime- the time at which the request was initiated (must not benull)errorStatusCode- the HTTP status code representing an error, ornullif no error occurrederrorDescription- a short description of the error, ornullif no error occurred
-
CachedCardinalityResponseImpl
public CachedCardinalityResponseImpl(int cardinality, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given cardinality, request start time, retrieval end time, and error details.- Parameters:
cardinality- the data contained in this response (must not benull)requestStartTime- the time at which the request was initiated (must not benull)retrievalEndTime- the time at which the retrieval of this response was completed (must not benull)errorStatusCode- the HTTP status code representing an error, ornullif no error occurrederrorDescription- a short description of the error, ornullif no error occurred
-