Commit graph

42 commits

Author SHA1 Message Date
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
b8c6201d40 Always scan for repositories 0-9 2005-04-11 15:36:43 +00:00
hns
335f351c5c Generally add the exception as second argument when logging errors.
Add check for null pointer when unregistering XML-RPC handler.
2005-03-21 17:46:39 +00:00
hns
0dd4dba0f7 Try to make javac 1.5 not complain by casting argument to Object[]. 2005-03-18 03:17:13 +00:00
hns
344c0da36e Make session cookie name configurable via sessionCookieName in apps.properties
(merge from helma_1_4)
2005-03-11 15:36:42 +00:00
hns
9f842e8c5d Merged in repository_patch branch. Plus these changes:
* Renamed helma.util.SourceProperties to helma.util.ResourceProperties
* Removed timing from helma.framework.core.RequestEvaluator
2005-03-10 16:54:04 +00:00
hns
e0592e5319 No more need to set the application's charset in the servlet config. 2004-09-15 13:30:58 +00:00
hns
3a4877f84b Set implicit baseURI in bind() in addition to start() so that Hrefs are correct
after an application was remounted.
2004-02-20 13:42:34 +00:00
hns
a4ba238530 Code cleanup in helma.main package. Made most methods in Server non-static
for the sake of consistency.
2003-12-15 17:07:06 +00:00
hns
01a7123cac Set application base uri to mountpoint in start() rather than in
bind() so it is set when onStart() function is executed.
2003-12-12 11:10:12 +00:00
hns
811410599a Checking in Commons Logging support from Daniel, plus a major rewrite
of the Helma logging framework.
2003-11-28 20:15:28 +00:00
hns
0c6d25e038 Added two options for apps.properties for directory indices and index pages:
<app>.staticIndex = true
<app>.staticHome = index.html, default.htm
Default values are (false) for directory listings and "index.html, index.htm" for index pages.
2003-11-14 13:11:25 +00:00
hns
3a61763cbc * Cleanup imports
* Disable ContentEncoding for compatibility with Jetty 4.2
2003-11-05 11:51:47 +00:00
hns
c583133234 Catch all exceptions in stopAll() application loop to make sure all apps are stopped. 2003-08-18 12:24:56 +00:00
hns
092cb230c0 Allow upper case characters in app names by interpreting the property value as
app name in apps.properties, if it is defined.
2003-08-05 15:54:29 +00:00
hns
cc29ebbaf4 Changed argument order in constructor. 2003-07-07 15:19:31 +00:00
hns
676b70519d Merging changes from 1.2.4 to 1.2.5 2003-06-10 13:20:45 +00:00
hns
66663c8b20 Merge from helma_1_2_4 2003-04-16 16:28:04 +00:00
hns
a080342079 Made response compression switchable via appname.responseEncoding = true
Added stopAll() method which cleans up at system shutdown.
2002-11-06 12:05:52 +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
28b4d43653 Install Jetty ContentEncodingHandler that does gzip and deflate compression on responses. 2002-10-23 18:32:54 +00:00
hns
09f046f87a Set baseURI in applications from ApplicationManager iff it isn't defined in the app properties. 2002-10-01 22:49:10 +00:00
hns
5c7dbb717c It is now possible to bind to RMI and embedded Web/AJP1.3 server at the same time.
(this used to be mutually exclusive until now).
2002-09-26 16:39:08 +00:00
hns
8080570bf7 Added support for AJP1.3 protocoll in Jetty.
Updated version string.
2002-09-20 14:12:26 +00:00
hns
65bef92295 Perform getCanonicalFile() immediately when creating hopHome in main method
of Server instead of only doing it when needed.
2002-08-06 14:47:30 +00:00
hns
1f6e49e791 Fixed bug where serving of static files didn't work on Windows with hopHome
property set by using File.getCanonicalFile().
2002-08-06 12:57:24 +00:00
hns
65b8d6b2c4 Major clean-up work on Application constructors. Removed some old
options like setting application file extensions etc. Instead now the Application
constructors can take arguments for the app and db home directories.

Updated helma.main.ApplicationManager and helma.servlet.StandaloneServletClient
to the new constructors.

TypeManager now has file extensions as static final members.
2002-08-02 10:27:31 +00:00
hns
53410917bd Switch to Jetty for embedded web serving needs. 2002-07-24 18:37:20 +00:00
hns
54f2a0e317 Issue a message to the Server log when moving applications on the
embedded web server.
2002-07-12 19:17:20 +00:00
hns
6978b08841 Specifying the mountpoint for applications on the embedded web server
now actually works. (Servlet path translation was broken).
Application manager is now able to move applications on the embedded web server,
i.e. if appname.mountpoint is modified, the application is re-mounted at the new
location.
2002-07-12 18:57:07 +00:00
hns
7088254cb1 Do not create applications with "." in the application name
when apps.properties is modified.
2002-07-10 13:24:14 +00:00
hns
c9707a83b8 Added appname.mountpoint option for entries in apps.properties
to define where an application should be mounted on the
embedded web server.
2002-07-02 15:16:08 +00:00
hns
f1a304f122 remove default servlet if application base is stopped. 2002-06-07 19:13:24 +00:00
hns
202575d801 Reworked much of the helma servlet code.
Parameter parsing is now done by the servlet itself since we know
best about the encoding used by an application.
AcmeServletClient is gone, the new EmbeddedServletClient
is a subclass of AbstractServletClient, so no more duplicate code here.
2002-05-23 19:31:40 +00:00
stefanp
ce27d2124b "=self"-tag for self scripting applications in apps.properties is no longer supported. use class.properties file instead and define helma.main.Server as the main class. 2002-04-08 09:00:52 +00:00
hns
c503592c49 Removed the need to register application servlets for the internal web server
with both appname+"/" and appname+"/*", because Acme Serve now appends
dual dummy slashes to the URI path if the servlet for a request isn't found.
2002-03-21 15:49:02 +00:00
hns
5b7495dca3 ° An app is now mounted as / on the embedded webserver if the
app name is "base", not when it scripts Helma self. This means
that it is now possible to have more than one applications scripting
the Helma server itself (e.g. a simple overview app in / and a
sophisticated admin app in /admin).

° Removed self boolean parameter from start() and register(), since this is
now determined just once and doesn't have to be carried around. Also,
callers of these methods from outside didn't really know about this parameter.
2002-03-07 17:14:46 +00:00
stefanp
b52c3e54b4 added getApplication(String name)
removed private status from start/stop/register
2002-03-07 14:33:58 +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
0715a041a7 new argument order in Application constructor 2001-09-07 16:33:19 +00:00
hns
94201d2a8b adapted to Applications new dual init() and start() method scheme 2001-08-30 12:06:26 +00:00
hns
232f1b37bd initial check in of new helma.main package 2001-08-27 16:47:43 +00:00