public class FcrepoResponse extends Object
FcrepoClient.| Constructor and Description |
|---|
FcrepoResponse(URI url,
int statusCode,
String contentType,
URI location,
InputStream body)
Create a FcrepoResponse object from the http response
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody()
body getter
|
String |
getContentType()
contentType getter
|
URI |
getLocation()
location getter
|
int |
getStatusCode()
statusCode getter
|
URI |
getUrl()
url getter
|
void |
setBody(InputStream body)
body setter
|
void |
setContentType(String contentType)
contentType setter
|
void |
setLocation(URI location)
location setter
|
void |
setStatusCode(int statusCode)
statusCode setter
|
void |
setUrl(URI url)
url setter
|
public FcrepoResponse(URI url, int statusCode, String contentType, URI location, InputStream body)
url - the requested URLstatusCode - the HTTP status codecontentType - the mime-type of the responselocation - the location of a related resourcebody - the response body streampublic int getStatusCode()
public void setStatusCode(int statusCode)
statusCode - the HTTP status codepublic InputStream getBody()
public void setBody(InputStream body)
body - the contents of the response bodypublic URI getLocation()
public void setLocation(URI location)
location - the value of a related resourcepublic String getContentType()
public void setContentType(String contentType)
contentType - the mime-type of the responseCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.