Fish & Chips Club 4.10.0.0

hirondelle.fish.exercise.binary
Class ServeBinaryAction

Object
  extended by ActionImpl
      extended by 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.


Field Summary
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
ServeBinaryAction(RequestParser aRequestParser)
           
 
Method Summary
 ResponsePage execute()
          Serve a simple .rtf file, having fixed content.
 
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
 

Constructor Detail

ServeBinaryAction

public ServeBinaryAction(RequestParser aRequestParser)
Method Detail

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

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26