Commit graph

1422 commits

Author SHA1 Message Date
hns
210aed5197 Break when hrefFunction has been executed. 2003-03-10 14:24:13 +00:00
hns
4a43f9bcab updated version to 1.2.3 final 2003-03-07 16:09:40 +00:00
stefanp
6482af48a1 made sure, every job has a name
corrected comments: we use commas instead of semi-colons
2003-03-07 09:39:17 +00:00
hns
75fbf7588f Added experimental support for hrefFunction that works analogously to hrefSkin
except it defines a function to be called with the raw href. The raw href is passed as
only parameter to the function, and it is expected to return the processed href.
2003-03-06 17:24:51 +00:00
hns
1fa508dd27 Added experimental support for app.modules to act as module registry. 2003-03-06 17:21:49 +00:00
stefanp
f69832309d initial check in of a CronJob-class with static methods for parsing a properties
file.
2003-03-06 13:21:20 +00:00
hns
79e3c082bf Updated Helma version to 1.2.3
Replaced hopblog application with gong.
2003-03-05 14:49:25 +00:00
hns
81fbc166ca Updated version string to 1.2.3 RC1 2003-03-05 14:46:22 +00:00
hns
d2aa17041f Several changes/fixes in DbMapping:
* Relation mappings that are overwritten in sub-prototypes no longer override
the parent prototype's Relation object but creates its own Relation
* Generally enable all things to be overwritten in DbMappings that inherit from
another relational DbMapping. That means it should now be possible to really
change lots of things from a parent DbMapping and a child DbMapping.
* Improved property enumeration which now merges properties defined in the
DbMapping inherit chain
* Cleaned up and improved variable naming.
2003-03-05 14:33:21 +00:00
hns
49f011ab87 Use new methods in Prototype to check whether an object is of this prototype or
one of its parent prototypes when resolving macro handlers.
2003-03-04 18:19:33 +00:00
hns
2c8585c611 Exclude "hopobject" from isInstance() to force consistent naming for macro
handlers (use "this" instead of "hopobject").
2003-03-04 18:17:47 +00:00
hns
045210440e Added two methods:
* isInstanceOf(str) checks if this prototype is an instance (equals or inherits) the
  prototype with the given name.

* addToHandlerMap(map, obj)  adds the given object as macro handler for this
prototype and all its parent prototypes.
2003-03-04 18:15:15 +00:00
stefanp
ccb89fbfd9 catch exceptions that occur during the parsing (stringindexoutofbound etc) and
print stack trace to stdout but don't stop parsing the app.
2003-03-03 12:30:17 +00:00
hns
26529df21a Allow ETag header generation for uncachable responses and error responses. 2003-03-03 11:47:31 +00:00
hns
99e764a7b0 Improved our steps to avoid caching of responses. It now seems that
both Mozilla and IE actually do not cache stuff that has res.cache == false.
2003-03-03 11:45:52 +00:00
hns
8112e2a40c Relation.getVirtualMapping() now returns the right DbMapping even
for prototyped collection nodes, so no more extra code for this case
is needed here.
2003-02-27 13:08:22 +00:00
hns
ff95d49d4a Make getVirtualMapping() aware of prototyped collections, i.e. the
application's DbMapping is returned instead of a synthetic virtualMapping.
2003-02-27 13:06:43 +00:00
hns
7ed203c8f0 Init lastTypeChange to -1 so we know we have to run update() once
even if the underlying properties file does not exist.
2003-02-25 21:13:14 +00:00
hns
da936baf1e * URL-decode installation directory since it may have been derived
from a jar-URL.
* Exit if installation directory could not be determined.
* Print a message to stderr for each extension jar that is added to the
  classpath.
2003-02-25 16:23:29 +00:00
hns
31ccc12e5b If the command line option parsing code chokes on something, write
a message to the console what the problematic token was.
2003-02-25 16:14:19 +00:00
hns
84c9892a6c Fixed two bugs:
* Race condition when applications were initialized before the
  Server constructor had returned and Server.server and thus
  Server.getServer() was null
* Server choking on -i command line option telling the launcher class
  the Helma install location.
2003-02-25 11:59:26 +00:00
hns
85401cd71f Add checks for cookieDomain validity (bug 219)
http://helma.org/bugs/show_bug.cgi?id=219
2003-02-17 16:02:40 +00:00
stefanp
8a5e24a574 added two methods that allow serializing the sessions-table:
storeSessionData(File) and loadSessionData (File)
if no file is given the file "dbdir/sessions" is used

added new app.property: persistentSessions
with this all sessions are serialized at shutdown and re-read at startup
(sessions that expired in the meantime aren't loaded anymore)
2003-02-16 22:41:18 +00:00
stefanp
077f1dc516 made application object transient to be truly able to serialize session
and added setApp() method
2003-02-16 22:39:25 +00:00
stefanp
b77e5da24b expanded extension-interface with applicationUpdated(app) to tell
extensions when app.properties have changed.
2003-02-14 16:07:52 +00:00
hns
ac0c47adc1 Updated version to 1.2.2 2003-02-04 15:39:59 +00:00
hns
44a6159db5 Replaced getBufferLength() and setBufferLength() with a new method called
getBuffer() which directly returns the response StringBuffer.
2003-02-04 14:18:10 +00:00
hns
d53076291d Support encoding options for text written to the response buffer by macros.
Cleaned up handling of encoding options and other stuff.
2003-02-04 14:15:46 +00:00
hns
30098b723e Added encodeFormValue() method that directly encodes to a StringBuffer.
Do not return a String when writing to StringBuffer in encodeAll().
2003-02-04 14:11:56 +00:00
hns
288d573e50 Made getNodeHref() approx 10% faster by replacing StringBuffer.insert(0)
with StringBuffer.append().
2003-02-04 12:39:22 +00:00
hns
e2c6d1903b More tweaking of the image loading and generating process. 2003-02-03 16:59:24 +00:00
hns
2c1fdf3d0f * Parse attributes of otherwise unmapped elements in sparse mode.
(fixes bug 216)
* Do not rely on helma.objectmodel.db.Node.getPrototype() to return null
to find out whether a node has been initialized. Even if the prototype is not set, the
Node will return "hopobject" as prototype.
2003-02-03 13:22:26 +00:00
hns
2e239f797e Include CDATA sections in getTextContent().
Fixes bug 217
2003-02-03 13:14:58 +00:00
hns
f74c21d405 Implemented Xml.getFromString() 2003-01-31 21:08:14 +00:00
hns
d5ea622ad4 Removed functionality related to Village library. 2003-01-31 17:02:06 +00:00
hns
05020fa8a1 Removed village.jar from list of default jar files in classpath. 2003-01-31 16:38:50 +00:00
hns
5c1b2bc944 Helma no longer depends on Village for its database layer. 2003-01-31 16:35:19 +00:00
hns
19eadab615 Update version string to 1.2.2-RC1 2003-01-31 16:33:04 +00:00
hns
b20fb16930 Don't use StringBuffer.append(StringBuffer), which is new to Java 1.4.
Use StringBuffer.append(String) instead.
2003-01-31 16:26:45 +00:00
hns
40f012d16d Fixed a bug in object serialization/deserialization: Date properties are stored as
date objects, not Long objects.
2003-01-31 15:55:02 +00:00
hns
7f7d663c7d * Made also private instance methods unsynchronized, since the only drawback
are concurrent method lookups, which usually happen only at the beginning when
the server is started. Later, cached lookups don't have the synchronization penalty.
* Commented out all debug code.
2003-01-31 15:53:04 +00:00
hns
ab14bbb898 Fix bug that evaluator.thread was not set when parsing scripts. 2003-01-30 16:39:02 +00:00
hns
a4e36e6ae3 Don't call contains() on the parent node in getElementName() unless necessary,
i.e. unless we actually think we are accessed by access name.
Some minor formatting fixes.
2003-01-30 14:19:30 +00:00
hns
672ac0e7c1 Updated version string. 2003-01-29 16:36:52 +00:00
hns
0c62b57c26 Speed up image loading by splitting it up into getting the image's dimensions and
waiting for all bits to be loaded.
2003-01-29 16:31:33 +00:00
hns
af2a5e9793 Added additional resizeFast() method that works like resize() but uses a cheaper
resampling algoritm.
2003-01-29 16:16:21 +00:00
hns
d93efaa377 Do not allow Strings parameters of length 1 to be casted into a number. 2003-01-29 16:02:19 +00:00
hns
a2c4745d8e Make public static methods unsynchronized but synchronize private instance methods.
This will allow some concurrent duplicate work being done, but it will remove the
bottleneck on the static methods. See bug 186:
http://helma.org/bugs/show_bug.cgi?id=186
2003-01-29 16:00:48 +00:00
hns
564dc9f585 Updated version string. 2003-01-28 14:58:09 +00:00
hns
fb2e0d6369 Write long columns in streaming mode if need be (if setString() throws an exception)
Log inserts, updates and deletes if logSql is set to true.
2003-01-28 14:56:00 +00:00