Added skinExtensions properties for support of public skins.
This is a property file, for now called mime.properties, that mapps file extension names to MIME types.
This commit is contained in:
parent
3712b51628
commit
77da4999aa
1 changed files with 10 additions and 6 deletions
|
@ -23,8 +23,8 @@ import java.rmi.server.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The central class of a Helma application. This class keeps a pool of so-called
|
* The central class of a Helma application. This class keeps a pool of so-called
|
||||||
* request evaluators (threads with JavaScript interpreters), waits for
|
* request evaluators (threads with JavaScript interpreters), waits for
|
||||||
* requests from the Web server or XML-RPC port and dispatches them to
|
* requests from the Web server or XML-RPC port and dispatches them to
|
||||||
* the evaluators.
|
* the evaluators.
|
||||||
*/
|
*/
|
||||||
public class Application extends UnicastRemoteObject implements IRemoteApp, IPathElement, IReplicatedApp, Runnable {
|
public class Application extends UnicastRemoteObject implements IRemoteApp, IPathElement, IReplicatedApp, Runnable {
|
||||||
|
@ -63,7 +63,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
|
|
||||||
boolean stopped = false;
|
boolean stopped = false;
|
||||||
boolean debug;
|
boolean debug;
|
||||||
public long starttime;
|
public long starttime;
|
||||||
|
|
||||||
public Hashtable sessions;
|
public Hashtable sessions;
|
||||||
public Hashtable activeUsers;
|
public Hashtable activeUsers;
|
||||||
|
@ -107,12 +107,14 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
|
|
||||||
// Map of java class names to object prototypes
|
// Map of java class names to object prototypes
|
||||||
Properties classMapping;
|
Properties classMapping;
|
||||||
|
// Map of extensions allowed for public skins
|
||||||
|
Properties skinExtensions;
|
||||||
|
|
||||||
// a cache for parsed skin objects
|
// a cache for parsed skin objects
|
||||||
public CacheMap skincache = new CacheMap (200, 0.80f);
|
public CacheMap skincache = new CacheMap (200, 0.80f);
|
||||||
|
|
||||||
// DocApplication used for introspection
|
// DocApplication used for introspection
|
||||||
public DocApplication docApp;
|
public DocApplication docApp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zero argument constructor needed for RMI
|
* Zero argument constructor needed for RMI
|
||||||
|
@ -189,7 +191,9 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IPat
|
||||||
|
|
||||||
// the properties that map java class names to prototype names
|
// the properties that map java class names to prototype names
|
||||||
classMapping = new SystemProperties (new File (appDir, "class.properties").getAbsolutePath ());
|
classMapping = new SystemProperties (new File (appDir, "class.properties").getAbsolutePath ());
|
||||||
|
// the properties that map allowed public skin extensions to content types
|
||||||
|
skinExtensions = new SystemProperties (new File (appDir, "mime.properties").getAbsolutePath ());
|
||||||
|
|
||||||
// character encoding to be used for responses
|
// character encoding to be used for responses
|
||||||
charset = props.getProperty ("charset", "ISO-8859-1");
|
charset = props.getProperty ("charset", "ISO-8859-1");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue