PAJES 2.3.9

org.pajes.db.entity
Class DefaultStyleSheet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.pajes.servlet.PajeServlet
              extended byorg.pajes.servlet.StaticPajeServlet
                  extended byorg.pajes.db.entity.DefaultStyleSheet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DefaultStyleSheet
extends StaticPajeServlet

StyleSheet used by DefaultEditor and DefaultLister.

This default style sheet may be set in the web application deployment descriptor. To set the default value, create a <context-param> with a <param-name> of org.pajes.db.entity.DefaultStyleSheet and a <param-value> containing the name of the style sheet file. For example:

   <context-param>
       <param-name>org.pajes.db.entity.DefaultStyleSheet</param-name>
       <param-value>includes/default.css</param-value>
   </context-param>
 

See Also:
Serialized Form

Field Summary
static java.lang.String INIT_PARAMETER
          The <param-name> of the <context-param> that specifies the default style sheet.
 
Constructor Summary
DefaultStyleSheet()
          Creates the default StyleSheet.
 
Method Summary
protected  byte[] getContent(javax.servlet.http.HttpServletRequest request)
          Retrieves the static content to be returned to a request.
static java.lang.String toString(javax.servlet.ServletContext context)
          Returns the default StyleSheet URL.
 
Methods inherited from class org.pajes.servlet.StaticPajeServlet
doGet, getContentType, getExpirationDate, getFilename, getLastModified, setHeaders
 
Methods inherited from class org.pajes.servlet.PajeServlet
createPaje, createPaje, createPaje, doPost, getAbsoluteHREF, getBaseHREF, getMaxFileUploadSize, getPajeFactory, getResource, getUploadedFile, getUploadedFileNames, handleException, init, log, log, service, setInputFieldsFromRequestAttributes, setInputFieldsFromRequestParameters, setMaxFileUploadSize, setPajeFactory
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_PARAMETER

public static final java.lang.String INIT_PARAMETER
The <param-name> of the <context-param> that specifies the default style sheet.

See Also:
Constant Field Values
Constructor Detail

DefaultStyleSheet

public DefaultStyleSheet()
Creates the default StyleSheet.

Method Detail

toString

public static java.lang.String toString(javax.servlet.ServletContext context)
Returns the default StyleSheet URL.

Parameters:
context - The ServletContext.
Returns:
the default StyleSheet URL.

getContent

protected byte[] getContent(javax.servlet.http.HttpServletRequest request)
Retrieves the static content to be returned to a request.

Specified by:
getContent in class StaticPajeServlet
Parameters:
request - the request object.
Returns:
the byte array of the content this servlet will return.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.