Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.misc.tests.* (7)com.jcorporate.expresso.core.misc.upload.* (7)

com.jcorporate.expresso.core.misc: Javadoc index of package com.jcorporate.expresso.core.misc.


Package Samples:

com.jcorporate.expresso.core.misc.upload: Miscellaneous objects for file manipulation, running OS processes, etc  
com.jcorporate.expresso.core.misc.tests

Classes:

MultipartStream: This class can be used to process data streams conforming to MIME 'multipart' format as defined in RFC 1521 . Arbitrary large amouns of data in the stream can be processed under constant memory usage. The format of the stream is defined in the following way: multipart-body := preamble 1*encapsulation close-delimiter epilogue encapsulation := delimiter body CRLF delimiter := "--" boundary CRLF close-delimiter := "--" boudary "--" preamble := <ignore> epilogue := <ignore> body := header-part CRLF body-part header-part := 1*header CRLF header := header-name ":" header-value header-name ...
FileItem: This class represents a file that was received by Turbine using multipart/form-data POST request. After retrieving an instance of this class from the ParameterParser (see ParameterParser.getFileItem(String) and ParameterParser.getFileItems(String)) you can use it to acces the data that was sent by the browser. You may either request all contents of file at once using get() 55 or request an InputStream with getStream() 55 and process the file without attempting to load it into memory, which may come handy with large files.
BaseValueParser: BaseValueParser is a base class for classes that need to parse name/value Parameters, for example GET/POST data or Cookies (DefaultParameterParser and DefaultCookieParser) It can also be used standalone, for an example see DataStreamParser. NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match: ValueParser vp = new BaseValueParser(); ...
ParameterParser: ParameterParser is an interface to a utility to handle parsing and retrieving the data passed via the GET/POST/PATH_INFO arguments. NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match: ParameterParser pp = data.getParameters(); pp.add("ERROR",1); pp.add("eRrOr",2); int result = pp.getInt("ERROR"); In the above example, result ...
DefaultParameterParser: DefaultParameterParser is a utility object to handle parsing and retrieving the data passed via the GET/POST/PATH_INFO arguments. NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match: ParameterParser pp = data.getParameters(); pp.add("ERROR",1); pp.add("eRrOr",2); int result = pp.getInt("ERROR"); In the above example, result is ...
ConfigJndi: A Commons digester class for JDBC section of the standardmaessig Expresso Configuration XML file. This bean defines the conection characteristics to the database in this context Documentation written by Yves Henri AMAIZO @ AmyCase.com, Sun Jul 29 00:55:00 GMT 2002 All the 'bean' methods here are directly mapped to the <jdbc> section int the expresso-config.xml file. It is recommend that you also look at the Expresso config DTD for a better understanding of the relation of these various parameteters. Soon to be deprecated: Use com.jcorporate.expresso.core.db.config.JNDIConfig
OSProcess: This is a class that wraps another process in the machine. It is not like the ANT wrappers that can launch another java program with full environment of the parent, but you can launch other java programs through command line usage. Typical usage: OSProcess process = new OSProcess("/usr/bin/perl /home/mydir/scripts/updatecounts.pl"); process.runProcess(); //Now print out the results to std out. Vector result = process.getStdout(); for (Iterator i = result.iterator(); i.hasNext(); ) { System.out.println((String)i.next()); }
SchemaIterator: This class is constructed and used to iterate over top level schemas. It can be used instead of iterating over the previous SchemaList table. This iterator currently only iterates over top level Schemas, not schemas nested within other schemas. Example Usage:   for (SchemaIterator it = new SchemaIterator("default","default"); it.hasNext();) {      Schema oneSchema = (Schema)it.next();      System.out.println("Schema Description: " + oneSchema.getDefaultDescription());   }
ReusableChar: The Character class wraps a value of the primitive type char in an object. An object of type Character contains a single field whose type is char . This class is distinct from Java's Character class in that you can set a new value without having to create a new instance of an object. This saves on the GarbageCollecter in server/client environments. If you need to just use the static methods, it IS recommended that you use Character directory since the implementations require one less method call than through here.
Uploader: Files will be stored in temporary disk storage This implementation of Uploader handles multiple files per single html widget, sent using multipar/mixed encoding type, as specified by RFC 1867. Use org.apache.turbine.util.ParameterParser#getFileItems(String) to acquire an array of org.apache.turbine.util.upload.FileItem s associated with given html widget.
ValueParser: ValueParser is a base interface for classes that need to parse name/value Parameters, for example GET/POST data or Cookies (ParameterParser and CookieParser) NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
CacheEventListener: A CacheEvent represents an event that indicates that some cached information might have to be updated. Objects that implement caches that depend on persistant data should implement CacheEventListener, and register themselves with the appropriate objects that store the data they cache - they will then be notified via the cacheEvent(CacheEvent) call when changes to the data occurr, so they can take the appropriate action to ensure their caches are not 'stale'.
CacheEvent: CacheEvent represents an event that indicates that some cached information might have to be updated. Objects that implement caches that depend on persistant data should implement CacheEventListener, and register themselves with the appropriate objects that store the data they cache - they will then be notified via a cacheEvent(CacheEvent) call when changes to the data occurr, so they can take the appropriate action to ensure their caches are not 'stale'.
EMailSender: EMailSender is a class that hides the details of sending email through an SMTP server using the JavaMail API and the Java Activation framework (JAF). This class logs using the log4j category "expresso.core.misc.EMailSender" (info, error, debug) This class uses a DB-context property, mailDebug=Y to dump SMTP debug on the console default number of retries = 0; Creation date: (2/6/01 2:09:18 PM)
CurrentLogin: Bean that stores current login info in session; implements session binding listener so that it can hear when session is terminated. This class be overriden and replaced with subclass by adding a line to expresso-config.xml under 'class-handlers', like class-handler name="CurrentLogin" classHandler="my.subclass.of.CurrentLogin" This override will allow custom handling in the session bind/unbind events.
ReservedWords: This class is the central repository for reserved words for known/tested databases. By doublechecking against this list, you're pretty much in the clear for making sure that your field names will work in various databases. Current sets that are checked against are: SQL 99 Standard Expresso Reserved Words
RecordPaginator: Copyright: Copyright (c) 2001-2002 JCorporate Ltd. This class takes care of the low-level logic for when dealing with &quote;pages&quote; of data. It is used in the Download Controller to allow paging through masses of download files, as well as in DBMaint for paging through the data records.
ConfigContext: Bean class helping with expresso-config.xml and working with the Digester to read the configuration. A config context is in the past called a 'db'. It represents one connection to a database. (May be separate database), each context has it's own job handler, potentially it's own security setup. etc.
HTTPUtil: This utility class includes static methods for manipulating URLs. Specifically, this class is used to set the expresso.continueURL session object, to retrieve the continueURL object, to qualify Expresso next parameters, etc. Creation date: (9/14/00 10:28:34 PM)
URLUTF8Encoder: Provides a method to encode any string into a URL-safe form, the so-called "x-www-form-urlencoded" form. Non-ASCII characters are first encoded as sequences of two or three bytes, using the UTF-8 algorithm, before being encoded in "x-www-form-urlencoded".
SysEvent: A SysEvent is an event notification created in order to notify other "listening" objects that some specific system event has just occurred. Each listening object has their "receiveEvent" method called, with this SysEvent object passed as the argument
EventQueueEntry: Event queue entry class represents a unit of work for the event handler thread. NB: Please prefer the JavaBean accessor and mutator methods instead using of the data members directly. The implementation is subject to change.
HTMLUtil: Copyright 1999, 2002, 2002 Yves Henri AMAIZO. amy_amaizo@compuserve.com This class convert a text in an HTML text format with symbolic code (&xxxx;), it also convert a given HTML text format which contain symbolic code to text.
ConfigManager: ConfigManager is a static class that utilizes the Struts Digester utility to read an XML file of configuration parameters when Expresso starts up. These parameters are then available during the execution of the application.

Home | Contact Us | Privacy Policy | Terms of Service