Class TPFResponseImpl

java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.response.DataRetrievalResponseBase<Iterable<Triple>>
se.liu.ida.hefquin.engine.federation.access.impl.response.TPFResponseImpl
All Implemented Interfaces:
DataRetrievalResponse<Iterable<Triple>>, TPFResponse, TriplesResponse

public class TPFResponseImpl extends DataRetrievalResponseBase<Iterable<Triple>> implements TPFResponse
  • Field Details

    • metadataTriples

      protected final List<Triple> metadataTriples
    • cardEstimate

      protected final Integer cardEstimate
    • nextPageURL

      protected final String nextPageURL
  • Constructor Details

    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime)
      Constructs a response with the given matching triples, metadata triples, next page URL, 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:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime)
      Constructs a response with the given matching triples, metadata triples, next page URL, federation member, request, request start time, and retrieval end time. This constructor assumes no error occurred.
      Parameters:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      retrievalEndTime - the time at which the retrieval of this response was completed (must not be null)
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime)
      Constructs a response with the given matching triples, metadata triples, next page URL, triple count, 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:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      tripleCount - the triple count
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime)
      Constructs a response with the given matching triples, metadata triples, next page URL, triple count, federation member, request, request start time, and retrieval end time. This constructor assumes no error occurred.
      Parameters:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      tripleCount - the triple count
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      retrievalEndTime - the time at which the retrieval of this response was completed (must not be null)
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, int errorStatusCode, String errorDescription)
      Constructs a response with the given matching triples, metadata triples, next page URL, 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:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      errorStatusCode - the HTTP status code representing an error, or null if no error occurred
      errorDescription - a short description of the error, or null if no error occurred
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription)
      Constructs a response with the given matching triples, metadata triples, next page URL, federation member, request, request start time, retrieval end time, and error details.
      Parameters:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      retrievalEndTime - the time at which the retrieval of this response was completed (must not be null)
      errorStatusCode - the HTTP status code representing an error, or null if no error occurred
      errorDescription - a short description of the error, or null if no error occurred
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Integer errorStatusCode, String errorDescription)
      Constructs a response with the given matching triples, metadata triples, next page URL, triple count, 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:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      tripleCount - the triple count
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      errorStatusCode - the HTTP status code representing an error, or null if no error occurred
      errorDescription - a short description of the error, or null if no error occurred
    • TPFResponseImpl

      public TPFResponseImpl(List<Triple> matchingTriples, List<Triple> metadataTriples, String nextPageURL, int tripleCount, FederationMember fm, DataRetrievalRequest request, Date requestStartTime, Date retrievalEndTime, Integer errorStatusCode, String errorDescription)
      Constructs a response with the given matching triples, metadata triples, next page URL, triple count, federation member, request, request start time, retrieval end time, and error details.
      Parameters:
      matchingTriples - the list of triples matching the request pattern (must not be null)
      metadataTriples - the list of metadata triples (must not be null)
      nextPageURL - the URL for the next page of results, or null if there is none
      tripleCount - the triple count
      fm - the federation member from which the data was retrieved
      request - the original data retrieval request
      requestStartTime - the timestamp when the request started
      retrievalEndTime - the time at which the retrieval of this response was completed (must not be null)
      errorStatusCode - the HTTP status code representing an error, or null if no error occurred
      errorDescription - a short description of the error, or null if no error occurred
  • Method Details