public interface HttpFileDescription
HttpFile
.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getContents()
Obtains the contents of the
HttpFile . |
HttpResource |
getResource()
Obtains the
HttpResource for details of the HttpFile . |
void |
setContentEncoding(String encoding)
|
void |
setContentType(String type,
Charset charset)
|
HttpResource getResource()
Obtains the HttpResource
for details of the HttpFile
.
This allows, for example, mapping file extensions to descriptions (from the path).
HttpResource
of the HttpFile
.ByteBuffer getContents()
Obtains the contents of the HttpFile
.
This allows interrogating the contents to determine/guess the description.
HttpFile
.void setContentEncoding(String encoding)
encoding
- Content-Encoding
of the HttpFile
.Copyright © 2005–2016. All rights reserved.