public class OslcResourceResponse
extends java.lang.Object
Constructor and Description |
---|
OslcResourceResponse(byte[] resourceData,
java.lang.String mimeType,
java.lang.String resourceURI) |
OslcResourceResponse(byte[] resourceData,
java.lang.String mimeType,
java.lang.String resourceURI,
boolean disableCache,
int maxAge,
java.lang.String eTag) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String header,
java.lang.String value) |
java.lang.String |
getETag() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
int |
getMaxAge() |
java.lang.String |
getMimeType() |
byte[] |
getResourceData() |
java.lang.String |
getResourceURI() |
int |
getResponseCode() |
boolean |
isDisableCache() |
boolean |
isResourceModified() |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
void |
setResourceNotModifed() |
void |
setResponseCode(int responseCode) |
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType, java.lang.String resourceURI)
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType, java.lang.String resourceURI, boolean disableCache, int maxAge, java.lang.String eTag)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
public int getResponseCode()
public void setResponseCode(int responseCode)
public void addHeader(java.lang.String header, java.lang.String value)
public void setResourceNotModifed()
public boolean isResourceModified()
public byte[] getResourceData()
public java.lang.String getMimeType()
public java.lang.String getResourceURI()
public boolean isDisableCache()
public java.lang.String getETag()
public int getMaxAge()