public class ResourceResponse
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ResourceResponse(byte[] data,
java.lang.String format,
java.lang.String mimeType,
java.lang.String resourceType,
java.lang.String resourceName) |
ResourceResponse(byte[] data,
java.lang.String format,
java.lang.String mimeType,
java.lang.String resourceType,
java.lang.String resourceName,
java.util.Date lastModified,
boolean modified,
int maxAge,
java.lang.String etag,
java.lang.String resourceLocatorId,
java.util.Map<java.lang.String,java.lang.String> customHeaders) |
ResourceResponse(java.lang.String resourceId,
java.lang.String format,
java.lang.String mimeType,
java.lang.String resourceType,
java.lang.String resourceName) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getCustomHeaders() |
byte[] |
getData() |
java.lang.String |
getETag() |
java.lang.String |
getFormat() |
java.util.Date |
getLastModified() |
int |
getMaxAge() |
java.lang.String |
getMimeType() |
java.lang.String |
getResourceId() |
java.lang.String |
getResourceLocatorId() |
java.lang.String |
getResourceName() |
java.lang.String |
getResourceType() |
boolean |
isModified() |
void |
setResourceLocatorId(java.lang.String resourceLocatorId) |
public ResourceResponse(java.lang.String resourceId, java.lang.String format, java.lang.String mimeType, java.lang.String resourceType, java.lang.String resourceName)
public ResourceResponse(byte[] data, java.lang.String format, java.lang.String mimeType, java.lang.String resourceType, java.lang.String resourceName)
public ResourceResponse(byte[] data, java.lang.String format, java.lang.String mimeType, java.lang.String resourceType, java.lang.String resourceName, java.util.Date lastModified, boolean modified, int maxAge, java.lang.String etag, java.lang.String resourceLocatorId, java.util.Map<java.lang.String,java.lang.String> customHeaders)
public void setResourceLocatorId(java.lang.String resourceLocatorId)
public java.lang.String getResourceLocatorId()
public java.util.Map<java.lang.String,java.lang.String> getCustomHeaders()
public int getMaxAge()
public java.lang.String getResourceId()
public java.lang.String getETag()
public boolean isModified()
public java.util.Date getLastModified()
public byte[] getData()
public java.lang.String getFormat()
public java.lang.String getMimeType()
public java.lang.String getResourceType()
public java.lang.String getResourceName()