Class SolMapsResponseImpl
java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.response.DataRetrievalResponseBase<Iterable<SolutionMapping>>
se.liu.ida.hefquin.engine.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.engine.federation.access.impl.response.DataRetrievalResponseBase
data, errorDescription, errorStatusCode
-
Constructor Summary
ConstructorsConstructorDescriptionSolMapsResponseImpl
(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Constructs a response with the given solution mappings, federation member, request, and request start time.SolMapsResponseImpl
(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given solution mappings, federation member, request, request start time, and error details.SolMapsResponseImpl
(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime) Constructs a response with the given solution mappings, federation member, request, request start time, and retrieval end time.SolMapsResponseImpl
(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given solution mappings, federation member, request, request start time, retrieval end time, and error details. -
Method Summary
Methods inherited from class se.liu.ida.hefquin.engine.federation.access.impl.response.DataRetrievalResponseBase
getErrorDescription, getErrorStatusCode, getFederationMember, getRequest, getRequestStartTime, getResponseData, getRetrievalEndTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.liu.ida.hefquin.engine.federation.access.DataRetrievalResponse
getErrorDescription, getErrorStatusCode, getFederationMember, getRequest, getRequestDuration, getRequestStartTime, getResponseData, getRetrievalEndTime, isError
Methods inherited from interface se.liu.ida.hefquin.engine.federation.access.SolMapsResponse
getSize
-
Constructor Details
-
SolMapsResponseImpl
public SolMapsResponseImpl(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime) Constructs a response with the given solution mappings, federation member, request, 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
)fm
- the federation member from which this response originates (must not benull
)request
- the data retrieval request associated with this response (must not benull
)requestStartTime
- the time at which the request was initiated (must not benull
)
-
SolMapsResponseImpl
public SolMapsResponseImpl(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime) Constructs a response with the given solution mappings, federation member, request, 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
)fm
- the federation member from which this response originates (must not benull
)request
- the data retrieval request associated with 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
public SolMapsResponseImpl(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given solution mappings, federation member, request, request start time, and error details. The retrieval end time is automatically set to the current time at the moment of construction.- Parameters:
solMaps
- the list of solution mappings contained in this response (must not benull
)fm
- the federation member from which this response originates (must not benull
)request
- the data retrieval request associated with 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, ornull
if no error occurrederrorDescription
- a short description of the error, ornull
if no error occurred
-
SolMapsResponseImpl
public SolMapsResponseImpl(List<SolutionMapping> solMaps, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription) Constructs a response with the given solution mappings, federation member, request, request start time, retrieval end time, and error details.- Parameters:
solMaps
- the list of solution mappings contained in this response (must not benull
)fm
- the federation member from which this response originates (must not benull
)request
- the data retrieval request associated with 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, ornull
if no error occurrederrorDescription
- a short description of the error, ornull
if no error occurred
-