use of lucee.runtime.PageContext in project Lucee by lucee.
the class HTTPResponseSupport method getCharset.
@Override
public final String getCharset() {
ContentType ct = getContentType();
String charset = null;
if (ct != null)
charset = ct.getCharset();
if (!StringUtil.isEmpty(charset))
return charset;
PageContext pc = ThreadLocalPageContext.get();
if (pc != null)
return pc.getWebCharset().name();
return "ISO-8859-1";
}
use of lucee.runtime.PageContext in project Lucee by lucee.
the class CharsetUtil method getWebCharset.
public static Charset getWebCharset() {
PageContext pc = ThreadLocalPageContext.get();
if (pc != null)
return pc.getWebCharset();
Config config = ThreadLocalPageContext.getConfig();
if (config != null)
return config.getWebCharset();
return CharsetUtil.ISO88591;
}
use of lucee.runtime.PageContext in project Lucee by lucee.
the class SessionTracker method getSessionCollection.
public static Struct getSessionCollection(String appName) {
PageContext pc = ThreadLocalPageContext.get();
ScopeContext sc = ((CFMLFactoryImpl) pc.getCFMLFactory()).getScopeContext();
return sc.getAllSessionScopes(appName);
}
use of lucee.runtime.PageContext in project Lucee by lucee.
the class SessionTracker method getSessionCount.
public static int getSessionCount() {
PageContext pc = ThreadLocalPageContext.get();
ScopeContext sc = ((CFMLFactoryImpl) pc.getCFMLFactory()).getScopeContext();
return sc.getSessionCount(pc);
}
Aggregations