Commit graph

2188 commits

Author SHA1 Message Date
hns
527a1bc846 * Simplify static HopObject constructor getter code.
* Set node reference to an empty transient node in checkNode()
   for deleted/invalid HopObjects.
2005-11-17 14:22:11 +00:00
hns
ed6712719c Application.java:
* Check logdir app property in updateProperties() rather than in getLogger().
* Only set helma.logdir system property if it isn't already set to prevent conflicts
   between applications.
* Insert new repositories at the beginning of the list in addRepository().
* Some cleanup.

ApplicationBean.java:
* Use "helma.[appname].app" as default log name for messages logged through
   app.log(), app.debug().
* Introduce app.getLogger() and app.getLogger(name) that return a Jakarta
   commons Log instance. The zero argument method uses "helma.[appname].app"
   as category name.
* Added and fixed some JavaDocs.
2005-11-16 11:44:22 +00:00
hns
4bb6f72baa * add global variable "global" as a reference to the global object 2005-11-16 10:17:09 +00:00
zumbrunn
d5d5fb49ba Updated build script and apps.properties to include the welcome app 2005-11-16 08:27:56 +00:00
hns
350ffd0d73 * Implement getTargetType() and getRefType() to enable high level type.properties introspection 2005-11-10 17:04:53 +00:00
hns
da0502ecfe * Implement getPropertyNames() to enable high level type.properties introspection 2005-11-10 17:04:12 +00:00
hns
d18ae12d12 * Use logError() for exceptions caught from onStart() so that a stack trace is generated. 2005-11-09 15:35:30 +00:00
hns
613344a006 * Implement app.getPrototypes() and app.getPrototype(name) to allow app introspection. 2005-11-09 15:32:10 +00:00
zumbrunn
ef0176fec0 Changed cvs tag used when building the helmaLib target back to the default, since the release_1_5 branch was merged back to the trunk. 2005-11-08 10:15:28 +00:00
hns
d8a508c55e * Implement getDbProperties() for db.properties introspection.
* Implement getDbSource().
2005-11-07 14:42:46 +00:00
hns
61f9b6476e * Implement getDbProperties() for db.properties introspection. 2005-11-07 14:42:24 +00:00
zumbrunn
9593e25aed Updated readme to reflect current build targets 2005-11-07 11:24:27 +00:00
zumbrunn
b1680f8ad0 Changed cvs tag used when building the helmaLib target to release_1_5. 2005-11-07 11:23:06 +00:00
zumbrunn
cd7497c7bc Updated default configuration files to include more current example properties and references to the relevant documentation. 2005-11-07 11:21:47 +00:00
hns
3b4e89441c * Set version info to 1.5.x. 2005-11-04 15:54:54 +00:00
hns
ddf4b1f8e7 * Fix bug 443: http://helma.org/bugs/show_bug.cgi?id=443
check cookie domains for proxied request using the x-forwarded-for header.
2005-11-03 14:03:07 +00:00
hns
96605d1c69 * Adopt suggestions from bug 441: http://helma.org/bugs/show_bug.cgi?id=441
- Catch FileNotFoundException in loadSessions() and suppress error message
  - Catch NotSerializableException in storeSessions() in order to continue serializing.
* Use logError() for error logging.
* Minor code improvements.
2005-11-03 13:41:30 +00:00
hns
b7f0aa4ee2 * Fix NullPointerException in getAction() for 404 requests.
* Move XML-RPC response and error encoding to ResponseTrans class.
* Implement error response generation for new type XML-RPC requests.
* Set req.method to "XMLRPC" for new type XML-RPC requests.
2005-10-25 14:36:19 +00:00
hns
8a30ebf693 * Add start and shutdown calls for embedded XML-RPC web server. 2005-10-21 21:46:11 +00:00
lehni
25fd8cb805 made ImageIOGenerator the default ImageGenerator, JimiGenerator the fallback scenario 2005-10-20 11:05:11 +00:00
lehni
67d7e915ee Cleaned up parameter handling differences between imageCtor and GetInfo.call, added MimeTipe to imageCtor, etc. 2005-10-20 09:14:00 +00:00
hns
34eaf86d50 * Make isXmlRpc() synchronized. 2005-10-18 15:39:07 +00:00
hns
d2b9023500 * Add experimental capability to directly handle XML-RPC HTTP requests. 2005-10-18 15:38:48 +00:00
hns
623c639154 * Add isXmlRpc() and setXmlRpc() to tell the request evaluator if it makes sense
to try to handle this request as XML-RPC request.
2005-10-18 15:36:02 +00:00
hns
9fd550a27e * Add commons-codec.jar to classpath (required for Apache XML-RPC 2.0) 2005-10-18 15:34:55 +00:00
hns
e758330257 * Upgrading to Apache XML-RPC 2.0, with minor patch to throw
an exception when encountering an unknown element name.
2005-10-18 15:34:17 +00:00
hns
d0762a608c * Adding jakarta commons-codec 1.3 (from xml-rpc 2.0) 2005-10-18 15:33:18 +00:00
hns
1ccd0fb75c * Use Property.getStringValue() to resolve property references in query filters,
otherwise Node references will be rendered as NodeHandle[...].
2005-10-18 13:37:48 +00:00
hns
2a0524aa6b * Set ignoreCase to false for apps.properties. That way, case
in default application mountpoints is preserved.
2005-10-07 15:48:02 +00:00
hns
1c872e712c * Do not set Cookie version to 1 as this will cause
cookie values will be set in double quotes.
2005-10-07 14:04:42 +00:00
zumbrunn
1dabbb6e55 Enabled helmaTools module to be included in package target 2005-09-25 17:57:11 +00:00
zumbrunn
5e57c31411 Added target to build selective modules and included default modules when building the package target 2005-09-22 19:27:25 +00:00
hns
58540c9493 * Set prototype to Object.prototype for objects created by defineLibraryScope() 2005-09-22 18:58:38 +00:00
hns
ea2d716210 * Reintroduce HopObject.getById(), which was accidentally thrown out with installConstructor(). 2005-09-22 09:14:20 +00:00
hns
0d0b99f4c0 * Fix exception handling:
- Always print source file name and line number
   - Only print stack trace once
   - Slways print stack trace
   - Always print stack trace for original exception
   - Also log full error stack trace for exceptions caught in macros
* Implement HopObject.__proto__ and JavaObject.__proto__ containing prototype object
* Fix constructor property in HopObject protos to be set to the actual constructor
* Implement JavaObject.__javaObject__ to contain the original java object in an unscripted wrapper
* Make sure JS functions in script-extended java objects actually override java methods
* Use unscripted wrapper rather than HopObject prototype if the prototype for java class is not defined
2005-09-21 10:11:10 +00:00
lehni
f752601c16 code formating, slight speed improvments. 2005-09-20 19:20:01 +00:00
lehni
6385a1e0d1 Changed so it does not modify the source image any longer.
Speed improve.
2005-09-20 19:17:09 +00:00
lehni
f6d4aea699 Repliced by ColorQuantizer 2005-09-20 08:42:44 +00:00
lehni
1f0fdb922d Replaced Quantize by ColorQuantizer, which was freshly ported from the latest ImageMagick sources and updated with the Alpha Channel support that I added earlier to Qantize. This fixes a nasty bug when quantizing images with few colors (e.g. 32 -> 16 which often resultd in only 4 colors) and increases the general quality of color reduction a lot. 2005-09-20 08:41:53 +00:00
hns
b5f128a341 * Implement _prototype property for wrapped java objects. 2005-09-16 14:32:34 +00:00
hns
fb1f5154e4 * Implement db mapping dependencies introduced by additionalTables switch
* Try to get extract column name from sql functions when converting db column to property
* Added Javadoc comments
2005-09-16 14:31:56 +00:00
hns
a9553bb471 * Do not append <br /> tag in res.writeln(), only append a newline character sequence. 2005-09-16 13:33:23 +00:00
hns
d76b720a8d * Allow passing a java.util.Locale to Date.format() as second argument. 2005-09-16 12:00:37 +00:00
hns
d0660ac1b5 * Only append <br /> in res.writeln() if contentType is one of "text/html" or
"application/xhtml+xml". For any other content type, only an ordinary line
   break is appended to the line.
2005-09-16 09:11:13 +00:00
hns
cd3fdb4fab * Fix prototype inheritance for wrapped Java objects. get() and has() are not
supposed to check the prototype chain. Instead, just register the prototype
   using setPrototype().
2005-09-16 00:34:12 +00:00
hns
ab378b0806 * Consider superclasses and interfaces when resolving class to prototype mapping. 2005-09-15 22:40:03 +00:00
hns
cf1d403ab3 * Implement unsetCookie(name) that causes a prevously set cookie to be discarded
* Add Javadoc comments to all methods
2005-09-13 20:51:45 +00:00
hns
435d2a5ee8 * Set cookie version to 1 and allow days value of zero in order for cookies to be deleted. 2005-09-13 20:16:27 +00:00
hns
f9a327a9e8 * Made most fields in RequestEvaluator private and use a synchronized getter to access them
* Minor change in ScriptingEngine interface
2005-09-13 13:40:31 +00:00
hns
e05d4eabc8 * Be more precise when throwing exception in popStringBuffer(). 2005-09-13 10:22:53 +00:00