public interface Resource
Implementation must be immutable and thread-safe.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Resource.PlainText
Simple resource made out of plain text.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
headers()
Get a collection of all necessary HTTP headers for this resource.
|
void |
writeTo(OutputStream stream)
Write its content to the writer.
|
void writeTo(OutputStream stream) throws IOException
stream - The stream to write toIOException - If some error with I/O insideCollection<String> headers() throws IOException
IOException - If some error with I/O insideCopyright © 2012 s3auth.com. All Rights Reserved.