| Constructor and Description |
|---|
MonitorDummyResource(java.lang.String shortDesciption) |
| Modifier and Type | Method and Description |
|---|---|
ContentType |
getContentType()
Returns the content type of this resource.
|
HashMap |
getHeaderFields()
Returns additional header fields for this resource.
|
java.lang.Object |
getKey() |
long |
getLastModifiedDate()
Returns the last time where this resource was modified as UNIX timestamp.
|
void |
serialize(URI request,
RequestHeader requestHeader,
java.io.InputStream requestBody,
java.io.OutputStream out,
CredentialInfo credentialInfo,
java.lang.String comManId)
Serializes this resource to the given output stream
out. |
java.lang.String |
shortDescription()
A short string representation of this resource.
|
long |
size()
The size of the resource.
|
public MonitorDummyResource(java.lang.String shortDesciption)
public ContentType getContentType()
Resource
If it is not possible to determinate the content type of the resource, the Resource.getContentType() method should return at least the application/octet-stream content type.
getContentType in interface Resourcepublic void serialize(URI request, RequestHeader requestHeader, java.io.InputStream requestBody, java.io.OutputStream out, CredentialInfo credentialInfo, java.lang.String comManId) throws java.io.IOException
Resourceout.serialize in interface Resourcerequest - the request URIrequestHeader - the header of the requestrequestBody - makes the content of the request body availableout - the outputs stream to serialize this resource overjava.io.IOException - if an IO failure occurs during serializationpublic HashMap getHeaderFields()
Resource
The additional header fields allow to add header fields to the response which will be created to send this resource.
NOTICE: The map must contain a String, String
mapping.
getHeaderFields in interface Resourcepublic long size()
Resource
If it is not possible to determinate the size of the resource. The implementation should
return -1. This will allow to send the resource as chunked content.
public long getLastModifiedDate()
ResourcegetLastModifiedDate in interface Resourcepublic java.lang.String shortDescription()
ResourceshortDescription in interface Resource