Class PersistentLicenseCache.Entry

java.lang.Object
org.codehaus.mojo.license.download.PersistentLicenseCache.Entry
Enclosing class:
PersistentLicenseCache

public static final class PersistentLicenseCache.Entry extends Object
A cache entry.
Since:
2.8.0
  • Method Details

    • getUrl

      public String getUrl()
    • getDownloaded

      public Instant getDownloaded()
    • getContentType

      public String getContentType()
      Returns:
      the Content-Type header value, or null
    • getEtag

      public String getEtag()
      Returns:
      the ETag header value, or null
    • getLastModified

      public String getLastModified()
      Returns:
      the Last-Modified header value, or null
    • getBody

      public byte[] getBody()
    • toEntity

      public org.apache.http.entity.ByteArrayEntity toEntity()
      Returns:
      the body as an HTTP entity with the original content type