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. | 
| String | getContentType()Returns the MIME type of this resource. | 
| void | writeBody(OutputStream out)Writes resource body. | 
String getContentType()
long getContentLength()
void writeBody(OutputStream out) throws IOException
out - destination streamIOExceptionCopyright © 2008–2024. All rights reserved.