Class SolMapsResponseImpl
java.lang.Object
se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase<Iterable<SolutionMapping>>
se.liu.ida.hefquin.federation.access.impl.response.SolMapsResponseImpl
- All Implemented Interfaces:
DataRetrievalResponse<Iterable<SolutionMapping>>,SolMapsResponse
public class SolMapsResponseImpl
extends DataRetrievalResponseBase<Iterable<SolutionMapping>>
implements SolMapsResponse
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase
data, errorDescription, errorStatusCode, exception, requestStartTime, retrievalEndTime -
Constructor Summary
ConstructorsConstructorDescriptionSolMapsResponseImpl(int errorStatusCode, String errorDescription, Date requestStartTime) Constructs a response for the case that the response was an error message.SolMapsResponseImpl(int errorStatusCode, String errorDescription, Date requestStartTime, Date retrievalEndTime) Constructs a response for the case that the response was an error message.SolMapsResponseImpl(Exception exception, Date requestStartTime) Constructs a defective response for the case that an exception was thrown when producing the response.SolMapsResponseImpl(Exception exception, Date requestStartTime, Date retrievalEndTime) Constructs a defective response for the case that an exception was thrown when producing the response.SolMapsResponseImpl(List<SolutionMapping> solMaps, Date requestStartTime) Constructs a response with the given solution mappings and request start time.SolMapsResponseImpl(List<SolutionMapping> solMaps, Date requestStartTime, Date retrievalEndTime) Constructs a response with the given solution mappings, request start time, and retrieval end time. -
Method Summary
Methods inherited from class se.liu.ida.hefquin.federation.access.impl.response.DataRetrievalResponseBase
getErrorDescription, getErrorStatusCode, getException, getRequestStartTime, getResponseData, getRetrievalEndTime, throwExceptionIfNoResponseDataMethods 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.DataRetrievalResponse
getErrorDescription, getErrorStatusCode, getException, getRequestDuration, getRequestStartTime, getResponseData, getRetrievalEndTime, isDefective, isErrorMethods inherited from interface se.liu.ida.hefquin.federation.access.SolMapsResponse
getSize
-
Constructor Details
-
SolMapsResponseImpl
Constructs a response with the given solution mappings 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:
solMaps- the list of solution mappings contained in this response (must not benull)requestStartTime- the time at which the request was initiated (must not benull)
-
SolMapsResponseImpl
public SolMapsResponseImpl(List<SolutionMapping> solMaps, Date requestStartTime, Date retrievalEndTime) Constructs a response with the given solution mappings, request start time, and retrieval end time. This constructor assumes no error occurred.- Parameters:
solMaps- the list of solution mappings 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)
-
SolMapsResponseImpl
Constructs a response for the case that the response was an error message. The retrieval end time is automatically set to the current time at the moment of construction.- Parameters:
errorStatusCode- the HTTP status code of the error message (must not benull)errorDescription- a short description of the error (may benull)requestStartTime- the time at which the request was initiated (must not benull)
-
SolMapsResponseImpl
public SolMapsResponseImpl(int errorStatusCode, String errorDescription, Date requestStartTime, Date retrievalEndTime) Constructs a response for the case that the response was an error message.- Parameters:
errorStatusCode- the HTTP status code of the error message (must not benull)errorDescription- a short description of the error (may 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)
-
SolMapsResponseImpl
Constructs a defective response for the case that an exception was thrown when producing the response. The retrieval end time is automatically set to the current time at the moment of construction.- Parameters:
exception- the exception (must not benull)requestStartTime- the time at which the request was initiated (must not benull)
-
SolMapsResponseImpl
Constructs a defective response for the case that an exception was thrown when producing the response.- Parameters:
exception- the exception (must not benull)requestStartTime- the time at which the request was initiated (must not benull)retrievalEndTime- the time at which the creation of this response resulted in an exception (must not benull)
-