Package net.officefloor.web.resource
Interface HttpFile
- All Superinterfaces:
HttpResource
- All Known Implementing Classes:
HttpFileImpl
HTTP file.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains theCharsetfor the contents.Obtains theContent-Encodingfor thisHttpFile.Obtains theContent-Typefor thisHttpFile.voidwriteTo(HttpResponse response) Writes theHttpFileto theHttpResponse.Methods inherited from interface net.officefloor.web.resource.HttpResource
getPath, isExist
-
Method Details
-
getContentEncoding
HttpHeaderValue getContentEncoding()Obtains theContent-Encodingfor thisHttpFile.- Returns:
Content-Encodingfor thisHttpFile.- See Also:
-
getContentType
HttpHeaderValue getContentType()Obtains theContent-Typefor thisHttpFile.- Returns:
Content-Typefor thisHttpFile.- See Also:
-
getCharset
Charset getCharset()Obtains theCharsetfor the contents. -
writeTo
Writes theHttpFileto theHttpResponse.- Parameters:
response-HttpResponse.- Throws:
IOException- If failure in writing theHttpFileto theHttpResponse.
-