public class GetBuilder extends RequestBuilder
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.
|
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 |
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
|
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 disableRedirects()
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 headerCopyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.