|
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.htform.WithExceptionHandlerServlet
uk.co.weft.htform.Page
An HTML page, generated by a servlet. This class (and consequently all servlets which are subclasses of this class) know about the following configuration parameters, in addition to those handled by Servlet:
Servlet,
Serialized Form| Field Summary | |
static java.lang.String |
DOCTYPECONFIGTOKEN
a magic token on which we will seek the value of the document type declaration in the configuration |
protected java.lang.Boolean |
dynamicFootInclude
whether the fragment should be refetched at each request (we really don't want to have to do this |
protected java.lang.Boolean |
dynamicHeadInclude
whether the fragment should be refetched at each request (we really don't want to have to do this |
protected java.lang.String |
footInclude
an HTML fragment to include at the beginning of the body of each page |
protected java.lang.String |
footIncludeURL
the URL from which that fragment should be fetched |
protected java.lang.String |
headInclude
an HTML fragment to include at the beginning of the body of each page |
protected java.lang.String |
headIncludeURL
the URL from which that fragment should be fetched |
protected java.lang.String |
imageUrlBase
the base URL for utility images I may need |
protected Layout |
layout
My layout engine. |
protected java.lang.String |
printStylesheet
The URL of my print stylsheet |
static java.lang.String |
PRINTSTYLESHEETCONFIGTOKEN
a magic token on which we will seek in the configuration for the URL of the stylesheet for media="print" |
protected java.lang.String |
stylesheet
The URI of my stylesheet |
static java.lang.String |
STYLESHEETCONFIGTOKEN
a magic token on which we will seek in the configuration for the URL of the stylesheet for media="screen" |
protected java.lang.String |
title
my title. |
protected java.lang.String |
titleMagicToken
Deprecated. use TITLEMAGICTOKEN |
static java.lang.String |
TITLEMAGICTOKEN
a magic token to allow my title to be extracted from the context |
| Fields inherited from class uk.co.weft.htform.WithExceptionHandlerServlet |
EXCEPTIONHANDLERCLASSCONFIGTOKEN |
| 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 | |
Page()
|
|
| Method Summary | |
protected abstract void |
doBody(Context context)
Specialise! Do not use! Output what is to appear on your page between (but not including) the BODY tags. |
protected void |
doFoot(Context context)
Output standardised footer. |
protected void |
doFoot(Context context,
java.lang.String message)
output a footer onto my output stream, incorporating a supplied message. |
protected void |
doHead(Context context)
Output an HTML HEAD section, up to but not including the closing /HEAD tag. |
protected void |
doHeadBodySep(Context context)
Output the close of the head tag and the opening of the body tag. |
protected void |
generateContent(Context context)
Generate the content of a normal page, by generating first the head, then the body tag, then the body content. |
protected java.lang.String |
getFootInclude(Context context)
fetch the foot include (if any) for this context. |
protected java.net.URL |
getFootIncludeURL(java.lang.String dflt,
Context context)
If you're using dynamic foot includes, you probably want to specialise to generate a URL based on something in the context. |
protected java.net.URL |
getFootIncludeURL(java.net.URL dflt,
Context context)
If you're using dynamic foot includes, you probably want to specialise to generate a URL based on something in the context. |
protected java.lang.String |
getHeadInclude(Context context)
fetch the head include (if any) for this context. |
protected java.net.URL |
getHeadIncludeURL(java.lang.String dflt,
Context context)
If you're using dynamic head includes, you probably want to specialise to generate a URL based on something in the context. |
protected java.net.URL |
getHeadIncludeURL(java.net.URL dflt,
Context context)
Deprecated. replaced with getHeadIncludeURL(String,Context) which is able to fix up relative URLs |
Layout |
getLayout(Context context)
Return my layout engine for this context. |
protected java.lang.String |
getStylesheet(Context context)
Deprecated. probably better to use getStylesheets(Context) |
java.util.Vector |
getStylesheets(Context context)
get the URLs of multiple stylesheets to use in this context. |
protected boolean |
getTables()
return the value of my tables iv |
protected java.lang.String |
getTitle()
Deprecated. use getTitle( Context) in preference |
protected java.lang.String |
getTitle(Context context)
construct and return a suitable title for this page in this context. |
void |
init(Context config)
Initialisation: Set up my variables from my configuration. |
protected void |
outputRedirectBlock(Context context)
Output a stub HTML page with a 'refresh' meta. |
protected java.lang.String |
readStringFromURL(java.net.URL source)
read the value at this URL and return it as a string |
| Methods inherited from class uk.co.weft.htform.WithExceptionHandlerServlet |
whinge, whinge, whinge |
| 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, setCookieValues, storeOnSession |
| 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 |
public static final java.lang.String TITLEMAGICTOKEN
public static final java.lang.String STYLESHEETCONFIGTOKEN
public static final java.lang.String PRINTSTYLESHEETCONFIGTOKEN
public static final java.lang.String DOCTYPECONFIGTOKEN
protected java.lang.Boolean dynamicFootInclude
protected java.lang.Boolean dynamicHeadInclude
protected java.lang.String footInclude
protected java.lang.String headInclude
protected java.lang.String imageUrlBase
protected java.lang.String title
getTitle()protected final java.lang.String titleMagicToken
protected Layout layout
Layoutprotected java.lang.String footIncludeURL
protected java.lang.String headIncludeURL
protected java.lang.String printStylesheet
protected java.lang.String stylesheet
| Constructor Detail |
public Page()
| Method Detail |
public Layout getLayout(Context context)
throws javax.servlet.ServletException
context - is passed because later we may want to use different
layout engines for different browsers (or, conceivably,
different levels of security clearance or whatever)
javax.servlet.ServletExceptionLayout
public java.util.Vector getStylesheets(Context context)
throws java.lang.Exception
context - the context of this service
java.lang.Exception
public void init(Context config)
throws InitialisationException
init in class WithExceptionHandlerServletInitialisationExceptionprotected java.lang.String getFootInclude(Context context)
context - the context for this service
protected java.net.URL getFootIncludeURL(java.net.URL dflt,
Context context)
throws java.lang.Exception
dflt - the default URL to return if you don't find anything
interesting in the contextcontext - the context for this service.
java.lang.Exception - not actually thrown, but things which specialise
this may throw anything.
protected java.net.URL getFootIncludeURL(java.lang.String dflt,
Context context)
throws java.lang.Exception
dflt - the default URL to return if you don't find anything
interesting in the contextcontext - the context for this service.
java.lang.Exception - not actually thrown, but things which specialise
this may throw anything.protected java.lang.String getHeadInclude(Context context)
context - the context for this service
protected java.net.URL getHeadIncludeURL(java.net.URL dflt,
Context context)
throws java.lang.Exception
dflt - the default URL to return if you don't find anything
interesting in the contextcontext - the context for this service.
java.lang.Exception - not actually thrown, but things which specialise
this may throw anything.
protected java.net.URL getHeadIncludeURL(java.lang.String dflt,
Context context)
throws java.lang.Exception
dflt - the default URL to return if you don't find anything
interesting in the contextcontext - the context for this service.
java.lang.Exception - not actually thrown, but things which specialise
this may throw anything.
protected java.lang.String getStylesheet(Context context)
throws java.lang.Exception
java.lang.Exceptionprotected boolean getTables()
protected java.lang.String getTitle()
protected java.lang.String getTitle(Context context)
context - the context for this service
protected abstract void doBody(Context context)
throws java.lang.Exception
java.lang.Exception
protected void doFoot(Context context)
throws java.lang.Exception
java.lang.Exception
protected void doFoot(Context context,
java.lang.String message)
throws java.lang.Exception
java.lang.Exception
protected void doHead(Context context)
throws java.lang.Exception
java.lang.Exception
protected void doHeadBodySep(Context context)
throws java.lang.Exception
java.lang.Exception
protected void generateContent(Context context)
throws java.lang.Exception
generateContent in class Servletcontext - the context for this service
java.lang.Exception - actually does not throw any exception, but conforms
to an API which may
protected void outputRedirectBlock(Context context)
throws java.io.IOException
outputRedirectBlock in class Servletcontext - the context for this service
java.io.IOException - if output barfs.
protected java.lang.String readStringFromURL(java.net.URL source)
throws java.io.IOException
source - where to read from
java.io.IOException
|
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 | |||||||||