|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnu.staldal.lsp.SimpleExtLib
nu.staldal.lsp.servlet.ServletExtLib
public class ServletExtLib
LSP extension library for Servlet environment. Namespace URI: "http://staldal.nu/LSP/ExtLib/Servlet"
| Field Summary |
|---|
| Fields inherited from class nu.staldal.lsp.SimpleExtLib |
|---|
extContext, myNamespaceURI, pageName |
| Constructor Summary | |
|---|---|
ServletExtLib()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
_encodeURL(java.lang.Object _url)
Extension function encodeURL(url). |
java.lang.Object |
_formatCustomDateTime(java.lang.Object _pattern,
java.lang.Object _date)
Extension function formatCustomDateTime(date). |
java.lang.Object |
_formatDate(java.lang.Object _date)
Extension function formatDate(date). |
java.lang.Object |
_formatDateTime(java.lang.Object _date)
Extension function formatDateTime(date). |
java.lang.Object |
_formatTime(java.lang.Object _date)
Extension function formatTime(date). |
java.lang.Object |
_formatXMLDateTime(java.lang.Object _date)
Extension function formatXMLDateTime(date). |
java.lang.Object |
_isUserInRole(java.lang.Object _role)
Extension function isUserInRole(role). |
java.lang.Object |
_lang(java.lang.Object _key)
Extension function lang(key). |
java.lang.String |
handleElement(java.lang.String localName,
org.xml.sax.Attributes atts,
org.xml.sax.ContentHandler out)
Handle an extension element. |
| Methods inherited from class nu.staldal.lsp.SimpleExtLib |
|---|
afterElement, beforeElement, characters, endDocument, endElement, endPage, endPrefixMapping, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPage, startPrefixMapping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletExtLib()
| Method Detail |
|---|
public java.lang.String handleElement(java.lang.String localName,
org.xml.sax.Attributes atts,
org.xml.sax.ContentHandler out)
throws org.xml.sax.SAXException
SimpleExtLib
handleElement in class SimpleExtLiblocalName - the local name of the elementatts - the attributes of the elementout - where to write XML output
null if out was used
org.xml.sax.SAXException - may throw SAXException
public java.lang.Object _lang(java.lang.Object _key)
throws org.xml.sax.SAXException
lang(key).
_key - the key (String)
org.xml.sax.SAXExceptionLSPServletContext.lang(String, String)
public java.lang.Object _encodeURL(java.lang.Object _url)
throws org.xml.sax.SAXException
encodeURL(url).
_url - the URL to encode (String)
org.xml.sax.SAXExceptionLSPServletContext.encodeURL(String)
public java.lang.Object _isUserInRole(java.lang.Object _role)
throws org.xml.sax.SAXException
isUserInRole(role).
_role - the role to check (String)
true if user is in the given role
org.xml.sax.SAXExceptionLSPServletContext.isUserInRole(String)
public java.lang.Object _formatDate(java.lang.Object _date)
throws LSPException
formatDate(date).
_date - the date to format (java.util.Date)
LSPException
public java.lang.Object _formatTime(java.lang.Object _date)
throws LSPException
formatTime(date).
_date - the time to format (java.util.Date)
LSPException
public java.lang.Object _formatDateTime(java.lang.Object _date)
throws LSPException
formatDateTime(date).
_date - the date/time to format (java.util.Date)
LSPException
public java.lang.Object _formatCustomDateTime(java.lang.Object _pattern,
java.lang.Object _date)
throws LSPException
formatCustomDateTime(date).
_pattern - the formatting pattern_date - the date/time to format (java.util.Date)
LSPException
public java.lang.Object _formatXMLDateTime(java.lang.Object _date)
throws LSPException
formatXMLDateTime(date).
_date - the date/time to format (java.util.Date)
LSPException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||