org.pajes.db.entity
Class DefaultStyleSheet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.pajes.servlet.PajeServlet
org.pajes.servlet.StaticPajeServlet
org.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. |
|
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.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 |
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
DefaultStyleSheet
public DefaultStyleSheet()
- Creates the default
StyleSheet.
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.
Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.