Package org.togglz.console
Class RequestHandlerBase
- java.lang.Object
-
- org.togglz.console.RequestHandlerBase
-
- All Implemented Interfaces:
RequestHandler
- Direct Known Subclasses:
EditPageHandler,IndexPageHandler,ResourceHandler
public abstract class RequestHandlerBase extends Object implements RequestHandler
-
-
Constructor Summary
Constructors Constructor Description RequestHandlerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopy(InputStream input, OutputStream output)protected StringgetResourceAsString(String name)protected InputStreamloadResource(String name)protected voidwriteResponse(RequestEvent event, String body)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.togglz.console.RequestHandler
adminOnly, handles, process
-
-
-
-
Method Detail
-
writeResponse
protected void writeResponse(RequestEvent event, String body) throws IOException
- Throws:
IOException
-
getResourceAsString
protected String getResourceAsString(String name) throws IOException
- Throws:
IOException
-
loadResource
protected InputStream loadResource(String name)
-
copy
protected void copy(InputStream input, OutputStream output) throws IOException
- Throws:
IOException
-
-