Class GetBuilder

    • Constructor Detail

      • GetBuilder

        public GetBuilder​(URI uri,
                          FcrepoClient client)
        Construct a GetBuilder
        Parameters:
        uri - the target
        client - the client for this request
    • Method Detail

      • createRequest

        protected org.apache.http.client.methods.HttpRequestBase createRequest()
        Description copied from class: RequestBuilder
        Creates the HTTP request object for this builder
        Specified by:
        createRequest in class RequestBuilder
        Returns:
        HTTP request object for this builder
      • accept

        public GetBuilder accept​(String mediaType)
        Add the accept header to this request to negotiate the response format.
        Parameters:
        mediaType - media type to set as the accept header. It should be a value from one of the allowed RDF source formats supported by Fedora.
        Returns:
        this builder
      • range

        public GetBuilder range​(Long rangeStart,
                                Long rangeEnd)
        Set the byte range of content to retrieve
        Parameters:
        rangeStart - beginning byte index
        rangeEnd - ending byte index
        Returns:
        this builder
      • preferRepresentation

        public GetBuilder preferRepresentation()
        Set the prefer header for this request to representation, to indicate that links to other resources and their properties should also be included.
        Returns:
        this builder
      • preferRepresentation

        public GetBuilder preferRepresentation​(List<URI> includeUris,
                                               List<URI> omitUris)
        Set the prefer header for this request to representation, to indicate that links to other resources and their properties should also be included. The set of properties returned can be further specified by providing lists of LDP defined preferences to omit or include.
        Parameters:
        includeUris - URIs of LDP defined preferences to include
        omitUris - URIs of LDP defined preferences to omit
        Returns:
        this builder
      • ifNoneMatch

        public GetBuilder ifNoneMatch​(String etag)
        Provide an etag for the if-none-match header for this request
        Parameters:
        etag - etag to provide as the if-none-match header
        Returns:
        this builder
      • ifModifiedSince

        public GetBuilder ifModifiedSince​(String lastModified)
        Provide a if-last-modified header for this request
        Parameters:
        lastModified - date to provided as the if-modified-since header
        Returns:
        this builder