Package net.targetr.rc.util
Class TemplatedHtmlResponse
java.lang.Object
net.targetr.wtm3.net.http.HttpResponse
net.targetr.wtm3.net.http.response.HttpByteArrayResponse
net.targetr.rc.util.TemplatedHtmlResponse
Wraps app Markdown or a built-in HTML information page in the shared template.
-
Field Summary
Fields inherited from class net.targetr.wtm3.net.http.HttpResponse
bytesWritten, code, headerLength, headers, info, version, writeErrorHandler -
Constructor Summary
ConstructorsConstructorDescriptionTemplatedHtmlResponse(HttpRequest httpReq, String app, ResponseCache cache) Builds a templated information-page response. -
Method Summary
Methods inherited from class net.targetr.wtm3.net.http.response.HttpByteArrayResponse
setAllowGzip, writeMethods inherited from class net.targetr.wtm3.net.http.HttpResponse
getBodyInputStream, getContentLength, parseResponse, toString
-
Constructor Details
-
TemplatedHtmlResponse
public TemplatedHtmlResponse(HttpRequest httpReq, String app, ResponseCache cache) throws IOException Builds a templated information-page response.- Parameters:
httpReq- The HTTP request.app- App name, or /appinfo, /mcpinfo, /aiinfo or /devinfo for a built-in page.cache- The response cache.- Throws:
IOException- If an I/O error occurs while creating the HTML response.
-