Interface Record<T>

  • Type Parameters:
    T - the type of id
    All Known Implementing Classes:
    StorageRecord

    public interface Record<T>
    This interface represents only the most basic of a record and the fields that should be retrievable from database.
    Author:
    Maksim Tkachenko, Truong Quoc Tuan, Ween Jiann Lee
    • Method Detail

      • getId

        T getId()
        Returns:
        valid id if the record is stored, null otherwise
      • getURL

        @NotNull
        @NotNull String getURL()
        Returns:
        URL of the stored content
      • getRequestMethod

        @NotNull
        Request.Method getRequestMethod()
        Returns:
        Request type
      • getContentType

        org.apache.http.entity.ContentType getContentType()
        Returns:
        ContentType of the content
      • getStatusCode

        int getStatusCode()
        Returns:
        status code
      • getResponseHeaders

        @Nullable
        org.apache.http.Header[] getResponseHeaders()
        Returns:
        BaseResponse headers
      • getResponseContent

        byte[] getResponseContent()
        Returns:
        raw response file (uncompressed)
      • getDateCreated

        long getDateCreated()
        Returns:
        valid timestamp if the record is stored, -1 otherwise