Commit graph

1342 commits

Author SHA1 Message Date
hns
dc741f2231 Updated to Ant 1.4.1 2001-10-22 16:41:07 +00:00
hns
61926bd69a Remember xml-rpc handler name under which an application
has been registered so we can remove it once the application
is shut down.
2001-10-18 13:08:36 +00:00
hns
1334833b14 try more often after concurrency conflicts,
pause for longer between tries.
2001-10-11 11:42:38 +00:00
hns
3db1848822 * only use the parent-info from the type.properties file if there
is an explicit reference relation set for the property name.
* avoid database queries for nodes that are transient or in the
process of being persistified also when loadmode is set to
aggressive.
2001-10-02 20:54:35 +00:00
hns
ef756bdcc1 Hash codes of key classes are now cached lazily.
Slightly changed the algorithm according the recommendations
in "Effective Java" by Joshua Bloch.
2001-10-02 20:50:52 +00:00
hns
17b82f0d43 Standard prototypes are now correctly constructed even if
the directories don't exist.
2001-10-02 20:46:00 +00:00
hns
6c883367e7 check if the NodeHandle of a registered user is broken.
If so, reset the handle, logging the user out. This should
solve the "broken session" phenomenon.
Also added some comments.
2001-10-02 20:43:53 +00:00
hns
841f09b789 check if typename is null in isInstanceOf (which is the
case for virtual nodes).
2001-10-02 09:49:03 +00:00
hns
de5ab9a388 removed invocation of stop() method of the app's TypeManager. 2001-10-01 10:40:32 +00:00
hns
545aec7407 create base prototypes for which no directory exists
without creating an empty directory.
doesn't implement Runnable anymore.
2001-10-01 10:39:51 +00:00
hns
a99dc703a4 Check if the standard prototypes have been created
after the first call of check().
2001-10-01 10:27:22 +00:00
hns
35a20ffca4 the getNodeWrapper method will again return an instance of
ESUser instead of ESNode for all database nodes representing
a user object. This should fix all bugs where user specific
functions failed unless the user object represented a user that
was active at the time of calling.
2001-10-01 09:56:44 +00:00
hns
cdf170c568 implemented isInstanceOf to tell whether
a DbMapping represents itself or by inheritance
some prototype.
2001-10-01 09:54:49 +00:00
hns
ce781df919 Made this class work again when there is no
actual user session and it just represents
a database record that represents a user.
This should fix all bugs where the user specific
methods didn't work unless the user object
represented a user that was actually active at
the time of calling.
2001-10-01 09:53:29 +00:00
hns
4f28990143 Directly loop through characters from the source string instead of
using a StringReader.
Dropped character entity encoding, since this limits us to western
encoding and should not be necessary because browsers usually
default to western encoding.
2001-09-14 16:04:23 +00:00
hns
7a6b473e22 replaced HtmlEncoder.encodeSoft() with HtmlEncoder.encode(). The
former doesn't exist anymore.
2001-09-14 16:02:42 +00:00
hns
e1cf1c1f8a only use numerical entities to encode
characters codes greater than 160.
The hope is that this gets us cheap support
for international encodings...
2001-09-14 12:27:33 +00:00
hns
e04f7652ba output debug info in JS function invocation if
debug is set to true.
2001-09-14 12:20:24 +00:00
hns
41b057d7ee Fixed deserialization. 2001-09-13 17:29:38 +00:00
hns
a509f5735c Formerly known as ESRequestData.
It is now possible to update this object, while ESRequestData
was read-only.
2001-09-11 19:14:02 +00:00
hns
daec2c7573 ESRequestData has been renamed to ESMapWrapper to
convey what it does and that it's not only used for request
parameter values.
2001-09-11 19:12:31 +00:00
hns
5d20e2e29a Create a new prototype in the request evaluator for use
with generic Java objects. It has the href() and renderSkin()
functions, but none of the other stuff defined for ordinary
HopObjects.
This new prototype isn't used yet in RequestEvaluator.
2001-09-11 19:11:19 +00:00
hns
73d103327a Set HTTP request method field in RequestTrans. 2001-09-11 19:09:09 +00:00
hns
23b3b8055b ESRequestData has been renamed to ESMapWrapper.
Passing an instance of java.util.Map as argument
to the invokeDirectFunction method will cause it to get
wrapped in an ESMapWrapper, which exposes the elements
in the Map in native JavaScript Object fashion.
2001-09-11 19:08:19 +00:00
hns
1f3a94c7be Removed dependency on helma.scripting.fesi package. 2001-09-11 19:06:12 +00:00
hns
fca259a498 added comments, introduced HTTP-METHOD field,
use HashMap instead of Hashtable.
2001-09-11 19:05:37 +00:00
hns
b73450de2a check whether thisObject is null in renderSkin (which is the case
for global skins).
2001-09-10 14:29:39 +00:00
hns
130d88ef63 back-pedalled on one of the previous changes
in getNodeHref().
2001-09-10 14:23:45 +00:00
hns
0472058607 back-pedalled on some of the previous changes
because it also affects helma.framework.core.Prototype.
2001-09-10 14:15:29 +00:00
hns
a0bfef94eb Some adjustments in Exception handling.
No solution yet to the problem that Syntax errors in function files
make applications ignore the changes in the file rather than report
an error when a funciton from the file is called.
2001-09-10 14:10:06 +00:00
hns
7e1108e7c3 Implemented a scheme to mark applications as scripting the Server
object itself. This is done by writing appname=self in the apps.properties,
which is probably a temporary solution, maybe it'll keep that way.
added getApplications() method to get an array of all applications.
2001-09-10 14:08:49 +00:00
hns
58e0306fb8 Implemented defaultServlet which lives outside of the
WildcardDictionary that matches URL patterns to servlets.
2001-09-10 14:06:46 +00:00
hns
619dafac6d Fixed global skin rendering in res.skin. 2001-09-10 14:05:18 +00:00
hns
453e319496 renamed scriptables to classMapping, slightly cleaned up
getNodeHref() and created getRootHref() method.
2001-09-10 14:04:42 +00:00
hns
3adf646e35 call new getObjectWrapper method in RequestEvaluator which
may or may not return a scriptable object, depending on whether
the object's class name is defined in scriptable.properties.
2001-09-09 18:09:55 +00:00
hns
33c7eda08c Further improvments regarding the "everything is scriptable"
philosophy. Scriptable Java classes are now defined in a
file called scriptable.properties.
2001-09-09 18:08:24 +00:00
hns
18f20ac807 rendering skins and getting hrefs no longer requires an object
that implements  IPathElement.
2001-09-09 18:06:52 +00:00
hns
83d696e98b Removed all dependencies of FESI. Yay! 2001-09-09 18:05:52 +00:00
hns
7d4cbdeb48 implemented direct callback into evaluator by its own thread. 2001-09-08 17:48:39 +00:00
hns
fe7380600b Implemented possibility to call back into an already running
Evaluator. Implemented JavaScript replacement evaluation for
mimicking IPathElement interface.
2001-09-08 17:47:08 +00:00
hns
6ff8401512 Only create standard prototype directories if the application directory
is freshly created, i.e. empty.
2001-09-08 17:45:53 +00:00
hns
e037fa0d19 Always create a sepcial Helma GenericObject EcmaScript wrapper
for Java Objects, allowing all Java objects to be scripted.
2001-09-08 17:45:10 +00:00
hns
a7d1e5d368 putting a macro into the sandbox with allowMacro() did the opposite of what it should 2001-09-08 15:22:15 +00:00
hns
50d49d0484 GenericObject can now (true to its name) wrap any Java object,
not just the ones implementing IPathElement.
2001-09-07 16:35:32 +00:00
hns
fda2b76a49 Added lots of comments.
Implemented clearCache method to purge the object cache.
2001-09-07 16:34:26 +00:00
hns
0715a041a7 new argument order in Application constructor 2001-09-07 16:33:19 +00:00
hns
20955225d0 Allow any java object to be used as Helma object. 2001-09-07 16:32:19 +00:00
hns
f0932b9e5a removed newlines at end of file.
(somehow my suspicion is that kdevelop is adding these)
2001-09-07 16:20:42 +00:00
hns
7922cad8e4 property lookups are not switched to lower case anymore. 2001-09-06 16:41:46 +00:00
hns
57b09f6228 removed getString method with default value argument. 2001-09-06 16:40:39 +00:00