|
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
A basic Servlet which outputs a GIF or JPEG, not an HTML page. Specialise.
Note: This class and its subclasses use image encoders by Jef Poskanzer (jef@acme.com), also avialable under BSD-style license. These encoders are not part of Jacquard, but can be downloaded from his site.
Getting graphic servlets to work on UN*X style operating systems is tricky. The following conditions all have to be met:
| Field Summary | |
protected java.lang.String |
contentType
my content type |
protected java.lang.String |
format
my graphics format |
protected int |
height
The height of my canvas |
protected int |
width
The width of my canvas |
| 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 | |
Graphic()
|
|
| Method Summary | |
protected void |
generateContent(Context context)
Really perform service of an HTTP GET request, by printing myself on the response stream |
void |
init(Context config)
Initialisation: set up my variables from configuration |
protected void |
paintImage(java.awt.Graphics g)
Paint the desired image onto this graphics context. |
| Methods inherited from class uk.co.weft.htform.Servlet |
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, fixupMagicValues, getCalendar, getContentType, 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 |
| Field Detail |
protected int width
protected int height
protected java.lang.String contentType
protected java.lang.String format
| Constructor Detail |
public Graphic()
| Method Detail |
public void init(Context config)
throws InitialisationException
init in class ServletInitialisationExceptionprotected void paintImage(java.awt.Graphics g)
protected void generateContent(Context context)
throws java.lang.Exception
generateContent in class Servletcontext - the context in which to generate this content.
java.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 | |||||||||