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 java.lang.String getURL()
        Returns:
        URL of the stored content
      • getRequestMethod

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

        @Nullable
        java.util.Map<java.lang.String,​java.lang.String> getRequestHeaders()
        Returns:
        map of request headers
      • getContentType

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

        @Nullable
        java.util.Map<java.lang.String,​java.lang.String> getRequestBody()
        Returns:
        map of request body
      • 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