|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.co.weft.maybeupload.MaybeUploadServlet
uk.co.weft.htform.Servlet
uk.co.weft.graphic.Graphic
uk.co.weft.graphic.ExampleMappedImageServlet
Simple tutorial example of how to use computed mapped images in a servlet. We've found this extremely hard to do which is why we've put so much effort into producing a framework of classes to support it: this class provides an example of how to use them. It's also a simple example of how to do a non-trivial non-form with Jacquard. In addition to the other configuration parameters that all Jacquard servlets understand, this one expects 's1' and 's2' to be strings, and 'u1' and 'u2' to be URLs to map those strings to.
MappedImage,
Serialized Form| Field Summary |
| Fields inherited from class uk.co.weft.graphic.Graphic |
contentType, format, height, width |
| Fields inherited from class uk.co.weft.maybeupload.MaybeUploadServlet |
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
ExampleMappedImageServlet()
|
|
| Method Summary | |
protected void |
generateContent(Context context)
work out whether I'm a type one (generate an HTML page) call or a type two (generate a raster image) call; despatch to the appropriate method |
protected java.lang.String |
getContentType(Context context)
Return my computed content type in this context. |
| Methods inherited from class uk.co.weft.graphic.Graphic |
init, paintImage |
| Methods inherited from class uk.co.weft.htform.Servlet |
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, fixupMagicValues, getCalendar, getDebug, getLocale, getOutputStream, getResource, getResourceString, getServletInfo, grs, grs, handleAction, handleCookies, handleRedirect, init, makeReady, outputRedirectBlock, setCookieValues, storeOnSession, whinge, whinge |
| Methods inherited from class uk.co.weft.maybeupload.MaybeUploadServlet |
doDelete, doHead, doOptions, doPut, doTrace, getUploadDir, getUploadURL, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExampleMappedImageServlet()
| Method Detail |
protected java.lang.String getContentType(Context context)
getContentType in class Servlet
protected void generateContent(Context context)
throws java.lang.Exception
generateContent in class Graphicjava.lang.Exception
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||