public interface ServerResource
ResourceHandler
HTTP server handler.Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Returns the number of bytes in this resource, if known.
|
java.lang.String |
getContentType()
Returns the MIME type of this resource.
|
void |
writeBody(java.io.OutputStream out)
Writes resource body.
|
java.lang.String getContentType()
long getContentLength()
void writeBody(java.io.OutputStream out) throws java.io.IOException
out
- destination streamjava.io.IOException