Class CacheQuestion


  • public class CacheQuestion
    extends Object
    This class contains all the input parameters for a cache request
    Since:
    15.0
    • Field Detail

      • profile

        @NonNull
        @Pattern(regexp="[\\w-_]+")
        private @NonNull @Pattern(regexp="[\\w-_]+") String profile
        Profile where to lookup the cached copies template to use
      • form

        @NonNull
        @Pattern(regexp="[\\w-_]+")
        private @NonNull @Pattern(regexp="[\\w-_]+") String form

        Form (template) to use to render the cached copy

        The template is expected to be prefixed with cache. and have the extension .ftl

      • url

        private String url
        URL of the document to retrieve the cached copy of
      • doc

        private String doc

        Relative path of the document in the collection storage to access the document.

        This is used as a fallback method if the document cannot be found via its URL, for example if the URL has been rewritten

      • off

        private long off
        Offset of the document in the WARC file
      • len

        private int len
        Length of the document in the WARC file
    • Constructor Detail

      • CacheQuestion

        public CacheQuestion()
    • Method Detail

      • getProfile

        @NonNull
        public @NonNull String getProfile()
        Profile where to lookup the cached copies template to use
      • setProfile

        public void setProfile​(@NonNull
                               @NonNull String profile)
        Profile where to lookup the cached copies template to use
      • getForm

        @NonNull
        public @NonNull String getForm()

        Form (template) to use to render the cached copy

        The template is expected to be prefixed with cache. and have the extension .ftl

      • setForm

        public void setForm​(@NonNull
                            @NonNull String form)

        Form (template) to use to render the cached copy

        The template is expected to be prefixed with cache. and have the extension .ftl

      • getUrl

        public String getUrl()
        URL of the document to retrieve the cached copy of
      • setUrl

        public void setUrl​(String url)
        URL of the document to retrieve the cached copy of
      • getDoc

        public String getDoc()

        Relative path of the document in the collection storage to access the document.

        This is used as a fallback method if the document cannot be found via its URL, for example if the URL has been rewritten

      • setDoc

        public void setDoc​(String doc)

        Relative path of the document in the collection storage to access the document.

        This is used as a fallback method if the document cannot be found via its URL, for example if the URL has been rewritten

      • getOff

        public long getOff()
        Offset of the document in the WARC file
      • setOff

        public void setOff​(long off)
        Offset of the document in the WARC file
      • getLen

        public int getLen()
        Length of the document in the WARC file
      • setLen

        public void setLen​(int len)
        Length of the document in the WARC file