implemented settable character sets
This commit is contained in:
parent
8bbd32f01c
commit
a6b45deaa8
1 changed files with 10 additions and 1 deletions
|
@ -77,6 +77,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
|
|
||||||
protected CacheMap skincache = new CacheMap (100);
|
protected CacheMap skincache = new CacheMap (100);
|
||||||
|
|
||||||
|
String charset;
|
||||||
|
|
||||||
private CryptFile pwfile;
|
private CryptFile pwfile;
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,6 +128,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
|
|
||||||
nmgr = new NodeManager (this, dbDir.getAbsolutePath (), props);
|
nmgr = new NodeManager (this, dbDir.getAbsolutePath (), props);
|
||||||
|
|
||||||
|
charset = props.getProperty ("charset", "ISO-8859-1");
|
||||||
|
|
||||||
debug = "true".equalsIgnoreCase (props.getProperty ("debug"));
|
debug = "true".equalsIgnoreCase (props.getProperty ("debug"));
|
||||||
try {
|
try {
|
||||||
requestTimeout = Long.parseLong (props.getProperty ("requestTimeout", "60"))*1000l;
|
requestTimeout = Long.parseLong (props.getProperty ("requestTimeout", "60"))*1000l;
|
||||||
|
@ -297,7 +301,12 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
if (primaryRequest) {
|
if (primaryRequest) {
|
||||||
activeRequests.remove (req);
|
activeRequests.remove (req);
|
||||||
releaseEvaluator (ev);
|
releaseEvaluator (ev);
|
||||||
res.close (); // this needs to be done before sending it back
|
// response needs to be closed/encoded before sending it back
|
||||||
|
try {
|
||||||
|
res.close (charset);
|
||||||
|
} catch (UnsupportedEncodingException uee) {
|
||||||
|
logEvent ("Unsupported response encoding: "+uee.getMessage());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
res.waitForClose ();
|
res.waitForClose ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue