public boolean isSecureCookie() { try { Property property = getPropertyObject(SECURE_COOKIE); return Boolean.parseBoolean(property.getValue()); } catch (Exception e) { return false; } }
public boolean isGzipEnabled() throws PropertyManagerException { try { Property property = getPropertyObject(GZIP_ENABLED); return Boolean.parseBoolean(property.getValue()); } catch (ObjectNotFoundException e) { throw new PropertyManagerException(e.getMessage(), e); } }
public boolean isCacheEnabled() { try { Property property = getPropertyObject(CACHE_ENABLED); return Boolean.parseBoolean(property.getValue()); } catch (Exception e) { return false; } }
public boolean isUsingDatabaseTokenStorage() throws PropertyManagerException { boolean usingDatabaseStorage; try { usingDatabaseStorage = Boolean.parseBoolean(getPropertyObject(DATABASE_TOKEN_STORAGE_ENABLED).getValue()); } catch (ObjectNotFoundException e) { // By default return true usingDatabaseStorage = true; } return usingDatabaseStorage; }