Commit graph

1358 commits

Author SHA1 Message Date
hns
10848be629 Improved error output in scripting engine initialization,
create a ResponseTrans that knows about the RequestTrans if possible.
2002-10-28 16:49:29 +00:00
hns
5003588bb7 Added support for ETag conditional GETs, streamlined support for
Last-Modified and If-Modified-Since
2002-10-28 16:48:28 +00:00
hns
1690b6bf58 Fixed a bug that dropped some zeros in the message digest.
Added a method that directly takes a byte array as input.
2002-10-28 16:46:10 +00:00
hns
01254c1a88 Use buffered input stream in getURL 2002-10-27 18:54:26 +00:00
hns
2922208ccc Added support for ETag and If-Modified-Since conditional GET 2002-10-27 18:44:20 +00:00
hns
138eb38903 Added ETag and lastModified fields 2002-10-27 18:43:30 +00:00
hns
4ab51d544a Completely changed how XML-RPC invocation is performed. XML-RPC requests are
now handled by helma.main.ApplicationManager, which dispatches requests to the
right application. Also cleaned up XML-RPC access control a big deal, including it
in the generic application properties handling.
Fixes bug 135  http://helma.org/bugs/show_bug.cgi?id=135
2002-10-25 17:08:45 +00:00
hns
6cb41d18fd Cut whitespace at end of file 2002-10-25 17:05:02 +00:00
hns
cffd1ec20d implement FilenameFilter so there is no need for creating an anonymous inner class. 2002-10-25 15:23:54 +00:00
hns
aa1b666fbd Updated antclick version to 1.0pre2 2002-10-25 13:51:16 +00:00
hns
743b7e7bc7 Included section about Antville and Antclick provided by kris (thanks!),
updated some bits and pieces about Helma like the system requirements and
the documentation URL.
2002-10-25 13:45:21 +00:00
hns
443a7ecab7 Added/Updated Files to Mckoi version 0.94g. 2002-10-25 13:29:32 +00:00
hns
444f2aa6bc Remove Mckoi 0.93 database files. 2002-10-25 13:27:02 +00:00
hns
c96fea4874 set cache size to zero (we don't need a cache when running in embedded mode). 2002-10-25 13:18:25 +00:00
hns
81a3591d0b A normal user can't start a server on port 80, switch back to 8080. 2002-10-25 12:40:12 +00:00
hns
e2f460ce40 Updated to Mckoi 0.94g. 2002-10-25 12:32:59 +00:00
hns
186459918a Initialize lastmod. 2002-10-24 15:37:56 +00:00
hns
8573a0ce89 Updated version string 2002-10-24 15:37:29 +00:00
hns
1a785e4031 Implemented res.debug() method that appends debug messages to the response body. 2002-10-24 12:37:07 +00:00
hns
afbdf485ba initScriptingEngine is now capable of creating different scripting engines based on
the scripting.engine.factory property.
2002-10-24 12:20:53 +00:00
hns
28b4d43653 Install Jetty ContentEncodingHandler that does gzip and deflate compression on responses. 2002-10-23 18:32:54 +00:00
hns
38eb79123d Check if onRequest is defined for the current object before calling it. 2002-10-23 15:41:15 +00:00
hns
18926fb8e0 When a node accessed by secondary keys (accessname) is fetched but then found
by primary key in the cache, reset its create time to its lastmod time. Otherwise,
Relation.checkConstraints will (rightly) reject it if a filter is defined for it, since it
can't be sure that the filter constraint is still valid for the modified node.
2002-10-23 15:40:20 +00:00
hns
4b945e9d72 Made created and lastmodified protected to allow direct access from NodeManager. 2002-10-23 15:38:01 +00:00
hns
8ae95ff5bb Change transaction name for error handler so people get less confusing commit/
abort messages (see bug 107, http://helma.org/bugs/show_bug.cgi?id=107 ).
2002-10-23 13:05:44 +00:00
hns
8d85952f24 Always abort transaction when catching an error in HTTP request loop. This is because
a new transaction is started for the error handling also, so if something goes wrong
in error handling, we need to abort the transaction.
2002-10-23 12:46:21 +00:00
hns
2c9e42bcb3 Fixed stupid bug in SkinFile constructor. 2002-10-23 12:00:46 +00:00
hns
7463553a95 Pretty much reworked all the Helma type management code. 2002-10-22 16:33:03 +00:00
hns
ea5edf51c9 don't forget to reset buffer stack in reset() 2002-10-22 16:32:00 +00:00
hns
003173f895 Use index of last dot in filename to find out the type of a file 2002-10-21 12:17:51 +00:00
hns
a5b2945065 Only decode path element if it actually is encoded. 2002-10-17 18:46:40 +00:00
hns
318964b518 Use a proxy to java.net.URLEncoder which only encodes when
there is actual work to do. This is necessary because
URLEncoder is quite inefficient (e.g. it preallocates
 buffers and stuff), and we call it often with
 short string that don't need encoding.
2002-10-17 18:43:24 +00:00
hns
933a0ef7a3 Implemented our own getPathInfo to use the decoding from java.net.URLDecoder.
Removed old slack since we now have some guarantees about req.path.
2002-10-17 16:00:58 +00:00
hns
9e0dae779c Do not reset servlet response in sendRedirect() otherwise cookies are lost 2002-10-17 09:34:14 +00:00
hns
bb3a080164 Renamed variable in writeResponse() 2002-10-16 16:21:27 +00:00
hns
d0aa1a72b5 Lots of code cleanup and little fixes.
redirect() now sends a 303 status code instead of 302 for HTTP/1.1.
2002-10-16 15:29:54 +00:00
hns
0db8fd2bbd Fixed bugs 131: "No retry code in ServletClient and MultiServletClient"
and 132:  "helma.serlvet.ServletClient stops working after *some* time"
And also did some cleanup work.
2002-10-16 15:28:12 +00:00
hns
558c5a5660 Print/rethrow full exception string when an exception is caught from
NodeWrapper, since the exception message without the exception class is often
not very telling (e.g. "128" in ArrayIndexOutOfBoundsExceptions).
2002-10-16 13:25:36 +00:00
hns
e91d06e88e removed final keyword which caused compile to fail on OS X (Java 1.3.1) 2002-10-15 22:07:24 +00:00
hns
ff82c38ff6 Fixed ApplicationBean.getSkinfiles: Skin files in app.skinfiles are now loaded only
when accessed. This is implemented using an inner class Prototype.SkinMap.
2002-10-15 17:56:10 +00:00
hns
efa13b4a00 Cleaned up SkinManager, added method to collect skins in other directories than
the prototype directory.
2002-10-15 17:54:04 +00:00
hns
6f982f6951 Changed skinDepth from public to protected. 2002-10-15 17:52:36 +00:00
hns
063b42744c Various minor optimizations. 2002-10-15 17:52:00 +00:00
hns
c796392946 added setBufferLength() method to truncate the response buffer. 2002-10-15 17:48:24 +00:00
hns
30dd6b206e Rewrote XML encoding of properties not to stumble over null values (hopefully).
Also did some minor code cleanup.
Support for stopTypes has been added but is commented out.
2002-10-14 17:05:06 +00:00
hns
00ae368a85 Cleaned the way boolean properties are transformed into as string 2002-10-14 16:40:18 +00:00
hns
825415f526 * Check for null and empty string in all encoder methods.
* Encode macro tags and HTML comments inside <code> tag.
* Added simple main() method for command line tests.
2002-10-14 16:39:18 +00:00
hns
6a7e0ec908 Fixed bug 128 (Logger NullPointerException), moved some code. 2002-10-14 15:39:45 +00:00
hns
d1fe0ad7c8 Fixed formatting. 2002-10-14 15:24:18 +00:00
hns
43b9e08027 ScriptingEngine.invoke() is now called with the wrapping Beans as arguments, so
ScriptingEngine implementations do not have to create the beans themselves anymore.
2002-10-14 15:13:02 +00:00