public abstract class RequestBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FcrepoClient |
client |
protected org.apache.http.client.methods.HttpRequestBase |
request |
protected URI |
targetUri |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestBuilder(URI uri,
FcrepoClient client)
Instantiate builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.http.client.methods.HttpRequestBase |
createRequest()
Creates the HTTP request object for this builder
|
FcrepoResponse |
perform()
Performs the request constructed in this builder and returns the response
|
protected FcrepoClient client
protected org.apache.http.client.methods.HttpRequestBase request
protected RequestBuilder(URI uri, FcrepoClient client)
uri - uri of the resource this request is being made toclient - the clientprotected abstract org.apache.http.client.methods.HttpRequestBase createRequest()
public FcrepoResponse perform() throws FcrepoOperationFailedException
FcrepoOperationFailedException - when the underlying HTTP request results in an errorCopyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.