Index
A B C D E F G H I J K L M N O P Q R S T U W Z
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
A
- absolute(int) - Method in class lazyj.DBFunctions
-
Jump to an absolute position in the result set
- addPropertyChangeListener(String, PropertyChangeListener) - Method in class lazyj.ExtProperties
-
Listen for particular changes in the set
- addProvider(ExtProperties) - Method in class lazyj.FallbackProperties
-
Append a provider to the fallback list (having thus the lowest priority)
- addProvider(ExtProperties, boolean) - Method in class lazyj.FallbackProperties
-
Add another provider to the fallback list, either as the first element (with the highest priority) or as the last one (lowest priority).
- append(char) - Method in class lazyj.Format.JSONFragment
-
Append a single char
- append(CharSequence) - Method in class lazyj.Format.JSONFragment
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.
- 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
- bRedirect - Variable in class lazyj.ExtendedServlet
-
Remember whether or not there was a redirect executed by the servlet
- byteToHex(byte) - Static method in class lazyj.Format
-
Get the 2 hexa digit representation of this byte
C
- CachingStructure - Class in lazyj
-
Holding class for page cache entries
- 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, boolean) - Method in class lazyj.DBFunctions.DBConnection
-
Find out if this connection is free to use
- charAt(int) - Method in class lazyj.Format.JSONFragment
- 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.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).
- 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
- compareTo(Delayed) - Method in class lazyj.DBSession
-
Implementation of
Delayed
- compareTo(CachingStructure) - Method in class lazyj.CachingStructure
-
For sorting first by the number of accesses then by the key, then by expiration time
- 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
- composeUpsert(String, Map<String, ?>, Collection<String>) - Static method in class lazyj.DBFunctions
-
Build a INSERT-on-conflict-UPDATE query
- compress(byte[]) - Static method in class lazyj.Utils
-
Compress a byte array with GZip
- compress(String, String, boolean) - Static method in class lazyj.Utils
-
Compresses a file to gzip format.
- 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.
D
- DateFileWatchdog - Class in lazyj
-
This class monitors a specified File for a change and notifies back when the file on disk has changed.
- DateFileWatchdog(File, long) - Constructor for class lazyj.DateFileWatchdog
-
Create a watcher for a given file
- DateFileWatchdog(String, long) - Constructor for class lazyj.DateFileWatchdog
-
Create a watcher for a given file name
- DBFunctions - Class in lazyj
-
Wrapper for JDBC connections and collection of useful functions related to database connections.
- 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(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) - Constructor for class lazyj.DBFunctions
-
Create a connection to the database using the parameters in this properties file.
- 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.DBConnection - Class in lazyj
-
Wrapper around a raw database connection.
- DBProperties - Class in lazyj
- DBProperties(DBFunctions) - Constructor for class lazyj.DBProperties
-
Load the values from the specified database.
- DBProperties(DBFunctions, String, String, String, ExtProperties) - Constructor for class lazyj.DBProperties
-
Load the values from the specified database, table name, primary key column and value column.
- DBProperties(DBFunctions, ExtProperties) - Constructor for class lazyj.DBProperties
-
Load the values from the specified database.
- 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". - 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.
- decodeToLong(String) - Static method in class lazyj.DBFunctions
-
Convert each entry from an array to Long.
- 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.
- download(String, String) - Static method in class lazyj.Utils
-
Download a file at a remote URL to the local disk or to the memory.
- download(String, String, int, SSLSocketFactory) - Static method in class lazyj.Utils
-
Download a file at a remote URL to the local disk or to the memory.
E
- encode(byte[]) - Static method in class lazyj.Utils.Base64Coder
-
Given a byte array, return its Base64 representation as a String.
- encode(String) - Static method in class lazyj.Format
-
Produce an URL encoding of the given text, using the UTF-8 charset
- 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
- endTime - Variable in class lazyj.EpochTimeRange
-
End time of the interval
- EpochTimeRange - Class in lazyj
-
Wrap a PostgreSQL int8range column type with some simple operations.
- EpochTimeRange() - Constructor for class lazyj.EpochTimeRange
-
default object is valid from now (inclusive) to infinity (exclusive :) )
- EpochTimeRange(String) - Constructor for class lazyj.EpochTimeRange
-
Initialize the interval endpoints from the database value (PostgreSQL text serialization of it)
- 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
- 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(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.
- escJSON(String) - Static method in class lazyj.Format
-
Create a JSON-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. - 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(String, String, ExtProperties, boolean) - 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
- FallbackProperties - Class in lazyj
- FallbackProperties(List<ExtProperties>) - Constructor for class lazyj.FallbackProperties
-
A different way of passing the ordered list of configuration sets to look into
- FallbackProperties(ExtProperties...) - Constructor for class lazyj.FallbackProperties
-
Query the given list of configuration sets in order, returning the first defined value in one of them
- 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
- 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.JSONFragment - Class in lazyj
- 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 - 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
- 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) - Method in class lazyj.DBSession
-
Get the object that was previously associated with this key.
- 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
- 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
- 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(int, boolean) - Method in class lazyj.DBFunctions
-
Get the boolean value of a column
- getb(String, 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.
- 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.
- getContentAsString() - Method in class lazyj.CachingStructure
- 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(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) - Method in class lazyj.DBFunctions
-
Get the double value of a column.
- getd(String) - Method in class lazyj.ExtendedServlet
-
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.
- getd(String, 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, 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.
- 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(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.
- 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(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) - Method in class lazyj.DBFunctions
-
Get the float value of a column.
- getf(String) - Method in class lazyj.ExtendedServlet
-
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.
- getf(String, 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, float) - 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
- getFormattedValue(Object) - Static method in class lazyj.DBFunctions
-
Get the value formatted for SQL statements
- 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(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.DBFunctions
-
Get the value of this column as int.
- geti(String) - Method in class lazyj.DBSession
-
Get the integer value associated with this key, with the default 0.
- geti(String) - Method in class lazyj.ExtendedServlet
-
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.
- 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(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, int) - Method in class lazyj.ExtProperties
-
Get the integer value for a key.
- geti(String, int) - 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.
- getIntArray(int) - Method in class lazyj.DBFunctions
-
Extract a PostgreSQL array into a Collection of Integer objects
- getIntArray(String) - Method in class lazyj.DBFunctions
-
Extract a PostgreSQL array into a Collection of Integer objects
- 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) - Method in class lazyj.DBFunctions
-
Get the long value of a column.
- getl(String) - Method in class lazyj.ExtendedServlet
-
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.
- getl(String, 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, 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.
- getLastError() - Method in class lazyj.DBFunctions
- getLastGeneratedKey() - Method in class lazyj.DBFunctions
-
Get the last generated key, after
DBFunctions.setLastGeneratedKey(boolean)
was called withtrue
- getLastGeneratedKeyLong() - Method in class lazyj.DBFunctions
-
Get the last generated key, after
DBFunctions.setLastGeneratedKey(boolean)
was called withtrue
- 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
- 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.
- 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.
- getObject(int) - Method in class lazyj.DBFunctions
-
Get the content of a column, as native object prepared by the JDBC driver
- getObject(String) - Method in class lazyj.DBFunctions
-
Get the content of a column, as native object prepared by the JDBC driver
- 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.
- getPagesList(int) - Static method in class lazyj.DBSession
-
For statistics, get a list of usernames and the pages that they are currently visiting
- getPosition() - Method in class lazyj.DBFunctions
-
Get the current position in the result set
- getProperties() - Method in class lazyj.ExtProperties
-
Get a Properties view of this object.
- getProperties() - Method in class lazyj.FallbackProperties
- 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.
- 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.DBFunctions
-
Get the contents of a column from the current row based on its name.
- 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) - Method in class lazyj.ExtProperties
-
Get the String value for a given key.
- gets(String) - Method in class lazyj.RequestWrapper
-
Get the value of a parameter as a string.
- gets(String, 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.ExtendedServlet
-
Get the value of a parameter as a string.
- 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) - Method in class lazyj.RequestWrapper
-
Get the value of a parameter as a string
- gets(String, String, boolean) - Method in class lazyj.DBProperties
- 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(String, String, boolean) - Method in class lazyj.FallbackProperties
- 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
- getStringArray(int) - Method in class lazyj.DBFunctions
-
Extract a PostgreSQL array into a Collection of String objects
- getStringArray(String) - Method in class lazyj.DBFunctions
-
Extract a PostgreSQL array into a Collection of StriG96Lng objects
- 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
- getTransactionIsolationLevel() - Method in class lazyj.DBFunctions
- 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.
- 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
H
- hashCode() - Method in class lazyj.CachingStructure
-
Rewrite the default hash distribution method
- hashCode() - Method in class lazyj.DBSession
- hashCode() - Method in class lazyj.Format.JSONFragment
- hasNext() - Method in class lazyj.FileLinesIterator
- hexChar(int) - Static method in class lazyj.Format
-
Get the hexa digit for this integer value
- 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.
I
- iAccesses - Variable in class lazyj.CachingStructure
-
Number of accesses to this cache entry.
- includingEnd - Variable in class lazyj.EpochTimeRange
-
Whether or not the end of the interval is included in the range
- includingStart - Variable in class lazyj.EpochTimeRange
-
Whether or not the start of the interval is included in the range
- INFO - Static variable in class lazyj.Log
-
Constant for the INFO log level
- 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.
- invalidate() - Method in class lazyj.DBSession
-
This method will delete all the information about this session.
- 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
- isReadOnly() - Method in class lazyj.ExtProperties
-
Check if the configuration object is read only or can accept modifications to it
- isReadOnly() - Method in class lazyj.FallbackProperties
- 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.
- iterator() - Method in class lazyj.FileLinesIterable
J
- JSONFragment() - Constructor for class lazyj.Format.JSONFragment
-
Empty constructor
- JSONFragment(CharSequence) - Constructor for class lazyj.Format.JSONFragment
-
Copying another char sequence to this object, assuming that the content is a valid JSON fragment.
K
- keysSpi() - Method in class lazyj.Utils.Base64Coder
L
- lazyj - package lazyj
-
Here you find the database wrapper, servlet wrapper, logger, formatting utilities and other utility classes.
- length() - Method in class lazyj.CachingStructure
-
Get the size of the cached content.
- length() - Method in class lazyj.Format.JSONFragment
- 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.
- log(int, String) - Method in class lazyj.ExtendedServlet
-
Log messages with a given level of the problem.
- log(int, String) - Static method in class lazyj.Log
-
Log a message of a given severity for a given component
- log(int, String, Object) - Method in class lazyj.ExtendedServlet
-
Special logging for exceptions.
- 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.
- log(String) - Method in class lazyj.ExtendedServlet
-
Override the method provided by the Java Servlet Api to log messages as DEBUG
- Log - Class in lazyj
-
Logging facility.
- Log() - Constructor for class lazyj.Log
- 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
- 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.
- moveNext() - Method in class lazyj.DBFunctions
-
Jump to the next row in the result
- mpRequest - Variable in class lazyj.ExtendedServlet
-
Object used for file uploading.
N
- next() - Method in class lazyj.FileLinesIterator
O
- osOut - Variable in class lazyj.ExtendedServlet
-
OutputStream to the client
P
- PageCache - Class in lazyj
-
This is the page cache.
- 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
- 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(String, Serializable) - Method in class lazyj.DBSession
-
Set a session variable, by associating a value with an unique key.
- put(String, String) - Method in class lazyj.Utils.Base64Coder
- put(HttpServletRequest, String, byte[], long, String) - Static method in class lazyj.PageCache
-
Cache some arbitrary contents
- 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.
R
- 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
- readResolve() - Method in class lazyj.DBSession
-
Overriden method to set the calling page to null when deserializing.
- redirect(String) - Method in class lazyj.ExtendedServlet
-
Wrapper method for the actual redirect, that keeps track if there was such an opperation.
- register(BoundedThreadContainer) - Static method in class lazyj.ThreadsMonitor
-
Register a thread that must be allowed to run but for a limited amount of time.
- relative(int) - Method in class lazyj.DBFunctions
-
Jump an arbitrary number of rows.
- reload() - Method in class lazyj.ExtProperties
-
Re-read the same configuration file.
- remove() - Method in class lazyj.FileLinesIterator
- removeEldestEntry(Map.Entry<K, V>) - Method in class lazyj.LRUMap
- removeNodeSpi() - Method in class lazyj.Utils.Base64Coder
- removePropertyChangeListener(String, PropertyChangeListener) - Method in class lazyj.ExtProperties
- removeProvider(ExtProperties) - Method in class lazyj.FallbackProperties
-
Remove a provider from the fallback list
- 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
- 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. - response - Variable in class lazyj.ExtendedServlet
-
The original response object
- run() - Method in class lazyj.ThreadsMonitor
-
The monitoring thread, takes the next thread (servlet) that ran for longer than expected and kills it
S
- sContentType - Variable in class lazyj.CachingStructure
-
Content type (defaults to text/html)
- set(String, String) - Method in class lazyj.DBProperties
- set(String, String) - Method in class lazyj.ExtProperties
-
Modify an entry of the dictionary.
- set(String, String) - Method in class lazyj.FallbackProperties
- 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.
- setChanged() - Method in class lazyj.DateFileWatchdog
- 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. - 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
- 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.
- setNotCache(HttpServletResponse) - Static method in class lazyj.RequestWrapper
-
Make this response uncacheable by the browser / proxies on the way
- 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.
- setTransactionIsolation(int) - Method in class lazyj.DBFunctions
-
Override the transaction isolation level for the following queries.
- 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.
- 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)
- size() - Method in class lazyj.ExtProperties
-
Get the number of elements in this dictionary
- 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(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.
- sKey - Variable in class lazyj.CachingStructure
-
Unique key to access this content
- sPage - Variable in class lazyj.ExtendedServlet
-
Current servlet that is executed
- 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.
- startTime - Variable in class lazyj.EpochTimeRange
-
Start time of the interval
- 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
- stringToBool(String, boolean) - Static method in class lazyj.Utils
-
Convert a String to a boolean.
- subSequence(int, int) - Method in class lazyj.Format.JSONFragment
- syncSpi() - Method in class lazyj.Utils.Base64Coder
- sZone - Variable in class lazyj.ExtendedServlet
-
The zone of the currently executed servlet
T
- ThreadsMonitor - Class in lazyj
-
This class is used to monitor servlet threads, killing the ones that run for longer than it was specified.
- 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.
- toInterval(long) - Static method in class lazyj.Format
-
Convert a time in milliseconds to a human readable interval display
- toJSON(Object) - Static method in class lazyj.Format
-
Get a JSON representation of base object types (String, Number, Boolean) and collections (Iterable, Map) of them.
- toJSON(Object, boolean) - Static method in class lazyj.Format
-
Get a JSON representation of base object types (String, Number, Boolean) and collections (Iterable, Map) of them.
- toSQLString() - Method in class lazyj.EpochTimeRange
- toString() - Method in class lazyj.CachingStructure
-
Overriden toString() produces a nicer HTML output, for web statistics
- toString() - Method in class lazyj.EpochTimeRange
- toString() - Method in class lazyj.ExtProperties
-
Get some debugging info for this object
- toString() - Method in class lazyj.Format.JSONFragment
- toVector(String) - Method in class lazyj.ExtProperties
-
Split a value by "," and return a Vector of String parts.
U
- uncompress(byte[]) - Static method in class lazyj.Utils
-
Uncompress a GZIP piece of content
- unregister(BoundedThreadContainer) - Static method in class lazyj.ThreadsMonitor
-
Remove a previously added wrapper.
- update(Observable, Object) - Method in class lazyj.ExtProperties
-
Implementation of the
Observer
interface. - 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
W
Z
- zoneInit() - Method in class lazyj.ExtendedServlet
-
Override this function to initialize local servlet or zone variables (pMaster for example)
All Classes|All Packages