public class OslcResourceResponse
extends java.lang.Object
Constructor and Description |
---|
OslcResourceResponse() |
OslcResourceResponse(byte[] resourceData,
java.lang.String mimeType) |
OslcResourceResponse(byte[] resourceData,
java.lang.String mimeType,
int maxAge,
java.lang.String eTag) |
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) |
OslcResourceResponse(java.io.InputStream resourceDataStream,
java.lang.String mimeType,
java.lang.String resourceURI,
java.io.File fileToDelete) |
OslcResourceResponse(com.ibm.json.java.JSONArray jsonArray) |
OslcResourceResponse(com.ibm.json.java.JSONObject jsonObject) |
OslcResourceResponse(com.ibm.json.java.JSONObject jsonObject,
java.lang.String resourceURI) |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(java.lang.String cookie,
java.lang.String value) |
void |
addHeader(java.lang.String header,
java.lang.String value) |
java.util.Map<java.lang.String,java.lang.String> |
getCookies() |
java.lang.String |
getETag() |
java.io.File |
getFileToDelete() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
com.ibm.json.java.JSONArtifact |
getJSONData() |
int |
getMaxAge() |
java.lang.String |
getMimeType() |
byte[] |
getResourceData() |
java.io.InputStream |
getResourceStream() |
java.lang.String |
getResourceURI() |
int |
getResponseCode() |
boolean |
hasLocationHeader() |
boolean |
isDisableCache() |
boolean |
isResourceModified() |
void |
setContentDisposition(java.lang.String disp) |
void |
setCookies(java.util.Map<java.lang.String,java.lang.String> respCookies) |
void |
setETag(java.lang.String etag) |
void |
setETagWithVary(java.lang.String etag) |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
void |
setLocation(java.lang.String uri) |
void |
setMaxAge(int age) |
void |
setMaxAgeWithVary(int age) |
void |
setMimeTypeJSON() |
void |
setResourceNotModifed() |
void |
setResponseCode(int responseCode) |
public OslcResourceResponse()
public OslcResourceResponse(com.ibm.json.java.JSONArray jsonArray) throws MXException
MXException
public OslcResourceResponse(com.ibm.json.java.JSONObject jsonObject, java.lang.String resourceURI) throws MXException
MXException
public OslcResourceResponse(com.ibm.json.java.JSONObject jsonObject) throws MXException
MXException
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType, java.lang.String resourceURI)
public OslcResourceResponse(java.io.InputStream resourceDataStream, java.lang.String mimeType, java.lang.String resourceURI, java.io.File fileToDelete)
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType, int maxAge, java.lang.String eTag)
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType)
public OslcResourceResponse(byte[] resourceData, java.lang.String mimeType, java.lang.String resourceURI, boolean disableCache, int maxAge, java.lang.String eTag)
public void setMimeTypeJSON()
public void setMaxAge(int age)
public void setETag(java.lang.String etag)
public void setETagWithVary(java.lang.String etag)
public void setMaxAgeWithVary(int age)
public void setLocation(java.lang.String uri)
public boolean hasLocationHeader()
public void addCookie(java.lang.String cookie, java.lang.String value)
public void setCookies(java.util.Map<java.lang.String,java.lang.String> respCookies)
public java.util.Map<java.lang.String,java.lang.String> getCookies()
public com.ibm.json.java.JSONArtifact getJSONData()
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.io.InputStream getResourceStream()
public java.lang.String getMimeType()
public java.lang.String getResourceURI()
public boolean isDisableCache()
public java.lang.String getETag()
public int getMaxAge()
public void setContentDisposition(java.lang.String disp)
public java.io.File getFileToDelete()