Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W Y Z 

A

absolute(int) - Method in class lazyj.DBFunctions
Jump to an absolute position in the result set
addHeader(String) - Method in class lazyj.mail.filters.DKIMSigner
Add another header to the signature
addHeader(String, String) - Method in class lazyj.mail.MailHeader
Add an extra header to be put in the mail that is sent.
AddressComparator - Class in lazyj.mail.comparators
A MailHeader comparator that sorts the mails by the source email address.
AddressComparator() - Constructor for class lazyj.mail.comparators.AddressComparator
 
append(Object) - Method in class lazyj.page.BasePage
Append a value to the default tag, "content"
append(String, Object) - Method in class lazyj.page.BasePage
Append a value to a tag.
append(String, Object, boolean) - Method in class lazyj.page.BasePage
Append a value to a tag, at the start or at the end.
append(String, Object, boolean) - Method in interface lazyj.page.TemplatePage
Append the value of some object to a tag.
AttachHeader - Class in lazyj.mail
Wrapper that extracts typical attachment keys from the corresponding header
AttachHeader(String) - Constructor for class lazyj.mail.AttachHeader
Constructor based on the attachment header, extracted from the body part of the attachment
Attachment - Class in lazyj.mail
Wrapper class for an attachment.
Attachment(String) - Constructor for class lazyj.mail.Attachment
Constructor that initializes only the header fields.
Attachment(String, String) - Constructor for class lazyj.mail.Attachment
Constructor that initializes both the headers and the body.

B

base64Decode(String) - Static method in class lazyj.Utils
Decode some Base64-encoded data
base64Encode(byte[]) - Static method in class lazyj.Utils
Encode a byte array to a single-line BASE64-encoded string.
BasePage - Class in lazyj.page
Base class for the HTML templates.
BasePage() - Constructor for class lazyj.page.BasePage
Create an empty holder to whatever.
BasePage(String) - Constructor for class lazyj.page.BasePage
Create a page by reading the contents of the given file.
BasePage(OutputStream, String) - Constructor for class lazyj.page.BasePage
Create a page by reading the contents of the given file.
BasePage(OutputStream, String, boolean) - Constructor for class lazyj.page.BasePage
Create a page by reading the contents of the given file.
bash(String) - Static method in class lazyj.commands.SystemCommand
Have the command executed via a bash interpreter
bash(String, boolean) - Static method in class lazyj.commands.SystemCommand
Have the command executed via a bash interpreter
BasicDBOptionList - Class in lazyj.widgets
A simple option list builder having string keys and values.
BasicDBOptionList(DBFunctions) - Constructor for class lazyj.widgets.BasicDBOptionList
Build a list of options taking the first column from the query as key (option id) and the second column as value (displayed string).
BasicDBOptionList(DBFunctions, String, String) - Constructor for class lazyj.widgets.BasicDBOptionList
Build a list of options taking from the given query specific columns as key / value.
BasicDBTreeProvider - Class in lazyj.widgets
Simple tree provider, having integer keys and string values.
BasicDBTreeProvider(DBFunctions) - Constructor for class lazyj.widgets.BasicDBTreeProvider
Build the tree options taking from each database row:
first column: node id == option key second column: parent id third column: value == displayed option string
BasicDBTreeProvider(DBFunctions, String, String, String) - Constructor for class lazyj.widgets.BasicDBTreeProvider
Build the tree of options taking the specified columns from each database row.
bConfirmation - Variable in class lazyj.mail.MailHeader
If this is a read confirmation of a previously sent mail.
bEstimatedHasAttachments - Variable in class lazyj.mail.MailHeader
This only an assumption about the attachment status.
bGet - Variable in class lazyj.ExtendedServlet
Servlets can treat GET and POST differently based on the method they override or by looking at this variable
blowfishCrypt(byte[], byte[]) - Static method in class lazyj.Utils
Encrypt some input data using Blowfish with the given key
blowfishCrypt(String, String) - Static method in class lazyj.Utils
Encrypt some input text using Blowfish with the given key
blowfishDecrypt(byte[], byte[]) - Static method in class lazyj.Utils
Decrypt using Blowfish and the given key
blowfishDecrypt(String, String) - Static method in class lazyj.Utils
Decrypt a Base64-encoded text using Blowfish and the given key
bOld - Variable in class lazyj.mail.MailHeader
True if this mail was displayed before, false otherwise; set by higher-level code.
bOnlyHTML - Variable in class lazyj.mail.Mail
If this is an HTML-only email
bOnlyPlain - Variable in class lazyj.mail.Mail
If this is an plain-text-only email
bRedirect - Variable in class lazyj.ExtendedServlet
Remember whether or not there was a redirect executed by the servlet
bRequestRcpt - Variable in class lazyj.mail.MailHeader
Whether or not to request read confirmation from the recipients of this mail
byteToHex(byte) - Static method in class lazyj.Format
Get the 2 hexa digit representation of this byte

C

Cache - Class in lazyj.cache
This class is a central point where all the data caching structure can be stored, for universal access.
CacheElement<K,V> - Interface in lazyj.cache
An interface that must be implemented by any object that must be registered into the Cache.
cacheNulls() - Method in class lazyj.cache.GenericLastValuesCache
By default null values returned by GenericLastValuesCache.resolve(Object) will be cached, meaning that the function won't be called again for keys for which it was determined that there is no value associated.
CachingStructure - Class in lazyj
Holding class for page cache entries
callbackOnExpiry(K, V) - Method in class lazyj.cache.ExpirationCache
Callback function, to be able to react when something is removed.
callbackOnExpiry(String, CachingStructure) - Method in class lazyj.PageCache
Cleanup thread, takes an entry that has expired, removes it from the cache and checks if it deserves a bonus.
canUse(long) - Method in class lazyj.DBFunctions.DBConnection
Find out if this connection is free to use
charSet - Variable in class lazyj.mail.Mail
Character set used to send the body, HTML body and everything else
Checked - Class in lazyj.page.tags
checked returns "checked" when the value, as integer, is > 0.
Checked() - Constructor for class lazyj.page.tags.Checked
 
childrenNamesSpi() - Method in class lazyj.Utils.Base64Coder
 
childSpi(String) - Method in class lazyj.Utils.Base64Coder
 
chmQueryCount - Static variable in class lazyj.DBFunctions
For statistics: how many queries were executed on each connection.
chmQueryTime - Static variable in class lazyj.DBFunctions
For statistics: total time to execute the queries on each of the connections.
clear() - Static method in class lazyj.DBSession
Clear cached sessions
clear() - Static method in class lazyj.FrameworkStats
Clear the counters and the internal structures.
clear() - Static method in class lazyj.page.BasePage
Clear the page templates cache
clear() - Static method in class lazyj.PageCache
Clear all the cache structures (in case of major changes to the templates ...)
clear() - Static method in class lazyj.StringFactory
Deprecated. 
clearCache() - Method in class lazyj.ExtProperties
Method to clear the cache in order to force the evaluation of the keys once again.
clearCaches() - Static method in class lazyj.Utils
Calls the clear methods on all the cached structures (page cache, template cache, framework counters etc).
clearHeader() - Method in class lazyj.mail.filters.DKIMSigner
Remove all headers, start clean
close() - Method in class lazyj.DBFunctions
Explicitly close the allocated resources
close() - Method in class lazyj.DBFunctions.DBConnection
Really close a connection to the database
close() - Method in class lazyj.FileLinesIterable
 
close() - Method in class lazyj.FileLinesIterator
 
CommandOutput - Class in lazyj.commands
Wrapper arroung the output of an AliEn command
CommandOutput(String, String) - Constructor for class lazyj.commands.CommandOutput
Package protected constructor, only AliEnPool should execute commands
CommandOutput(String, String, int) - Constructor for class lazyj.commands.CommandOutput
Package protected constructor, only AliEnPool should execute commands
comment(String, boolean) - Method in class lazyj.page.BasePage
Shortcut for easy hiding of pieces of html.
commonValues - Variable in class lazyj.page.BasePage
Common values across iterations
compare(MailHeader, MailHeader) - Method in class lazyj.mail.comparators.AddressComparator
Sorting method : by the source email address
compare(MailHeader, MailHeader) - Method in class lazyj.mail.comparators.DateComparator
Sorting method : by the date in the header
compare(MailHeader, MailHeader) - Method in class lazyj.mail.comparators.SizeComparator
Sorting method : by the size of the mail
compare(MailHeader, MailHeader) - Method in class lazyj.mail.comparators.SubjectComparator
Sorting method : by the subjects
compareTo(CachingStructure) - Method in class lazyj.CachingStructure
For sorting first by the number of accesses then by the key, then by expiration time
compareTo(Delayed) - Method in class lazyj.DBSession
Implementation of Delayed
compareTo(MailDate) - Method in class lazyj.mail.MailDate
Method to compare two dates.
compareTo(MailHeader) - Method in class lazyj.mail.MailHeader
Default sorting methods for the mails: by the date
compareTo(MailUtils.MXRecord) - Method in class lazyj.mail.MailUtils.MXRecord
 
composeInsert(String, Map<String, ?>) - Static method in class lazyj.DBFunctions
Create an INSERT statement for these values
composeUpdate(String, Map<String, ?>, Collection<String>) - Static method in class lazyj.DBFunctions
Compose an UPDATE SQL statement
compress(String, String, boolean) - Static method in class lazyj.Utils
Compresses a file to gzip format.
compress(byte[]) - Static method in class lazyj.Utils
Compress a byte array with GZip
compressToZip(String, String, boolean) - Static method in class lazyj.Utils
Create a zip archive containing the given source file.
COOKIE_NAME - Static variable in class lazyj.DBSession
The cookie name to use for session ids.
copyFile(String, String) - Static method in class lazyj.Utils
Copy the file contents.
count() - Method in class lazyj.DBFunctions
Get the number of rows that were selected by the previous query.
countLines(String) - Static method in class lazyj.commands.CommandOutput
Get the number of lines in ar arbitrary text
countOccurrences(String, char) - Static method in class lazyj.commands.CommandOutput
How many times one particular character shows up in a text ?
CRLF - Static variable in class lazyj.mail.Sendmail
What is an CRLF ?
CSV - Class in lazyj.page.tags
csv tag escapes the double quotes in CSV fields
CSV() - Constructor for class lazyj.page.tags.CSV
 
Cut - Class in lazyj.page.tags
cutN return the first N characters from the value.
Cut() - Constructor for class lazyj.page.tags.Cut
 
cut(String, int) - Static method in class lazyj.page.tags.Cut
Cuts a string, leaving only the first N characters from it, jumping over tags.

D

Dash - Class in lazyj.page.tags
dash replaces all non-alphanumeric sequences of characters each with a single dash.
Dash() - Constructor for class lazyj.page.tags.Dash
 
Date - Class in lazyj.page.tags
date or dateFORMAT decode the date from the value and show it in the specified format.
Date() - Constructor for class lazyj.page.tags.Date
 
DateComparator - Class in lazyj.mail.comparators
A MailHeader comparator that sorts the mails by the sending date.
DateComparator() - Constructor for class lazyj.mail.comparators.DateComparator
 
DateFileWatchdog - Class in lazyj
This class monitors a specified File for a change and notifies back when the file on disk has changed.
DateFileWatchdog(String, long) - Constructor for class lazyj.DateFileWatchdog
Create a watcher for a given file name
DateFileWatchdog(File, long) - Constructor for class lazyj.DateFileWatchdog
Create a watcher for a given file
day - Variable in class lazyj.mail.MailDate
day of the month
db - Variable in class lazyj.widgets.DBOptionList
Database row.
db - Variable in class lazyj.widgets.DBTreeProvider
Database row.
DBFunctions - Class in lazyj
Wrapper for JDBC connections and collection of useful functions related to database connections.
DBFunctions(ExtProperties) - Constructor for class lazyj.DBFunctions
Create a connection to the database using the parameters in this properties file.
DBFunctions(Properties) - Constructor for class lazyj.DBFunctions
 
DBFunctions(Properties, String) - Constructor for class lazyj.DBFunctions
Create a connection to the database using the parameters in this properties file, then execute the given query.
DBFunctions(ExtProperties, String) - Constructor for class lazyj.DBFunctions
Create a connection to the database using the parameters in this properties file, then execute the given query.
DBFunctions(String, String) - Constructor for class lazyj.DBFunctions
If you already have the full JDBC connection URL, connect like this.
DBFunctions(String, String, Properties) - Constructor for class lazyj.DBFunctions
If you already have the full JDBC connection URL, connect like this
DBFunctions(String, String, Properties, String) - Constructor for class lazyj.DBFunctions
If you already have the full JDBC connection URL, connect like this.
DBFunctions.DBConnection - Class in lazyj
Wrapper around a raw database connection.
DBOptionList<K,V> - Class in lazyj.widgets
Get a list of option based on a simple query.
DBOptionList(DBFunctions) - Constructor for class lazyj.widgets.DBOptionList
Database query to build the list of options upon.
dbs - Variable in class lazyj.ExtendedServlet
Current session
DBSession - Class in lazyj
Web session wrapper, with a database backend.

This class will take the database settings from the file "dbsessions.properties" that is found in the folder specified by the system property "lazyj.config.folder".
DBTreeProvider<K,V> - Class in lazyj.widgets
Implementation of TreeProvider that takes a database query as argument.
DBTreeProvider(DBFunctions) - Constructor for class lazyj.widgets.DBTreeProvider
Constructor based on a database query.
DDot - Class in lazyj.page.tags
ddot or ddotN show nice double values, with a given number of digits after the point (when not specified N is by default 2) and groups of 3 digits separated by comma.
DDot() - Constructor for class lazyj.page.tags.DDot
 
decode(String) - Static method in class lazyj.DBFunctions
Given an array in PostgreSQL format, convert it to a Java array of Strings.
decode(String) - Static method in class lazyj.Format
Decode an URL-encoded string, using the UTF-8 charset.
decode(String) - Static method in class lazyj.Utils.Base64Coder
Given a String containing a Base64 representation, return the corresponding byte array.
decodeString(String) - Static method in class lazyj.DBSession
Decode a text previously encoded with DBSession.encodeBytes(byte[]) to the original byte array
decodeToInt(String) - Static method in class lazyj.DBFunctions
Convert each entry from an array to Integer.
DKIMSigner - Class in lazyj.mail.filters
This class is used as a Sendmail filter to sign the mail with a private key.

Here is an example of how you can generate the keys:
private key generation:
openssl genrsa -out rsa.private 1024 extract public key:
openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM convert private key to PKCS8 (to load in Java):
openssl pkcs8 -topk8 -nocrypt -in rsa.private -inform PEM -out rsa.private.der -outform DER publish the contents of the public key in DNS by adding the following entries to your domain:
_domainkey IN TXT "t=y; o=-;"
dkim._domainkey IN TXT "k=rsa; t=y; h=sha256; v=DKIM1; p=[contents of rsa.public, only between BEGIN and END, on a single line]" once the testing phase is complete, remove "t=y" from the above, to signal the recipients that you are serious about using this method of verification
And then the code is simple:
DKIMSigner(String, String, String) - Constructor for class lazyj.mail.filters.DKIMSigner
DKIM signer
doGet(HttpServletRequest, HttpServletResponse) - Method in class lazyj.ExtendedServlet
Original request from servlet engine comes through here.
doInit() - Method in class lazyj.ExtendedServlet
This is a hook provided for the servlets as a generic way to initialize their local variables, do authentication and so on.
doPost(HttpServletRequest, HttpServletResponse) - Method in class lazyj.ExtendedServlet
Original request from servlet engine comes through here.
Dot - Class in lazyj.page.tags
dot displays an integer value as comma separated groups of 3 digits.
Dot() - Constructor for class lazyj.page.tags.Dot
 
dow - Variable in class lazyj.mail.MailDate
day of week
download(String, String) - Static method in class lazyj.Utils
Download a file at a remote URL to the local disk or to the memory.

E

EmailSender - Class in lazyj.notifications
Send a message as email.
EmailSender() - Constructor for class lazyj.notifications.EmailSender
 
Enc - Class in lazyj.page.tags
enc tag produces an URL-safe encoding of the value.
Enc() - Constructor for class lazyj.page.tags.Enc
 
encode(String) - Static method in class lazyj.Format
Produce an URL encoding of the given text, using the UTF-8 charset
encode(byte[]) - Static method in class lazyj.Utils.Base64Coder
Given a byte array, return its Base64 representation as a String.
encodeArray(Collection<?>) - Static method in class lazyj.DBFunctions
Generate a PostgreSQL array representation of the given one-dimensional collection.
encodeBytes(byte[]) - Static method in class lazyj.DBSession
Convert a byte array to a String with only letters
equals(Object) - Method in class lazyj.CachingStructure
Whether or not two objects are in fact the same structure
equals(Object) - Method in class lazyj.DBSession
 
equals(Object) - Method in class lazyj.mail.Mail
 
equals(Object) - Method in class lazyj.mail.MailDate
Check if two dates are equal.
equals(Object) - Method in class lazyj.mail.MailHeader
 
equals(Object) - Method in class lazyj.mail.MailUtils.MXRecord
 
ERROR - Static variable in class lazyj.Log
Constant for the ERROR log level
esc(String) - Static method in class lazyj.ExtendedServlet
Produce safe SQL strings.
Esc - Class in lazyj.page.tags
esc tag produces an HTML-safe encoding of the value.
Esc() - Constructor for class lazyj.page.tags.Esc
 
esc(String) - Method in class lazyj.RequestWrapper
Get the SQL-safe value of this parameter
escHtml(String) - Static method in class lazyj.ExtendedServlet
Produce save HTML strings.
escHtml(String) - Static method in class lazyj.Format
Transform a text into an HTML-safe string.
escJS(String) - Static method in class lazyj.Format
Create a JS-safe string representation.
escSQL(String) - Static method in class lazyj.Format
Create a SQL-safe version of the given text, to be embedded into SQL queries
execGet() - Method in class lazyj.ExtendedServlet
A servlet must implement at least this method.
execPost() - Method in class lazyj.ExtendedServlet
By default POST request are executed with the same execGet() function.
executeCommand(List<String>) - Static method in class lazyj.commands.SystemCommand
Execute the given command
executeCommand(List<String>, boolean) - Static method in class lazyj.commands.SystemCommand
Execute the given command, optionally redirecting the stderr to stdout
exitCode - Variable in class lazyj.commands.CommandOutput
Exit code, default value is -1 meaning "not set".
ExpirationCache<K,V> - Class in lazyj.cache
This class implements a caching with a maximum lifetime after which the elements are removed.
ExpirationCache() - Constructor for class lazyj.cache.ExpirationCache
Build an expiration cache of unlimited size.
ExpirationCache(int) - Constructor for class lazyj.cache.ExpirationCache
Build an expiration cache with a fixed size.
ExtendedServlet - Class in lazyj
Probably the most important class in the world :)

This class is a wrapper over the original HttpServlet, adding caching and run time limit for the servlets.
ExtendedServlet() - Constructor for class lazyj.ExtendedServlet
 
ExtProperties - Class in lazyj
Utility class to process enhanced .properties file.

Such a file can have a special "include" key, which is a list of comma-separated file names (without the .properties extension) relative to the same base folder.

Each value can contain constructions like: ${other_key} , to include the value of another key in that place This object can monitor an underlying file for modifications and automatically reload the contents of the file when it detects changes.
ExtProperties() - Constructor for class lazyj.ExtProperties
Default constructor, creates a configuration dictionary that has no file backing.
ExtProperties(InputStream) - Constructor for class lazyj.ExtProperties
Load the configuration from an InputStream (such as the one returned by ClassLoader.getResourceAsStream(String)
ExtProperties(String, String) - Constructor for class lazyj.ExtProperties
Load the contents of a .properties file from the sConfDir path.
ExtProperties(String, String, ExtProperties) - Constructor for class lazyj.ExtProperties
Load the contents of a .properties file from the sConfDir path.
ExtProperties(Properties) - Constructor for class lazyj.ExtProperties
Copy constructor
extractAddress(String) - Static method in class lazyj.Format
From a full mail address (eg.
extractMailTitle(String) - Static method in class lazyj.Format
From a full mail address (eg.

F

Factory - Class in lazyj.viewers
Use this factory to get the appropriate viewer for a file name.
Factory() - Constructor for class lazyj.viewers.Factory
 
FATAL - Static variable in class lazyj.Log
Constant for the FATAL log level
FileLinesIterable - Class in lazyj
Iterable object over the lines in a buffer
FileLinesIterable(BufferedReader) - Constructor for class lazyj.FileLinesIterable
Build the iterable over a buffered reader
FileLinesIterator - Class in lazyj
Iterator over the lines in a buffer
FileLinesIterator(BufferedReader) - Constructor for class lazyj.FileLinesIterator
Iterate over the lines in this bufferedReader
FileTypes - Class in lazyj.mail
Mapping of content types based on the file extensions.
FileTypes() - Constructor for class lazyj.mail.FileTypes
 
fillFromDB(DBFunctions) - Method in class lazyj.page.BasePage
For all the tags that have the "db" option attached to them try to get the columns with the same name from the database row.
filter(Map<String, String>, String, Mail) - Method in class lazyj.mail.filters.DKIMSigner
 
filter(Map<String, String>, String, Mail) - Method in interface lazyj.mail.MailFilter
Filter the mail contents and the headers.
finalize() - Method in class lazyj.DateFileWatchdog
 
finalize() - Method in class lazyj.DBFunctions.DBConnection
On object deallocation make sure that the connection is properly closed.
finalize() - Method in class lazyj.DBFunctions
Override the default destructor to properly close any resources in use.
finalize() - Method in class lazyj.FileLinesIterable
 
FINE - Static variable in class lazyj.Log
Constant for the FINE log level
FINER - Static variable in class lazyj.Log
Constant for the FINER log level
FINEST - Static variable in class lazyj.Log
Constant for the FINEST log level
flushSpi() - Method in class lazyj.Utils.Base64Coder
 
Format - Class in lazyj
Utility class providing lots of useful or less useful functions.
Format() - Constructor for class lazyj.Format
 
format(String, String, String) - Method in interface lazyj.page.StringFormat
This is the only method that must be implemented.
format(String, String, String) - Method in class lazyj.page.tags.Checked
If the integer value of this string is positive, return the string "checked", otherwise ""
format(String, String, String) - Method in class lazyj.page.tags.CSV
Convert a string to a CSV-safe representation, escaping the double quotes.
format(String, String, String) - Method in class lazyj.page.tags.Cut
Cuts a string, leaving only the first N characters from it, jumping over tags.
format(String, String, String) - Method in class lazyj.page.tags.Dash
Dashify a string (leave all the letters and digits, everything else is colapsed into '-')
format(String) - Static method in class lazyj.page.tags.Dash
Publicly available method to transform a string into a dashed representation of it, good to be used in rewritten URLs.
format(String, String, String) - Method in class lazyj.page.tags.Date
Implement the "date" tag.
format(String, String, String) - Method in class lazyj.page.tags.DDot
Show nice double values, with a given number of digits after the point.
format(String, String, String) - Method in class lazyj.page.tags.Dot
Integer formatting, split the number into 3-digit groups separated by comma.
format(String, String, String) - Method in class lazyj.page.tags.Enc
Make a string as to be put into an URL
format(String, String, String) - Method in class lazyj.page.tags.Esc
Convert a string into a HTML-safe representation of it.
format(String, String, String) - Method in class lazyj.page.tags.Interval
Simple tag to nicely show the time part of a date.
format(String, String, String) - Method in class lazyj.page.tags.JS
Make a string usable in a JS script, as a string value.
format(String, String, String) - Method in class lazyj.page.tags.NiceDate
Transform a date into something user-friendly ("today", "yesterday" ...)
format(String, String, String) - Method in class lazyj.page.tags.NtoBR
Replace all \n with <BR>
format(String, String, String) - Method in class lazyj.page.tags.Round
Rounds a floating point value
format(String, String, String) - Method in class lazyj.page.tags.Size
Use this to display file sizes.
format(String, String, String) - Method in class lazyj.page.tags.Strip
Implement the "strip" tag.
format(String, String, String) - Method in class lazyj.page.tags.Time
Simple tag to nicely show the time part of a date.
format(String, String, String) - Method in class lazyj.page.tags.UEnc
Reverse function of Enc, takes a previously URL encoded string and shows it normally.
format(String, String, String) - Method in class lazyj.page.tags.Under
Replace non-alpha-numeric character sequences with a single underscore character.
format(String) - Static method in class lazyj.page.tags.Under
Static method to replace non-alpha-numeric character sequences with a single underscore character.
formatBR(String) - Static method in class lazyj.Format
Put HTML line breaks in the place of normal text line breaks.
formatN(String) - Static method in class lazyj.Format
Reverse function of the Format.formatBR(String), converts HTML line breaks into text line breaks
formatOption(Option<?, ?>, BasePage) - Method in interface lazyj.widgets.OptionFormatter
Callback function that further processes each Option.
FrameworkStats - Class in lazyj
Statistics for the framework.
FrameworkStats() - Constructor for class lazyj.FrameworkStats
 
free() - Method in class lazyj.DBFunctions.DBConnection
Mark a previously used connection as free to be used by somebody else

G

GenericLastValuesCache<K,V> - Class in lazyj.cache
Keep a cache of the last used values.
GenericLastValuesCache() - Constructor for class lazyj.cache.GenericLastValuesCache
 
GenericQueryCacher<K,V> - Class in lazyj.cache
Create a cache based on the resultset produced by a DB query.
GenericQueryCacher() - Constructor for class lazyj.cache.GenericQueryCacher
 
get(String) - Static method in class lazyj.cache.Cache
Use this method to retrieve an entry you are interested in.
get(K) - Method in interface lazyj.cache.CacheElement
The cached entry is most probably a hash of some sort.
get(K) - Method in class lazyj.cache.ExpirationCache
 
get(K) - Method in class lazyj.cache.GenericLastValuesCache
 
get(K) - Method in class lazyj.cache.GenericQueryCacher
 
get(String) - Method in class lazyj.DBSession
Get the object that was previously associated with this key.
get(HttpServletRequest, String) - Static method in class lazyj.PageCache
Get the contents generating the key on the fly from the request and the extra modifiers
get(byte[]) - Static method in class lazyj.StringFactory
Get the global string pointer for this byte array
get(char[]) - Static method in class lazyj.StringFactory
Get the global string pointer for this char array
get(String) - Static method in class lazyj.StringFactory
Get the global string pointer for this value
get(String, String) - Method in class lazyj.Utils.Base64Coder
 
getAccessCount() - Static method in class lazyj.StringFactory
Get the total number of accesses to this cache
getActiveConnections() - Static method in class lazyj.DBFunctions
Statistics : get the number of connections per each unique key
getActiveConnectionsCount() - Static method in class lazyj.DBFunctions
Statistics : get the number of connections currently established
getApp() - Method in class lazyj.DBSession
Get the application for which this session is valid.
getApp() - Method in class lazyj.ExtendedServlet
Get the application number.
getb(String, boolean) - Method in class lazyj.DBFunctions
Get the boolean value of a column
getb(int, boolean) - Method in class lazyj.DBFunctions
Get the boolean value of a column
getb(String, boolean) - Method in class lazyj.ExtendedServlet
 
getb(String, boolean) - Method in class lazyj.ExtProperties
Parse an option to return the boolean value.
getb(String, boolean) - Method in class lazyj.RequestWrapper
Get the boolean value
getBytes(int) - Method in class lazyj.DBFunctions
Get the raw bytes of this column
getBytes(String) - Method in class lazyj.DBFunctions
Get the raw bytes of this column
getCacheAccesses() - Static method in class lazyj.ExtendedServlet
Statistics: get the total number of accesses to pages that could be cached
getCacheContent() - Static method in class lazyj.PageCache
Get the entrire contents of the cache.
getCacheHits() - Static method in class lazyj.ExtendedServlet
Statistics: get the number of cache hits
getCacheKeyModifier() - Method in class lazyj.ExtendedServlet
Override this method to return any value that would alter the cache.
getCacheSize() - Static method in class lazyj.DBSession
Statistics function: get the number of sessions that are kept in the memory cache.
getCacheSize() - Static method in class lazyj.StringFactory
Statistics function: the number of strings in the cache.
getCacheTimeout() - Method in class lazyj.ExtendedServlet
Method to specify the maximum life time of the cached contents.
getCallingServlet() - Method in class lazyj.page.Module
This method will return the calling servlet, if it was set.
getChildren() - Method in class lazyj.widgets.Tree
List of children.
getClassInstance(String) - Method in class lazyj.notifications.Sender
Load and create a class instance, with this order of loading: extra class loader (set by Sender.setClassLoader(ClassLoader)) class loader of the current thread current thread context class loader class loader of this object instance JVM default class loader
If none of these succeeds then return null.
getClassLoader() - Method in class lazyj.notifications.Sender
Get the extra class loader
getClientIP() - Method in class lazyj.DBSession
Get the client's IP address
getClosedConnectionsCount() - Static method in class lazyj.DBFunctions
Statistics : the total number of closed connection to the databases until now.
getClosedOnFinalizeConnectionsCount() - Static method in class lazyj.DBFunctions
Statistics : the total number of closed connection to the databases executed when the object is deallocated.
getColumnNames() - Method in class lazyj.DBFunctions
A shortcut to find out the column names for this query
getConfigFileName() - Method in class lazyj.ExtProperties
Get the name of the file that was loaded.
getConfigFolder(String, String[]) - Static method in class lazyj.Utils
Find out which standard path contains one of the given files
getConnectFailReason() - Method in class lazyj.DBFunctions
Get the reason why the last connect() attempt has failed.
getConnection() - Method in class lazyj.DBFunctions.DBConnection
Get the established JDBC connection for direct access to the database.
getConnection() - Method in class lazyj.DBFunctions
Get a raw database connection wrapper.
getContent() - Method in class lazyj.CachingStructure
Get the contents.
getContent(String) - Method in class lazyj.page.Module
This is called by BasePage to obtain the page to put in the place of the tag.
getContent(Map<String, String>) - Method in class lazyj.page.Module
This is the work that the module does.
getContentAsString() - Method in class lazyj.CachingStructure
 
getContents() - Method in class lazyj.cache.GenericLastValuesCache
 
getContents() - Method in class lazyj.page.BasePage
Apply the dynamic values to the initial template to obtain a StringBuilder representation of the final data.
getContents() - Method in interface lazyj.page.Page
Get the (dynamic) content.
getContents() - Method in class lazyj.widgets.Select
 
getCookie(String) - Method in class lazyj.ExtendedServlet
Get the value of a specific cookie
getCookie(String) - Method in class lazyj.RequestWrapper
Get the value of a specific cookie
getCurrentPage() - Method in class lazyj.ExtendedServlet
Compose the full URL to the current page.
getCursorType() - Method in class lazyj.DBFunctions
 
getd(String) - Method in class lazyj.DBFunctions
Get the double value of a column.
getd(String, double) - Method in class lazyj.DBFunctions
Get the double value of a column.
getd(int) - Method in class lazyj.DBFunctions
Get the double value of a column.
getd(int, double) - Method in class lazyj.DBFunctions
Get the double value of a column.
getd(String, double) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a double value.
getd(String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a double value.
getd(String, double) - Method in class lazyj.ExtProperties
Get the double value for a key.
getd(String, double) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a double value.
getd(String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a double value.
getDate(String) - Method in class lazyj.DBFunctions
Get the column contents converted to Date.
getDate(String, Date) - Method in class lazyj.DBFunctions
Get the column contents converted to Date.
getDate(int) - Method in class lazyj.DBFunctions
Get the column contents converted to Date.
getDate(int, Date) - Method in class lazyj.DBFunctions
Get the value of a column as a Date object.
getDate() - Method in class lazyj.mail.MailDate
Get the contents of this object in a Date format.
getDB() - Method in class lazyj.cache.GenericQueryCacher
Get a query loaded with a query that generates the key on the first column and the value on the second one.
getDBTags() - Method in class lazyj.page.BasePage
Get the template fields that have the "db" option.
getDecodedInputStream() - Method in class lazyj.mail.Attachment
Get the decoded input stream.
getDefaultTree(DBFunctions) - Static method in class lazyj.widgets.Tree
Build a tree upon a simple query that has ID on the first column, parent ID on the second, and value to be displayed on the third.
getDelay(TimeUnit) - Method in class lazyj.DBSession
Implementation of Delayed
getDescription() - Method in class lazyj.DBFunctions.DBConnection
Get the current description
getDomain() - Method in class lazyj.ExtendedServlet
Method to specify the domain for which the cookies will be set by default (session cookie included).
getEquivalentInsert(String) - Method in class lazyj.DBFunctions
Get the SQL INSERT statement that would generate the current row with all the columns (their aliases more precisely).
getEquivalentInsert(String, String[]) - Method in class lazyj.DBFunctions
Get the SQL INSERT statement that would generate the current row, for the given list of columns
getEquivalentInsert(String, String[], Map<String, ?>) - Method in class lazyj.DBFunctions
Get the SQL INSERT statement that would generate the current row, for the given list of columns
getf(String) - Method in class lazyj.DBFunctions
Get the float value of a column.
getf(String, float) - Method in class lazyj.DBFunctions
Get the float value of a column.
getf(int) - Method in class lazyj.DBFunctions
Get the float value of a column.
getf(int, float) - Method in class lazyj.DBFunctions
Get the float value of a column.
getf(String, float) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a float value.
getf(String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a float value.
getf(String, float) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a float value.
getf(String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a float value.
getFile() - Method in class lazyj.DateFileWatchdog
Get the file that is monitored for changes
getFileLines(String) - Static method in class lazyj.Utils
Get an iterator over the lines in a file
getFrameworkRequests() - Static method in class lazyj.ExtendedServlet
Framework statistics: get the total number of requests serviced by the framework.
getFullname() - Method in class lazyj.DBSession
Get the full name of the user that is associated with this session.
getHitRatio() - Static method in class lazyj.StringFactory
Calculate the cache efficiency (hits / total requests)
getHostAddr() - Method in class lazyj.ExtendedServlet
Get the client host address (IP).
getHostName() - Method in class lazyj.ExtendedServlet
Get the nice host name for the client that made the current request.
getHostName(String) - Static method in class lazyj.Utils
Try to reverse a given IP address
getHTTPDate(Date) - Static method in class lazyj.RequestWrapper
get the http-style formatted date
geti(String) - Method in class lazyj.DBFunctions
Get the value of this column as int.
geti(String, int) - Method in class lazyj.DBFunctions
Get the value of this column as int, returning the default value if the conversion is not possible.
geti(int) - Method in class lazyj.DBFunctions
Get the value of this column as int, returning the default value of 0 if the conversion is not possible.
geti(int, int) - Method in class lazyj.DBFunctions
Get the integer value of a column.
geti(String) - Method in class lazyj.DBSession
Get the integer value associated with this key, with the default 0.
geti(String, int) - Method in class lazyj.DBSession
Get the integer value associated with this key.
geti(String, int) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as an integer value.
geti(String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as an integer value.
geti(String, int) - Method in class lazyj.ExtProperties
Get the integer value for a key.
geti(Map<String, String>, String, int) - Static method in class lazyj.page.Module
Method to easily extract an integer parameter from the module arguments.
geti(String, int) - Method in class lazyj.RequestWrapper
Get the value of a parameter as an integer value.
geti(String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as an integer value.
getID() - Method in class lazyj.DBSession
Get the unique ID for this session.
getIgnoreRatio() - Static method in class lazyj.StringFactory
Calculate the percentage of requests that were ignored because of size limits.
getInputStream() - Method in class lazyj.mail.Attachment
Get the raw input stream, as seen when looking at the mail source
getIntArray(String) - Method in class lazyj.DBFunctions
Extract a PostgreSQL array into a Collection of Integer objects
getIntArray(int) - Method in class lazyj.DBFunctions
Extract a PostgreSQL array into a Collection of Integer objects
getKey(DBFunctions) - Method in class lazyj.widgets.BasicDBOptionList
 
getKey() - Method in class lazyj.widgets.BasicDBTreeProvider
 
getKey(DBFunctions) - Method in class lazyj.widgets.DBOptionList
Get the key of this option.
getKey() - Method in interface lazyj.widgets.Option
Get the identifier for this entry
getKey() - Method in class lazyj.widgets.Tree
Key of this node.
getKey() - Method in interface lazyj.widgets.TreeProvider
Get the key object (unique identifier of the node).
getKeyForValue(V) - Method in class lazyj.cache.GenericQueryCacher
 
getKeyForValue(V) - Method in interface lazyj.cache.ReversableUniqueCache
Reverse query, get the key associated with a value.
getKeys() - Method in class lazyj.cache.ExpirationCache
Get the keys currently in the cache
getKeySet() - Static method in class lazyj.cache.Cache
Method to discover all the registered entries.
getKeysForValue(V) - Method in class lazyj.cache.GenericQueryCacher
 
getKeysForValue(V) - Method in interface lazyj.cache.ReversableMultivaluesCache
 
getl(String) - Method in class lazyj.DBFunctions
Get the long value of a column.
getl(String, long) - Method in class lazyj.DBFunctions
Get the long value of a column.
getl(int) - Method in class lazyj.DBFunctions
Get the long value of a column.
getl(int, long) - Method in class lazyj.DBFunctions
Get the long value of a column.
getl(String, long) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a long value.
getl(String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a long value.
getl(String, long) - Method in class lazyj.ExtProperties
Get the long value for a key.
getl(String, long) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a long value.
getl(String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a long value.
getLastGeneratedKey() - Method in class lazyj.DBFunctions
Get the last generated key, after DBFunctions.setLastGeneratedKey(boolean) was called with true
getLastGeneratedKeyLong() - Method in class lazyj.DBFunctions
Get the last generated key, after DBFunctions.setLastGeneratedKey(boolean) was called with true
getLastPage() - Method in class lazyj.DBSession
This is the last page that the user tried to access.
getLazyjConfigFolder() - Static method in class lazyj.Utils
Try to figure out where the configuration files for LazyJ are, looking, in this order, at:
env(lazyj.config.folder) ./config/lazyj ./config . ../config/lazyj ../config .. $HOME/.lazyj /etc/lazyj If the system property lazyj.config.folder is defined it will quicky return it.
getLevel(String) - Static method in class lazyj.Log
Get the current logging level for a component
getLevel() - Method in interface lazyj.widgets.Option
Indentation level (>= 0)
getLimit() - Method in class lazyj.LRUMap
Get the maximum number of elements that will be stored in the cache
getLogDir(String) - Static method in class lazyj.Log
For a given component, get the folder where the log files should be put.
getMaximumSize() - Method in class lazyj.cache.GenericLastValuesCache
This function gives the maximum number of entries that are allowed in the cache.
getMaxRunTime() - Method in class lazyj.ExtendedServlet
Method to specify the maximum run time for a page.
getMetaData() - Method in class lazyj.DBFunctions
Get the meta information for the current query.
getMIMETypeOf(String) - Static method in class lazyj.mail.FileTypes
Given a full file name, this method returns the MIME content type based on the file extension.
getMIMETypeOfExtension(String) - Static method in class lazyj.mail.FileTypes
Get the MIME type of the given extension
getModuleName() - Method in class lazyj.page.Module
The module must also implement this method, to return a nice name to debug.
getMXServers(String) - Static method in class lazyj.mail.MailUtils
Get the mail servers for the given domain name
getOnlineUsers() - Method in class lazyj.ExtendedServlet
Get the number of online users for the current application.
getOpenedConnectionsCount() - Static method in class lazyj.DBFunctions
Statistics : the total number of opened connection to the databases until now.
getOptions() - Method in class lazyj.widgets.DBOptionList
 
getOptions() - Method in interface lazyj.widgets.OptionProvider
Get the collection of options.
getOptions() - Method in class lazyj.widgets.Tree
Convert the tree to a collection of Option objects that are good to be used in a Select.
getOptionsFullPath(String) - Method in class lazyj.widgets.Tree
Get the options having as value the concatenated values of the parents and their own, separated by the specified separator.
getOriginalHeader() - Method in class lazyj.mail.Header
Get the string that was used to build this object.
getPage(String) - Static method in class lazyj.page.BasePage
Create a page based on a predefined template.
getPagesList(int) - Static method in class lazyj.DBSession
For statistics, get a list of usernames and the pages that they are currently visiting
getParent() - Method in class lazyj.widgets.BasicDBTreeProvider
 
getParent() - Method in interface lazyj.widgets.TreeProvider
Get the parent id (should match the TreeProvider.getKey() for another entry).
getPosition() - Method in class lazyj.DBFunctions
Get the current position in the result set
getPriority() - Method in class lazyj.mail.MailUtils.MXRecord
Get the MX priority
getProgramOutput(String) - Method in class lazyj.viewers.Viewer
Executes the given program and passes the contents of the InputStream to the programs's standard in and returns the text that the program produces at its standard output.
getProperties() - Method in class lazyj.ExtProperties
Get a Properties view of this object.
getQueryCount() - Static method in class lazyj.DBFunctions
Statistics : get the total number of executed queries.
getRealSize() - Method in class lazyj.CachingStructure
Get the memory footprint of the cached content.
getRefreshTime() - Method in interface lazyj.cache.CacheElement
The desired refresh time, in seconds.
getRefreshTime() - Method in class lazyj.cache.ExpirationCache
 
getRefreshTime() - Method in class lazyj.cache.GenericLastValuesCache
 
getResDir() - Method in class lazyj.page.BasePage
This method should be overridden by an object internal to each zone, that knows where all the HTML templates for that zone reside.
getResDir() - Method in class lazyj.page.ModulePage
Return the default path for the module html templates, as the value for the "module.res.dir" key from the "modules.properties" file that is found in the folder indicated by the "lazyj.config.folder" system property.
gets(String) - Method in class lazyj.DBFunctions
Get the contents of a column from the current row based on its name.
gets(String, String) - Method in class lazyj.DBFunctions
Get the contents of a column from the current row based on its name.
gets(int) - Method in class lazyj.DBFunctions
Get the contents of a column from the current row based on its position
gets(int, String) - Method in class lazyj.DBFunctions
Get the contents of a column from the current row based on its position.
gets(String) - Method in class lazyj.DBSession
Get the string value for this key.
gets(String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a string.
gets(String, String) - Method in class lazyj.ExtendedServlet
Get the value of a parameter as a string.
gets(String) - Method in class lazyj.ExtProperties
Get the String value for a given key.
gets(String, String) - Method in class lazyj.ExtProperties
Get the String value for a given key, returning the given default value if the key is not defined.
gets(String, String, boolean) - Method in class lazyj.ExtProperties
Get the String value for a given key, returning the given default value if the key is not defined.
gets(Map<String, String>, String, String) - Static method in class lazyj.page.Module
Method to easily extract a string parameter from the module arguments.
gets(String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a string.
gets(String, String) - Method in class lazyj.RequestWrapper
Get the value of a parameter as a string
getServer() - Method in class lazyj.mail.MailUtils.MXRecord
Get server name
getServerUptime() - Static method in class lazyj.ExtendedServlet
Statistics: get the server uptime
getSession(ExtendedServlet) - Static method in class lazyj.DBSession
This is the entry point for the session engine.
getSessionsList(int, boolean) - Static method in class lazyj.DBSession
For internal statistics, get the list of all active sessions for a given application.
getSpi(String) - Method in class lazyj.Utils.Base64Coder
 
getString() - Method in class lazyj.viewers.HTMLViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/bin/html.sh" that will convert the original input into a string
getString() - Method in class lazyj.viewers.PDFViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/bin/pdf.sh" that will convert the original input into a string
getString() - Method in class lazyj.viewers.RTFViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/bin/rtf.sh" that will convert the original input into a string
getString() - Method in class lazyj.viewers.SPAMViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/portal/bin/smtp_spamfilter/check_outgoing.sh" that will check if the original input (an email body) is a spam or not.
getString() - Method in class lazyj.viewers.TXTViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/bin/txt.sh" that will convert the original input into a string
getString() - Method in class lazyj.viewers.Viewer
This is to be implemented by every viewer.
getString() - Method in class lazyj.viewers.WordViewer
This just calls Viewer.getProgramOutput(String) for "/usr/jserv/bin/word.sh" that will convert the original input into a string
getStringArray(String) - Method in class lazyj.DBFunctions
Extract a PostgreSQL array into a Collection of StriG96Lng objects
getStringArray(int) - Method in class lazyj.DBFunctions
Extract a PostgreSQL array into a Collection of String objects
getTagsSet() - Method in class lazyj.page.BasePage
Get the set of all tags in the template
getText() - Method in class lazyj.mail.Attachment
Convert the attachment to a String, using the encoding specified in the attachment header, if any, otherwise use the default "us-ascii" encoding.
getText(String) - Method in class lazyj.mail.Attachment
Convert the attachment to a String, using the supplied encoding.
getToAsList() - Method in class lazyj.notifications.Message
Get the list of recipients as a comma-separated string.
getTopPages(int) - Static method in class lazyj.FrameworkStats
Get the most accessed pages (servlets)
getTopZones(int) - Static method in class lazyj.FrameworkStats
Get the most accessed zones
getUpdateCount() - Method in class lazyj.DBFunctions
Get the number of rows affected by the last SQL update query.
getUserAgent() - Method in class lazyj.DBSession
Get user's browser
getUsername() - Method in class lazyj.DBSession
Get the account associated with this session.
getValue(String) - Method in class lazyj.mail.Header
Get the value for a given header key.
getValue(DBFunctions) - Method in class lazyj.widgets.BasicDBOptionList
 
getValue() - Method in class lazyj.widgets.BasicDBTreeProvider
 
getValue(DBFunctions) - Method in class lazyj.widgets.DBOptionList
Get the value of this option
getValue() - Method in interface lazyj.widgets.Option
Get the value to be displayed
getValue() - Method in class lazyj.widgets.Tree
Value for this node.
getValue() - Method in interface lazyj.widgets.TreeProvider
Get the value that is to be displayed for this node.
getValues() - Method in class lazyj.cache.ExpirationCache
Get the values in the cache
getValues() - Method in class lazyj.cache.GenericQueryCacher
Get the values collection
getValues(String) - Method in class lazyj.ExtendedServlet
Get all the values of a parameter.
getValues(String) - Method in class lazyj.RequestWrapper
Get all the values of a parameter.
getValuesMap() - Method in class lazyj.DBFunctions
Convert the result set in a column name -> value mapping
getViewer(String, Object) - Static method in class lazyj.viewers.Factory
Factory to build a viewer for the given file name.
getWrapper() - Method in class lazyj.page.Module
This default method returns a wrapper for the HTML that is generated by all the modules.

H

hasAttachments() - Method in class lazyj.mail.Mail
Find out if the mail has some attachments.
hashCode() - Method in class lazyj.CachingStructure
Rewrite the default hash distribution method
hashCode() - Method in class lazyj.DBSession
 
hashCode() - Method in class lazyj.mail.Mail
 
hashCode() - Method in class lazyj.mail.MailDate
Hash code for this object
hashCode() - Method in class lazyj.mail.MailHeader
 
hashCode() - Method in class lazyj.mail.MailUtils.MXRecord
 
hasNext() - Method in class lazyj.FileLinesIterator
 
Header - Class in lazyj.mail
Decodes mail headers and provides methods to easily extract them.
Header(String) - Constructor for class lazyj.mail.Header
Constructor based on the extracted header of a mail, attachment or something else similar.
hexChar(int) - Static method in class lazyj.Format
Get the hexa digit for this integer value
hmHeaders - Variable in class lazyj.mail.MailHeader
Supplemental headers to be added when sending the mail
hour - Variable in class lazyj.mail.MailDate
hour in day
HTML_OPTION_KEEP_NEWLINES - Static variable in class lazyj.Utils
Don't collapse multiple new lines in a single new line
HTML_OPTION_KEEP_SPACES - Static variable in class lazyj.Utils
Don't collapse multiple blank characters in a single space.
htmlToText(String) - Static method in class lazyj.Utils
Simple convertor from HTML to plain text.
htmlToText(String, int) - Static method in class lazyj.Utils
Simple convertor from HTML to plain text.
HTMLViewer - Class in lazyj.viewers
Executes "/usr/jserv/bin/html.sh" to convert a HTML to a plain text representation.
HTMLViewer(Object) - Constructor for class lazyj.viewers.HTMLViewer
The input to convert.

I

iAccesses - Variable in class lazyj.CachingStructure
Number of accesses to this cache entry.
iAttachID - Variable in class lazyj.mail.AttachHeader
Unique attachment ID, set by the decoder
iFileSize - Variable in class lazyj.mail.AttachHeader
This will be set by the decoder (Mail) to the actual size of this attachment
iFolder - Variable in class lazyj.mail.MailHeader
Folder ID; set by higher-level code
iMailID - Variable in class lazyj.mail.AttachHeader
Unique mail ID, set by higher level code
iMailID - Variable in class lazyj.mail.MailHeader
Unique mail ID; set by higher-level code
iMailSize - Variable in class lazyj.mail.MailHeader
Total size of this mail; set by higher-level code.
INFO - Static variable in class lazyj.Log
Constant for the INFO log level
init(ExtProperties, String) - Method in class lazyj.notifications.EmailSender
 
init(ExtProperties, String) - Method in class lazyj.notifications.Sender
This method is called by Notifier after an instance of a class implementing this interface is created with the default constructor.
init(ExtProperties, String) - Method in class lazyj.notifications.YMSender
 
initMultipartRequest(String, int) - Method in class lazyj.ExtendedServlet
This method should be called when the servlet expects a file upload from the client.
initMultipartRequest(String, int) - Method in class lazyj.RequestWrapper
This method should be called when the servlet expects a file upload from the client.
Interval - Class in lazyj.page.tags
interval decodes the value into a time interval and shows it in a human readable format
Interval() - Constructor for class lazyj.page.tags.Interval
 
invalidate() - Method in class lazyj.DBSession
This method will delete all the information about this session.
iPriority - Variable in class lazyj.mail.MailHeader
Message priority.
iSentOk - Variable in class lazyj.mail.Sendmail
Result of the sending operation.
isLoggable(int) - Method in class lazyj.ExtendedServlet
Find out whether or not the current page is able to log this level of debug.
isLoggable(int, String) - Static method in class lazyj.Log
Check if a message of a given level for a given component will be actually logged.
isMySQL() - Method in class lazyj.DBFunctions
Check if this connection is done to a MySQL database (if we are using the MySQL JDBC driver)
isPostgreSQL() - Method in class lazyj.DBFunctions
Check if this connection is done to a PostgreSQL database (if we are using the PG JDBC driver)
isReadOnly() - Method in class lazyj.DBFunctions.DBConnection
Check the (cached) status of this connection.
isReadOnly() - Method in class lazyj.DBFunctions
Get the current value of the read-only flag
isSessionIPProtected() - Method in class lazyj.ExtendedServlet
Flag to set whether or not the session is valid only when used from the first IP that generated the session.
isSource - Variable in class lazyj.viewers.Viewer
The InputStream to read the contents of the file from.
iStatus - Variable in class lazyj.mail.MailHeader
Mail status; set by higher-level code (0=new, 1=read)
iterator() - Method in class lazyj.FileLinesIterable
 

J

JS - Class in lazyj.page.tags
js tag produces an JavaScript-safe encoding of the value.
JS() - Constructor for class lazyj.page.tags.JS
 

K

keySet() - Method in class lazyj.cache.GenericQueryCacher
Get the key set
keysSpi() - Method in class lazyj.Utils.Base64Coder
 

L

lAttachments - Variable in class lazyj.mail.Mail
List of attachments that were decoded when the email was constructed
lazyj - package lazyj
Here you find the database wrapper, servlet wrapper, logger, formatting utilities and other utility classes.
lazyj.cache - package lazyj.cache
Content cache management classes.
lazyj.commands - package lazyj.commands
 
lazyj.mail - package lazyj.mail
Utility classes for sending and decoding emails.
lazyj.mail.comparators - package lazyj.mail.comparators
Various sorting methods for lists of MailHeader objects.
lazyj.mail.filters - package lazyj.mail.filters
 
lazyj.notifications - package lazyj.notifications
Notifications framework.
lazyj.page - package lazyj.page
The template framework.
lazyj.page.tags - package lazyj.page.tags
Formatting tags for dynamic values.
lazyj.viewers - package lazyj.viewers
Various converters to plain text from external formats.
lazyj.widgets - package lazyj.widgets
This package is a collection of useful HTML helper objects.
length() - Method in class lazyj.CachingStructure
Get the size of the cached content.
lGenerated - Variable in class lazyj.CachingStructure
The time when this cache entry was generated
lifetime - Variable in class lazyj.CachingStructure
Lifetime, in milliseconds, from the moment of its registration in the PageCache.
LINE_MAX_LENGTH - Static variable in class lazyj.mail.Sendmail
What is the current limit for a line.
linesCount() - Method in class lazyj.commands.CommandOutput
Get the number of lines in stdout
linesCountStderr() - Method in class lazyj.commands.CommandOutput
Get the number of lines in stderr
lInvalidAddresses - Variable in class lazyj.mail.Sendmail
Recipient addresses that were rejected by the mail server
listToSet(String) - Static method in class lazyj.notifications.Message
Split a comma-separated list into a set of distinct names
log(String) - Method in class lazyj.ExtendedServlet
Override the method provided by the Java Servlet Api to log messages as DEBUG
log(int, String) - Method in class lazyj.ExtendedServlet
Log messages with a given level of the problem.
log(int, String, Object) - Method in class lazyj.ExtendedServlet
Special logging for exceptions.
Log - Class in lazyj
Logging facility.
Log() - Constructor for class lazyj.Log
 
log(int, String) - Static method in class lazyj.Log
Log a message of a given severity for a given component
log(int, String, String) - Static method in class lazyj.Log
Log a message of a given severity for a given component
log(int, String, String, Object) - Static method in class lazyj.Log
Log a message of a given severity for a given component, with an attached object.
LRUMap<K,V> - Class in lazyj
A Map with restricted size and LRU behavior (when the size is reached the oldest unused entry is deleted to make some space for the new entry).

The implementation is based on LinkedHashMap, thus it is not thread safe.
LRUMap(int) - Constructor for class lazyj.LRUMap
 
LRUMap(int, float) - Constructor for class lazyj.LRUMap
 
lServerStarted - Static variable in class lazyj.ExtendedServlet
This is when the server was started

M

Mail - Class in lazyj.mail
Wrapper class for a mail.
Mail() - Constructor for class lazyj.mail.Mail
Simple constructor, initializing the internal fields to nothing at all (as expected :) )
Mail(String, String) - Constructor for class lazyj.mail.Mail
This constructor is used by the mail section.
MailDate - Class in lazyj.mail
Decode/encode the dates from the mail headers with various format fallbacks.
MailDate(Date) - Constructor for class lazyj.mail.MailDate
Construct an object based on a Date
MailDate(String) - Constructor for class lazyj.mail.MailDate
Constructor based on a String representation of a date.
MailDate(MailDate) - Constructor for class lazyj.mail.MailDate
Copy constructor.
MailFilter - Interface in lazyj.mail
Classes that can alter the contents of an email should implement this interface.
MailHeader - Class in lazyj.mail
Wrapper for the global mail headers that extracts typical fields into the class fields.
MailHeader() - Constructor for class lazyj.mail.MailHeader
Empty constructor, initialize fields to default values.
MailHeader(String) - Constructor for class lazyj.mail.MailHeader
Initialize the fields based on this actual header.
MailUtils - Class in lazyj.mail
Mail-related helper functions
MailUtils() - Constructor for class lazyj.mail.MailUtils
 
MailUtils.MXRecord - Class in lazyj.mail
Wrapper around a MX DNS entry
main(String[]) - Static method in class lazyj.mail.Header
Testing code
main(String[]) - Static method in class lazyj.mail.MailDate
Testing code
main(String[]) - Static method in class lazyj.page.BasePage
Testing code
main(String[]) - Static method in class lazyj.page.tags.Cut
Debug method
main(String[]) - Static method in class lazyj.page.tags.Strip
Debug method
main(String[]) - Static method in class lazyj.Utils
 
makeReadOnly() - Method in class lazyj.ExtProperties
Make this dictionary read-only, to prevent writes from other pieces of code that see this object.
mdDate - Variable in class lazyj.mail.MailHeader
The Date field of the header
Message - Class in lazyj.notifications
The messages are passed by the application through a Notifier, to be delivered by the implementations of Sender specified in the configuration of the Notifier.
Message(String, String, String, String) - Constructor for class lazyj.notifications.Message
 
Message(String, Collection<String>, String, String) - Constructor for class lazyj.notifications.Message
 
mHeaders - Variable in class lazyj.mail.Header
Map of key-value pairs of the header fields.
min - Variable in class lazyj.mail.MailDate
minute in hour
modify(String, Object) - Method in class lazyj.page.BasePage
Assign a value to a tag, only if this tag wasn't assigned at a previous time.
modify(Map<?, ?>) - Method in class lazyj.page.BasePage
Set a bulk of tags in one move.
Module - Class in lazyj.page
Any dynamic module that can be called by the BasePage to show some dynamic content must extend this class.
Module() - Constructor for class lazyj.page.Module
 
ModulePage - Class in lazyj.page
Wrapper class for HTML templates loaded from modules.
ModulePage(String) - Constructor for class lazyj.page.ModulePage
Read the indicated html template from the disk, relative to the folder specified by ModulePage.getResDir()
month - Variable in class lazyj.mail.MailDate
month
moveNext() - Method in class lazyj.DBFunctions
Jump to the next row in the result
moveNext() - Method in class lazyj.widgets.DBTreeProvider
 
moveNext() - Method in interface lazyj.widgets.TreeProvider
Go to the next entry in the list.
mpRequest - Variable in class lazyj.ExtendedServlet
Object used for file uploading.
mReverse - Variable in class lazyj.cache.GenericQueryCacher
Reverse values
mValues - Variable in class lazyj.cache.GenericQueryCacher
Cache container
mValues - Variable in class lazyj.page.BasePage
Values for the tags

N

next() - Method in class lazyj.FileLinesIterator
 
NiceDate - Class in lazyj.page.tags
nicedate translates the value (a date) into a nice human readable form.
NiceDate() - Constructor for class lazyj.page.tags.NiceDate
 
Notifier - Class in lazyj.notifications
Notification hub.
Notifier(ExtProperties) - Constructor for class lazyj.notifications.Notifier
 
Notifier(ExtProperties, ClassLoader) - Constructor for class lazyj.notifications.Notifier
If you want to load arbitrary classes from one of the senders you should use this method, giving as argument this.getClass().getClassLoader().
NtoBR - Class in lazyj.page.tags
ntobr tag replaces all \n occurences with <BR>
NtoBR() - Constructor for class lazyj.page.tags.NtoBR
 

O

Option<K,V> - Interface in lazyj.widgets
Each option is identified by a key (unique or not) and a value that is to be displayed.
OptionFormatter - Interface in lazyj.widgets
Implement this interface to be able to process yourself each Option.
OptionProvider<K,V> - Interface in lazyj.widgets
Simple interface implemented by all the classes that can provide a list of options.
os - Variable in class lazyj.page.BasePage
Output stream, to write the generated HTML to.
osOut - Variable in class lazyj.ExtendedServlet
OutputStream to the client
overwrite(K, V, long) - Method in class lazyj.cache.ExpirationCache
Add a new value in the cache for the given key, overwriting if necessary the previous entry.

P

Page - Interface in lazyj.page
Very simplistic definition of a page.
PageCache - Class in lazyj
This is the page cache.
parse(String) - Static method in class lazyj.page.Module
This method parses the argument string to obtain the key-value pairs for the arguments.
parseDate(String) - Static method in class lazyj.Format
Transform a string that represents a Date into a real Date object.
parseOption(String, String, String, boolean) - Method in class lazyj.ExtProperties
Parse a value to include other keys
PDFViewer - Class in lazyj.viewers
Executes "/usr/jserv/bin/pdf.sh" to convert a PDF to a plain text representation.
PDFViewer(Object) - Constructor for class lazyj.viewers.PDFViewer
The input to convert.
point(double) - Static method in class lazyj.Format
Show a nice number, with the number of decimal places chosen automatically depending on the number to format
propToJDBC(Properties) - Static method in class lazyj.DBFunctions
Build a JDBC URL connection string for a bunch of parameters
put(K, V, long) - Method in class lazyj.cache.ExpirationCache
Put a value in the cache with a maximum lifetime.
put(String, Serializable) - Method in class lazyj.DBSession
Set a session variable, by associating a value with an unique key.
put(HttpServletRequest, String, byte[], long, String) - Static method in class lazyj.PageCache
Cache some arbitrary contents
put(String, String) - Method in class lazyj.Utils.Base64Coder
 
putSpi(String, String) - Method in class lazyj.Utils.Base64Coder
 
pwOut - Variable in class lazyj.ExtendedServlet
PrintWriter to the client.

Q

query(String) - Method in class lazyj.DBFunctions
Execute a query.
query(String, boolean, Object...) - Method in class lazyj.DBFunctions
Execute an error and as an option you can force to ignore any errors, no to log them if you expect a query to fail.
quickSend(Mail) - Static method in class lazyj.mail.Sendmail
Convenience mail for quick sending of emails.

R

reader() - Method in class lazyj.commands.CommandOutput
Read the stdout content
readerStderr() - Method in class lazyj.commands.CommandOutput
Read the stderr content
readFile(String) - Static method in class lazyj.Utils
Read the contents of a text file, in UTF-8
readFile(String, String) - Static method in class lazyj.Utils
Read the contents of a text file, in an arbitrary character set
readKey(DBFunctions) - Method in class lazyj.cache.GenericQueryCacher
Get the key object from the current DB row
readResolve() - Method in class lazyj.DBSession
Overriden method to set the calling page to null when deserializing.
readValue(DBFunctions) - Method in class lazyj.cache.GenericQueryCacher
Get the value object from the current DB row
redirect(String) - Method in class lazyj.ExtendedServlet
Wrapper method for the actual redirect, that keeps track if there was such an opperation.
refresh(String) - Static method in class lazyj.cache.Cache
Force a refresh of a cache entry.
refresh() - Method in interface lazyj.cache.CacheElement
Update the contents of the cache entry.
refresh() - Method in class lazyj.cache.ExpirationCache
 
refresh(K) - Method in class lazyj.cache.GenericLastValuesCache
Force a refresh of this key.
refresh() - Method in class lazyj.cache.GenericLastValuesCache
 
refresh() - Method in class lazyj.cache.GenericQueryCacher
 
register(String, CacheElement<?, ?>) - Static method in class lazyj.cache.Cache
Register an element into the Cache.
register(BoundedThreadContainer) - Static method in class lazyj.ThreadsMonitor
Register a thread that must be allowed to run but for a limited amount of time.
registerExactTag(String, StringFormat) - Static method in class lazyj.page.BasePage
This allows the programmer to implement new formatting options and to dynamically make them visible by registering them here.
registerExtension(String, String) - Static method in class lazyj.mail.FileTypes
Register a new file extension
registerFilter(MailFilter) - Method in class lazyj.mail.Sendmail
Register another filter that is to be called before sending each mail
registerRegexpTag(String, StringFormat) - Static method in class lazyj.page.BasePage
This allows the programmer to implement new formatting options and to dynamically make them visible by registering them here.
relative(int) - Method in class lazyj.DBFunctions
Jump an arbitrary number of rows.
relaxedHeader(String, String) - Static method in class lazyj.mail.filters.DKIMSigner
Implement the "relaxed" method for headers
reload() - Method in class lazyj.ExtProperties
Re-read the same configuration file.
remove(K) - Method in class lazyj.cache.ExpirationCache
Remove an entry from the expiration queue
remove(K) - Method in class lazyj.cache.GenericLastValuesCache
Remove the entry for this key, so that the next request will force a refresh, of this key only.
remove() - Method in class lazyj.FileLinesIterator
 
removeDuplicates(List<MailUtils.MXRecord>) - Static method in class lazyj.mail.MailUtils
Remove servers that show up more than once in a MX list of a domain.
removeEldestEntry(Map.Entry<K, V>) - Method in class lazyj.LRUMap
 
removeHeader(String) - Method in class lazyj.mail.filters.DKIMSigner
Remove a header from the signature
removeNodeSpi() - Method in class lazyj.Utils.Base64Coder
 
removeSpi(String) - Method in class lazyj.Utils.Base64Coder
 
replace(String, String, String) - Static method in class lazyj.Format
Replace a sequence of text with another sequence in an original string
request - Variable in class lazyj.ExtendedServlet
The original request object
RequestWrapper - Class in lazyj
This utility class is adapted for JSP use, offering easy access to the parameters and file uploading.
RequestWrapper(HttpServletRequest) - Constructor for class lazyj.RequestWrapper
Initialize the class with a HttpServletRequest
reset() - Method in class lazyj.page.BasePage
Cancel any changes done to the template.
resetHitCounters() - Static method in class lazyj.StringFactory
Clear the counters
resize(String, String, int, int, float, boolean) - Static method in class lazyj.Utils
Resize an original image, saving the destination in JPEG format, with a given compression quality.

The file is only down-scaled, never up-scaled.
resolve(K) - Method in class lazyj.cache.GenericLastValuesCache
You should implement here a way of finding out the value for a given key.
response - Variable in class lazyj.ExtendedServlet
The original response object
ReversableMultivaluesCache<K,V> - Interface in lazyj.cache
Similar to ReversableUniqueCache, a cache class implementing this interface can answer to request like "give me the keys that have this value associated to them".
ReversableUniqueCache<K,V> - Interface in lazyj.cache
Most of the cache entries are reversible, eg if an ID is associated to a unique name you usually need two way queries: "give me the name for this ID" and "give me the ID for this name".
Round - Class in lazyj.page.tags
csv tag escapes the double quotes in CSV fields
Round() - Constructor for class lazyj.page.tags.Round
 
RTFViewer - Class in lazyj.viewers
Executes "/usr/jserv/bin/rtf.sh" to convert a RTF to a plain text representation.
RTFViewer(Object) - Constructor for class lazyj.viewers.RTFViewer
The input to convert.
run() - Method in class lazyj.cache.Cache
This thread will take each entry that expires and refreshes it.
run() - Method in class lazyj.commands.SystemCommand
 
run() - Method in class lazyj.ThreadsMonitor
The monitoring thread, takes the next thread (servlet) that ran for longer than expected and kills it

S

sAttachedFiles - Variable in class lazyj.mail.Mail
List of files to be attached to this mail when it will be sent
sBCC - Variable in class lazyj.mail.MailHeader
Blind carbon copies
sBody - Variable in class lazyj.mail.Mail
Plain text body
sBoundary - Variable in class lazyj.mail.Header
If this is a mail header then this field in the boundary between the body parts
sCC - Variable in class lazyj.mail.MailHeader
Carbon copies of this mail
sComments - Variable in class lazyj.page.BasePage
What are the sections that are commented out?
sCompleteHeader - Variable in class lazyj.mail.Header
Original string that was used to generate this object
sConfirmation - Variable in class lazyj.mail.MailHeader
The text to send when confirming the read of an email
sContentDisposition - Variable in class lazyj.mail.AttachHeader
How to display this attachment
sContentEncoding - Variable in class lazyj.mail.AttachHeader
Encoding used to store this attachment in the mail body
sContentID - Variable in class lazyj.mail.AttachHeader
Unique identifier, used to reference attachments from the mail body (images ...)
sContentType - Variable in class lazyj.CachingStructure
Content type (defaults to text/html)
sContentType - Variable in class lazyj.mail.AttachHeader
The Content-Type field of the header
sContentType - Variable in class lazyj.mail.MailHeader
Content type
sDeplasareGMT - Variable in class lazyj.mail.MailDate
offset to GMT
sec - Variable in class lazyj.mail.MailDate
second in minute
Select<K,V> - Class in lazyj.widgets
Build the options for a select HTML tag.
Select(Collection<Option<K, V>>) - Constructor for class lazyj.widgets.Select
Build the list of options from a collection.
Select(Collection<Option<K, V>>, Set<K>) - Constructor for class lazyj.widgets.Select
Build the list of options from a collection, selecting by default the elements that show up in the set.
Select(Collection<Option<K, V>>, Set<K>, String) - Constructor for class lazyj.widgets.Select
Build the list of options from a collection, selecting by default the elements that show up in the set, indenting options that have level>0 with some string.
Select(Collection<Option<K, V>>, Set<K>, String, BasePage) - Constructor for class lazyj.widgets.Select
Build the list of options from a collection, selecting by default the elements that show up in the set, indenting options that have level>0 with some string.
Select(Collection<Option<K, V>>, Set<K>, String, BasePage, OptionFormatter) - Constructor for class lazyj.widgets.Select
Build the list of options from a collection, selecting by default the elements that show up in the set, indenting options that have level>0 with some string.
sEncoding - Variable in class lazyj.mail.MailHeader
Encoding used to embed the text / attachments / ...
send(Mail) - Method in class lazyj.mail.Sendmail
Send the given mail.
send(Message) - Method in class lazyj.notifications.EmailSender
 
send(Message) - Method in class lazyj.notifications.Notifier
Send a message though all the defined channels
send(Message) - Method in class lazyj.notifications.Sender
Send the message to the target (mail / instant message / log file etc)
send(Message) - Method in class lazyj.notifications.YMSender
 
Sender - Class in lazyj.notifications
This is the base class that needs to be extended by any message delivery class.
Sender() - Constructor for class lazyj.notifications.Sender
 
Sendmail - Class in lazyj.mail
Class for sending mails.
Sendmail(String) - Constructor for class lazyj.mail.Sendmail
The simplest constructor.
Sendmail(String, String) - Constructor for class lazyj.mail.Sendmail
Constructor used to specify also the server to send this mail through.
Sendmail(String, String, int) - Constructor for class lazyj.mail.Sendmail
Full-options constructor.
SENT_ERROR - Static variable in class lazyj.mail.Sendmail
The mail could not be sent.
SENT_OK - Static variable in class lazyj.mail.Sendmail
Everything was ok when sending.
SENT_WARNING - Static variable in class lazyj.mail.Sendmail
There are some warnings, but the mail was sent.
sError - Variable in class lazyj.mail.Sendmail
Reason of the failure
set(String, String) - Method in class lazyj.ExtProperties
Modify an entry of the dictionary.
set(String, Object) - Method in class lazyj.page.BasePage
Set a value that is not cleaned between write() or append() of this object (so it can be used across all lines in a table for example).
setAutoReload(long) - Method in class lazyj.ExtProperties
Make this object check for changes in the base file and reload the contents when it changes.
setCacheTimeout(HttpServletResponse, int) - Static method in class lazyj.RequestWrapper
Set the caching timeout for some generated content.
setCallingServlet(ExtendedServlet) - Method in class lazyj.page.BasePage
If a page contains modules that need access to the request / response this is the way to make it work.
setChanged() - Method in class lazyj.DateFileWatchdog
 
setClassLoader(ClassLoader) - Method in class lazyj.notifications.Sender
Give an extra class loader, in case we need to load arbitrary classes
setContentType(String) - Method in class lazyj.ExtendedServlet
If you set the content type to something else than "text/html; charset=UTF-8" and you use the caching mechanism you should use this method instead of directly calling response.setContentType
setCookie(String, String) - Method in class lazyj.ExtendedServlet
Send a session cookie to the browser.
setCookie(String, String, int) - Method in class lazyj.ExtendedServlet
Send a cookie to the browser.
setCookie(String, String, String, int) - Method in class lazyj.ExtendedServlet
Send a cookie to the browser.
setCursorType(int) - Method in class lazyj.DBFunctions
Set the cursor type to one of the ResultSet.TYPE_FORWARD_ONLY (default), ResultSet.TYPE_SCROLL_INSENSITIVE (when you need DBFunctions.count() or such) and so on.
setDebug(boolean) - Method in class lazyj.mail.Sendmail
Enable debugging (printing all lines of the email to the standard error).
setDescription(String) - Method in class lazyj.DBFunctions.DBConnection
Set the description to an arbitrary string to be used when debugging a problem.
setHeaders(HttpServletResponse) - Method in class lazyj.CachingStructure
Set the proper HTTP headers for this cached content
setHELO(String) - Method in class lazyj.mail.Sendmail
Set an override to HELO SMTP command.
setLastGeneratedKey(boolean) - Method in class lazyj.DBFunctions
Enable the fetching of the last generated ID
setLastPage(String) - Method in class lazyj.DBSession
This method should be used when you want for example to force the user to first authenticate itself then to return it to the page that it tried to access.
setMAILFROM(String) - Method in class lazyj.mail.Sendmail
Set an override to the MAIL FROM SMTP command.
setNotCache(HttpServletResponse) - Static method in class lazyj.RequestWrapper
Make this response uncacheable by the browser / proxies on the way
setOutputStream(OutputStream) - Method in class lazyj.page.BasePage
If at a later time the user (programmer) decides that this object is to write itself into an output stream it can call this method.
setQueryTimeout(int) - Method in class lazyj.DBFunctions
Set the query timeout.
setReadOnly(boolean) - Method in class lazyj.DBFunctions.DBConnection
Set the read-only connection flag.
setReadOnly(boolean) - Method in class lazyj.DBFunctions
Signal that the following query is read-only and, if available, a database slave could be used to execute it.
setToList(Set<String>) - Static method in class lazyj.notifications.Message
Convert a set of strings into a comma-separated string
setUser(String, String) - Method in class lazyj.DBSession
When the user is authenticated, you should call this method to store the username and the complete name in the session as well in separate fields in the database.
setUserAgent(String) - Method in class lazyj.DBSession
If you want to create nice statistics for your site(s) you could track also the user's browser.
setValidateInterval(long) - Method in class lazyj.DBFunctions
Set how often to validate the connection.
setWriter(Writer) - Method in class lazyj.page.BasePage
If you want to write directly to a writer (for example from a JSP).
sFile - Variable in class lazyj.page.BasePage
Original file that was used to read the contents from.
sFileName - Variable in class lazyj.mail.AttachHeader
If the attachment is a file, this is the file name
sFrom - Variable in class lazyj.mail.MailHeader
Sender of the mail
sFrom - Variable in class lazyj.notifications.Message
Sender of this message.
show0(int) - Static method in class lazyj.Format
For date formatting, put a "0" in front of a single digit, or leave the number as it is if there are at least two digits already
showDate(Date) - Static method in class lazyj.Format
Show the date and time in a nice human-readable format
showDottedDate(Date) - Static method in class lazyj.Format
Show a date in a dotted manner (dd.MM.yyyy)
showDottedDouble(double) - Static method in class lazyj.Format
Show the value in 3 digit groups separated by commas, no period point
showDottedDouble(double, int) - Static method in class lazyj.Format
Show the value in 3 digit groups separated by commas, with the specified number of decimal places after the decimal point
showDottedDouble(double, int, boolean) - Static method in class lazyj.Format
Show the value in 3 digit groups separated by commas, with the specified number of decimal places after the decimal point.
showDottedLong(long) - Static method in class lazyj.Format
Show the value in 3 digit groups separated by commas
showLongNamedDate(Date) - Static method in class lazyj.Format
Show the full month name (11 January 2006)
showNamedDate(Date) - Static method in class lazyj.Format
Show the abreviated month name (11 Jan 2006)
showNiceDate(Date) - Static method in class lazyj.Format
Get a nifty string representation for a date.
showTime(Date) - Static method in class lazyj.Format
Show the time only (12:34)
sHTMLBody - Variable in class lazyj.mail.Mail
HTML-formatted body
simpleBody(String) - Static method in class lazyj.mail.filters.DKIMSigner
Implement the "simple" method for body
size() - Method in class lazyj.cache.ExpirationCache
Get the cache size
size() - Method in class lazyj.cache.GenericQueryCacher
Get the number of values in the forward map
size() - Method in class lazyj.ExtProperties
Get the number of elements in this dictionary
size(long) - Static method in class lazyj.Format
Nicely show the size of a file.
size(long, String) - Static method in class lazyj.Format
Nicely show a size, starting from a given measurement unit.
size(double) - Static method in class lazyj.Format
Nicely show the size of a file.
size(double, String) - Static method in class lazyj.Format
Nicely show a size, starting from a given measurement unit.
Size - Class in lazyj.page.tags
size takes the integer value and returns the size (in bytes) indicated by the value.
Size() - Constructor for class lazyj.page.tags.Size
 
SizeComparator - Class in lazyj.mail.comparators
A MailHeader comparator that sorts the mails by the size.
SizeComparator() - Constructor for class lazyj.mail.comparators.SizeComparator
 
sKey - Variable in class lazyj.CachingStructure
Unique key to access this content
sLocalZone - Variable in class lazyj.mail.MailDate
local time zone
sMessage - Variable in class lazyj.notifications.Message
Message to be sent.
sMessageID - Variable in class lazyj.mail.MailHeader
Message ID, used to thread emails
sName - Variable in class lazyj.mail.AttachHeader
If the attachment has a name, not necessarely a file name, then this field will be set.
sNotification - Variable in class lazyj.mail.MailHeader
Where to send the notification that this mail was read
sOrigMessageID - Variable in class lazyj.mail.MailHeader
The original message ID that is confirmed to be read
sPage - Variable in class lazyj.ExtendedServlet
Current servlet that is executed
SPAMViewer - Class in lazyj.viewers
Executes "/usr/jserv/portal/bin/smtp_spamfilter/check_outgoing.sh" to check if an email is a spam or not.
SPAMViewer(Object) - Constructor for class lazyj.viewers.SPAMViewer
The input mail to check if it is spam or not
sReplyTo - Variable in class lazyj.mail.MailHeader
Where to ask the receiver to send the replies to
sReturnPath - Variable in class lazyj.mail.MailHeader
Where to ask the servers on the way to report errors in case that the delivery is not possible
sShortFrom - Variable in class lazyj.mail.MailHeader
Just the name part of the sender
sSubject - Variable in class lazyj.mail.MailHeader
Mail subject
sSubject - Variable in class lazyj.notifications.Message
Subject / short version of the message
stackTraceToString(Throwable) - Static method in class lazyj.Format
Get the stack trace as String
startThread() - Static method in class lazyj.DBFunctions
Start the cleanup thread.
stderr - Variable in class lazyj.commands.CommandOutput
stderr
stdout - Variable in class lazyj.commands.CommandOutput
stdout
sTo - Variable in class lazyj.mail.MailHeader
Destination(s) for this mail
sTo - Variable in class lazyj.notifications.Message
Recipients of this message.
stopIt() - Method in class lazyj.DateFileWatchdog
Stop monitoring this file for changes
stopThread() - Static method in class lazyj.DBFunctions
Signal the thread that it's time to stop.
StringFactory - Class in lazyj
Keep references to common strings to avoid filling the memory with garbage.
StringFactory() - Constructor for class lazyj.StringFactory
 
StringFormat - Interface in lazyj.page
Interface that any string formatting class able to process BasePage tag options must implement.
stringToBool(String, boolean) - Static method in class lazyj.Utils
Convert a String to a boolean.
Strip - Class in lazyj.page.tags
strip or stripTAG,LIST cut the HTML tags from the text, optionally leaving some of them behind.
Strip() - Constructor for class lazyj.page.tags.Strip
 
stripBodyCodes(String) - Static method in class lazyj.mail.Mail
Formatting function used when you want to display an email.
SubjectComparator - Class in lazyj.mail.comparators
A MailHeader comparator that sorts the mails by their subjects.
SubjectComparator() - Constructor for class lazyj.mail.comparators.SubjectComparator
 
sWMLBody - Variable in class lazyj.mail.Mail
WML-formatted body
syncSpi() - Method in class lazyj.Utils.Base64Coder
 
SystemCommand - Class in lazyj.commands
Execute system commands
sZone - Variable in class lazyj.ExtendedServlet
The zone of the currently executed servlet

T

TemplatePage - Interface in lazyj.page
 
ThreadsMonitor - Class in lazyj
This class is used to monitor servlet threads, killing the ones that run for longer than it was specified.
Time - Class in lazyj.page.tags
time decodes the value into a Date object then displays only the time part of it.
Time() - Constructor for class lazyj.page.tags.Time
 
toBaseCharacters(String) - Static method in class lazyj.Utils
Convert a text with special characters into the same text but with the base characters instead of the special ones.
toCommaList(Collection<Integer>) - Static method in class lazyj.Format
Convert a collection of numbers in a comma-separated list.
toFullString() - Method in class lazyj.mail.MailDate
A default Date.toString() for the current date
toInterval(long) - Static method in class lazyj.Format
Convert a time in milliseconds to a human readable interval display
toMailString() - Method in class lazyj.mail.MailDate
The representation from the standard mail : "Fri, 6 Oct 2006 11:11:08 +0200"
toString() - Method in class lazyj.CachingStructure
Overriden toString() produces a nicer HTML output, for web statistics
toString() - Method in class lazyj.commands.CommandOutput
 
toString() - Method in class lazyj.ExtProperties
Get some debugging info for this object
toString() - Method in class lazyj.mail.AttachHeader
Reconstruct an attachment header from the appropriate fields.
toString() - Method in class lazyj.mail.MailDate
Show a nifty date, such as:
"12 Jul 2003"
"23 September"
"Wednesday 24"
"Yesterday 11:24"
toString() - Method in class lazyj.mail.MailHeader
A reconstruction of the headers.
toString() - Method in class lazyj.mail.MailUtils.MXRecord
 
toString() - Method in class lazyj.notifications.Message
 
toString() - Method in class lazyj.page.BasePage
Override the default toString() to obtain the dynamic data applied over the original template.
toString2() - Method in class lazyj.mail.MailDate
The same as MailDate.toString(), but always having the hour:time at the end
toVector(String) - Method in class lazyj.ExtProperties
Split a value by "," and return a Vector of String parts.
Tree<K,V> - Class in lazyj.widgets
Generic tree object.
Tree(TreeProvider<K, V>) - Constructor for class lazyj.widgets.Tree
Build a tree based on the information returned by the provider.
TreeProvider<K,V> - Interface in lazyj.widgets
Provide nodes for the Tree.
TXTViewer - Class in lazyj.viewers
Executes "/usr/jserv/bin/txt.sh" to convert a text file to a plain text representation.
TXTViewer(Object) - Constructor for class lazyj.viewers.TXTViewer
The input to convert.

U

UEnc - Class in lazyj.page.tags
uenc decodes a previously URL-encoded string.
UEnc() - Constructor for class lazyj.page.tags.UEnc
 
uncompress(byte[]) - Static method in class lazyj.Utils
Uncompress a GZIP piece of content
Under - Class in lazyj.page.tags
under replaces all non-alphanumeric sequences of characters each with a single underscore.
Under() - Constructor for class lazyj.page.tags.Under
 
unregister(BoundedThreadContainer) - Static method in class lazyj.ThreadsMonitor
Remove a previously added wrapper.
unregisterFilter(MailFilter) - Method in class lazyj.mail.Sendmail
Unregister a filter
unset(String) - Method in class lazyj.page.BasePage
 
update(Observable, Object) - Method in class lazyj.ExtProperties
Implementation of the Observer interface.
update(Observable, Object) - Method in class lazyj.notifications.Notifier
 
use() - Method in class lazyj.DBFunctions.DBConnection
Use this connection, by marking it as busy and setting the last access time to the current time.
Utils - Class in lazyj
 
Utils() - Constructor for class lazyj.Utils
 
Utils.Base64Coder - Class in lazyj
 

V

Viewer - Class in lazyj.viewers
Viewers are used to transform some input files into String representations.
Viewer(Object) - Constructor for class lazyj.viewers.Viewer
Constructor to be called from the extensions of this class, it looks at the input object and builds the actual input stream from it.

W

WARNING - Static variable in class lazyj.Log
Constant for the WARNING log level
WordViewer - Class in lazyj.viewers
Executes "/usr/jserv/bin/word.sh" to convert a Word document to a plain text representation.
WordViewer(Object) - Constructor for class lazyj.viewers.WordViewer
The input to convert.
write() - Method in class lazyj.page.BasePage
Try to send the generated content to the given output stream, assuming UTF-8 charset.
writer - Variable in class lazyj.page.BasePage
For writing to a Writer instead of a OutputStream (from a JSP page for example).

Y

year - Variable in class lazyj.mail.MailDate
year
YMSender - Class in lazyj.notifications
Send a message via Yahoo! Messenger.
YMSender() - Constructor for class lazyj.notifications.YMSender
 

Z

zoneInit() - Method in class lazyj.ExtendedServlet
Override this function to initialize local servlet or zone variables (pMaster for example)
A B C D E F G H I J K L M N O P Q R S T U V W Y Z