hirondelle.fish.exercise.binary
Class ServeBinaryAction
Object
ActionImpl
hirondelle.fish.exercise.binary.ServeBinaryAction
- All Implemented Interfaces:
- Action
public final class ServeBinaryAction
- extends ActionImpl
Serves a simple binary file, in .rtf format.
Exercises serving a binary, non-HTML response to the user.
This class generates a fixed response. In practice, it is almost always the case that
the content will be generated dynamically, using the database.
This action is activated by a URL that ends in .rtf. This helps the browser confirm the
content-type, and to open the appropriate helper application.
See RTF Cookbook
for more information on .rtf files.
See the fileupload package for a more practical example of handling binary data.
Methods inherited from class ActionImpl |
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServeBinaryAction
public ServeBinaryAction(RequestParser aRequestParser)
execute
public ResponsePage execute()
throws AppException
- Serve a simple .rtf file, having fixed content.
- Specified by:
execute
in interface Action
- Specified by:
execute
in class ActionImpl
- Throws:
AppException
Copyright Hirondelle Systems - Generated 2013Oct19.12.26