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
|
@ -107,6 +107,8 @@ 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);
|
||||||
|
@ -189,6 +191,8 @@ 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