public class WarHttpFile extends AbstractHttpFile
HttpFile
.charset, contentEncoding, contentType
resourcePath
Constructor and Description |
---|
WarHttpFile(String resourcePath,
File file,
AbstractHttpFileDescription description)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getContents()
Obtains the contents of this
HttpFile . |
String |
toString() |
equals, getCharset, getContentEncoding, getContentType, hashCode, isExist, writeHttpFile
getPath
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPath
public WarHttpFile(String resourcePath, File file, AbstractHttpFileDescription description)
resourcePath
- Resource path.file
- File
.description
- AbstractHttpFileDescription
.public ByteBuffer getContents()
HttpFile
Obtains the contents of this HttpFile
.
The ByteBuffer
will typically be read-only to prevent changes to
the contents.
HttpFile
.Copyright © 2005–2016. All rights reserved.