Commit graph

2062 commits

Author SHA1 Message Date
hns
2b2fdf59c1 Simplified getInstance(String) a little bit. 2005-06-09 16:34:00 +00:00
hns
04a1b2cb80 Set thread priority for GZipper threads to MIN_PRIORITY. 2005-06-09 16:32:32 +00:00
hns
0e2aca1c07 - Remove old debug thread dump in getInstance(String)
- Remove double checking to avoid entering synchronized code in getInstance(String)
- Rename newLog(String) to getFileLogger(String) and clean it up a little bit
2005-06-09 11:46:12 +00:00
hns
23efbd457d Make Runner.run() synchronized again, needed by wait() 2005-06-09 11:23:49 +00:00
hns
e95169cfe6 Remove comment about bogus thread safety, not true anymore after last commit. 2005-06-09 11:15:01 +00:00
hns
70edf7bedf - No need to make runner volatile since it is only access in synchronized code
- Do not null out Logging.runner at the end of Runner.run()
- Remove unused Runner.wakeup() method and make runner.run() not synchronized
2005-06-09 11:02:55 +00:00
hns
3a55c1b270 - Make sure we use an absolute path for logdir
- Make all methods that work on the logfile/writer synchronized
- Increase Buffer size in GZipper thread to 8192 bytes
2005-06-09 10:42:51 +00:00
hns
5bc692e923 Make runner variable volatile. 2005-06-06 19:28:14 +00:00
hns
107aaa6a59 - Encapsulate access to static runner into synchronized methods to prevent
spawning of multiple threads.
- Make static runner field non-public.
2005-06-06 15:55:16 +00:00
hns
1a7a054894 Minor patch: get dateLastRendered and dateCache from the same java.util.Date instance. 2005-06-06 15:52:45 +00:00
hns
18dbec3dd8 Fix two minor bugs that keep everything from working. 2005-06-02 20:27:40 +00:00
hns
a8b9ffd154 Make FileRepository(File) constructor public again, it is used from the helma.main and helma.servlet packages. 2005-06-02 19:04:13 +00:00
hns
43b1b5edd8 Many changes and fixes in Prototype skin management:
- Use an ordered TreeSet for prototype's repositories so we
	  know the resources we get are already in the right order.
	- Use SkinMap again for intetracking mapping the prototype's skins
	  internally after cleaning the code up a bit.
	- Add new ScriptableSkinMap object that wraps a skinmap, exposes it as
	  native JavaScript object by extending WrappedMap, and does the
	  Resource to String conversion in get().
	- Move code that loads additional skins from skinpath from
	  SkinManager.getSkinFiles() to SkinMap.loadSkinFiles()
	- Inline addSkinResource() and addCodeResource() methods into
	  checkForUpdates().
	- Make lastUpdate kind of fields volatile.
2005-06-02 12:06:57 +00:00
hns
1c9bdff6af Rename getSkinInternal() to getSkinInPath() 2005-06-02 08:18:44 +00:00
hns
a9aadfe00c - Make sure our file has an absolute path, otherwise we run into inconsistent behaviour
of File.exists()
2005-06-01 15:09:52 +00:00
hns
ceebcdb96e - Make sure our directory has an absolute path, otherwise we run into inconsistent behaviour
of File.exists()
- Throw exception if directory exists and is not a directory
- Rename dir instance variable to directory
2005-06-01 15:09:35 +00:00
hns
828ba529dd Make constructor public. 2005-06-01 14:54:50 +00:00
hns
e9c32f20a1 Enhanced/fixed Javadoc for getRootRepository() 2005-05-24 14:32:45 +00:00
hns
962d53336c Make sure skinmaps are loaded even if prototype's resources haven't been checked yet.
Fixes bug 428.
2005-05-24 14:18:19 +00:00
hns
fe455cb556 - Implemented notifyPropertyChange() function which is called from all property setters in order to fix bug 424.
- Refactored DbMapping related checks in setString() a little bit.
2005-05-24 10:21:48 +00:00
hns
f671a6b838 - Return the logical/script root in AbstractRepository.getRootRepository(). Fixes bug 425.
- Added some Javadoc comments.
2005-05-20 09:55:10 +00:00
hns
e284f39be5 getRootNode(): Set DbMapping and prototype name to app.getRootMapping() 2005-05-18 08:44:43 +00:00
hns
0eb623afd5 Use NodeManager.getRootNode() to get our root node. 2005-05-18 08:42:17 +00:00
hns
d26b968ae8 Always use directly mapped property as first choice when resolving ${column_name} in appendFilter().
Only use id/name/prototype if that doesn't give us a value.
2005-05-18 08:33:47 +00:00
hns
3c8f9f8890 Throw exception in init() when rootPrototype or userPrototype does not exist. 2005-05-13 15:33:01 +00:00
hns
525739eaa5 Minor code improvement in isStorageCompatible() 2005-05-13 15:26:55 +00:00
hns
0deb7c3a53 Read rootPrototype and userPrototype in init() instead of in updateProperties() 2005-05-13 15:25:58 +00:00
hns
70ea9f7aa3 Application.java:
- Update rootMapping and userMapping in updateProperties()
- Replace getRootPrototype() with getRootMapping()
DbMapping():
- Implement static areStorageCompatible() method to check
  two DbMappings, both of which may be null
NodeManager:
- Update to use new methods
2005-05-13 15:20:16 +00:00
hns
4def8eed1e Implement NodeManager.getRootNode() and NodeManager.isRootNode() that
allow to get the app's root node and check if a node is the root node, respectively
2005-05-13 14:45:42 +00:00
hns
022bc2a2d8 - Renamed former rootPrototype property to hrefRootProperty,
since it defines the root object only as far as href() function is
  concerned
- Add rootPrototype and userPrototype properties that allow to
  set the prototypes for the root and user objects, respectively
- Implement Application.getRootPrototype() and Application.getRootId()
  that allow to get the prototype and id of the app's root node
2005-05-13 14:44:45 +00:00
hns
fc9120d77f Remove initDb() method, not used anymore 2005-05-13 14:07:23 +00:00
hns
70eb0c5e5d Implement rootPrototype app property that allows to force-set the root object prototype. 2005-05-12 16:16:39 +00:00
hns
95dd5feb63 Fix bug where directories wrongly adopted resources as their children. 2005-04-29 13:27:54 +00:00
hns
6c44c5fa66 Implement appname.protectedSessionCookie property in apps.properties.
If set to "false", session cookies will not be bound to the client's ip subnet.
2005-04-22 13:23:25 +00:00
hns
21e98e793e Print debug statement for session manager implementation 2005-04-22 12:49:18 +00:00
hns
8651432157 Switch back to ImageIO.read() on CVS HEAD
(we stay with Toolkit.createImage() on helma_1_4 branch for now)
2005-04-15 14:23:50 +00:00
hns
2b916bc2df Only set response to 304 not modified if no cookies were set.
Apache will not set cookies in a 304 response.
2005-04-14 16:27:37 +00:00
hns
00070358f9 Fix app.getSessions() 2005-04-14 11:04:03 +00:00
hns
3eea4d97af Use proper resource ordering for multiple type.properties files 2005-04-13 10:42:12 +00:00
hns
f889624d86 Fix bug in getSkin() that could result in skins not being fully read. 2005-04-13 09:22:59 +00:00
hns
c54d767b6e Make sure script windows are updated when scripts are recompiled 2005-04-12 13:34:11 +00:00
hns
ed3220768a Move helma.xsl from helma/objectmodel/db to helma/objectmodel/dom package
(following the move of XmlDatabase)
2005-04-12 13:10:22 +00:00
hns
8e96cfb709 Remove ominous apache-michi.jar from jar contents 2005-04-12 09:53:27 +00:00
hns
b8c6201d40 Always scan for repositories 0-9 2005-04-11 15:36:43 +00:00
hns
a021cbf791 Allow Helma to run without listening to any server ports. 2005-04-11 15:29:47 +00:00
hns
2ab0f17678 Add missing calls to checkNode() 2005-04-11 15:26:56 +00:00
hns
47e6955aa2 Don not use potentially deprecated ZipEntry to get an entry's size. The entry
may have been generated for an old version of the zip file and not exist at all.
As a fix, don't store the ZipEntry at all in ZipResource, just the ZipEntry's name.
2005-04-11 11:44:54 +00:00
hns
530afc9f88 Add calls to Graphics.dispose() and Image.flush() whereever possible.
Rewrite protected resize to directly set image, width, and height.
2005-04-07 14:15:46 +00:00
hns
a74ec62b68 Use Toolkit.createImage() to decode images until javax.imageio has matured. 2005-04-07 14:15:26 +00:00
hns
806260212e Set lastmodified to 0 if repository doesn't exist 2005-04-05 13:13:32 +00:00