public class GetBuilder extends RetrieveRequestBuilder
client, request, targetUri| Constructor and Description |
|---|
GetBuilder(URI uri,
FcrepoClient client)
Construct a GetBuilder
|
| Modifier and Type | Method and Description |
|---|---|
GetBuilder |
accept(String mediaType)
Add the accept header to this request to negotiate the response format.
|
GetBuilder |
acceptDatetime(Instant acceptInstant)
Provide an Accept-Datetime header in RFC1123 format from the given instant for memento datetime negotiation.
|
GetBuilder |
acceptDatetime(String acceptDatetime)
Provide an Accept-Datetime from the given RFC1123 formatted string.
|
GetBuilder |
addHeader(String name,
String value)
Add a header with the given name and value to the request.
|
GetBuilder |
addLinkHeader(FcrepoLink linkHeader)
Add a link header to the request
|
protected org.apache.http.client.methods.HttpRequestBase |
createRequest()
Creates the HTTP request object for this builder
|
GetBuilder |
disableRedirects()
Disable following redirects.
|
GetBuilder |
ifModifiedSince(String lastModified)
Provide a if-last-modified header for this request
|
GetBuilder |
ifNoneMatch(String etag)
Provide an etag for the if-none-match header for this request
|
GetBuilder |
noCache()
Provide a Cache-Control header with value "no-cache"
|
GetBuilder |
preferMinimal()
Set the prefer header for this request to minimal, to indicate that only triples directly related to a resource
should be returned.
|
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.
|
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.
|
GetBuilder |
range(Long rangeStart,
Long rangeEnd)
Set the byte range of content to retrieve
|
GetBuilder |
wantDigest(String value)
Provide a Want-Digest header for this request
|
performpublic GetBuilder(URI uri, FcrepoClient client)
uri - the targetclient - the client for this requestprotected org.apache.http.client.methods.HttpRequestBase createRequest()
RequestBuildercreateRequest in class RequestBuilderpublic GetBuilder accept(String mediaType)
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.public GetBuilder range(Long rangeStart, Long rangeEnd)
rangeStart - beginning byte indexrangeEnd - ending byte indexpublic GetBuilder preferMinimal()
public GetBuilder preferRepresentation()
public GetBuilder preferRepresentation(List<URI> includeUris, List<URI> omitUris)
includeUris - URIs of LDP defined preferences to includeomitUris - URIs of LDP defined preferences to omitpublic GetBuilder ifNoneMatch(String etag)
etag - etag to provide as the if-none-match headerpublic GetBuilder ifModifiedSince(String lastModified)
lastModified - date to provided as the if-modified-since headerpublic GetBuilder disableRedirects()
RetrieveRequestBuilderdisableRedirects in class RetrieveRequestBuilderpublic GetBuilder wantDigest(String value)
RetrieveRequestBuilderwantDigest in class RetrieveRequestBuildervalue - header value, following the syntax defined in: https://tools.ietf.org/html/rfc3230#section-4.3.1public GetBuilder noCache()
RetrieveRequestBuildernoCache in class RetrieveRequestBuilderpublic GetBuilder acceptDatetime(Instant acceptInstant)
RetrieveRequestBuilderacceptDatetime in class RetrieveRequestBuilderacceptInstant - the accept datetime represented as an Instant.public GetBuilder acceptDatetime(String acceptDatetime)
RetrieveRequestBuilderacceptDatetime in class RetrieveRequestBuilderacceptDatetime - the accept datetime as a string, must be in RFC1123 format.public GetBuilder addHeader(String name, String value)
RequestBuilderaddHeader in class RequestBuildername - name of the headervalue - value of the headerpublic GetBuilder addLinkHeader(FcrepoLink linkHeader)
RequestBuilderaddLinkHeader in class RequestBuilderlinkHeader - link header value represented as a FcrepoLinkCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.