public class Config extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Config.Backend
Backend configuration class.
|
static class |
Config.Cache
Configuration node for HTTP cache lifetimes for various CKFinder components.
|
static class |
Config.Images
Configuration node for image processing.
|
static class |
Config.PrivateDir
Configuration node for CKFinder connector's internal private directories.
|
static class |
Config.ResourceType
Configuration node for resource type.
|
static class |
Config.Thumbnails
Configuration node for image thumbnails.
|
Constructor and Description |
---|
Config() |
public String getLicenseName()
public void setLicenseName(String licenseName)
licenseName
- license namepublic String getLicenseKey()
public void setLicenseKey(String licenseKey)
licenseKey
- license keypublic String getRoleSessionAttribute()
HttpSession
attribute that holds current user's role namepublic void setRoleSessionAttribute(String roleSessionAttribute)
roleSessionAttribute
- the name of HttpSession
attribute that holds current user's role namepublic Config.PrivateDir getPrivateDirConfig()
public void setPrivateDir(Config.PrivateDir privateDir)
privateDir
- private directories configurationpublic boolean checkSizeAfterScaling()
public void setCheckSizeAfterScaling(boolean checkSizeAfterScaling)
checkSizeAfterScaling
- flag telling if the size of uploaded image should be
checked after the image is rescaled to smaller dimensionspublic boolean secureImageUploadsEnabled()
public void setSecureImageUploads(boolean secureImageUploads)
secureImageUploads
- flag telling if uploading of corrupted images should be allowedpublic boolean isCsrfProtectionEnabled()
public void setCsrfProtection(boolean enableCsrfProtection)
enableCsrfProtection
- flag telling if the CSRF protection should be enabledpublic Map<String,Config.ResourceType> getResourceTypes()
public Config.ResourceType getResourceTypeConfig(String resourceTypeName)
resourceTypeName
- resource type namepublic void setResourceTypes(ArrayList<Config.ResourceType> resourceTypes)
resourceTypes
- resource types configurationpublic Map<String,Config.Backend> getBackends()
public Config.Backend getBackendConfig(String backendName)
backendName
- backend namepublic void setBackends(ArrayList<Config.Backend> backends)
backends
- backends configurationpublic ArrayList<AclRule> getAccessControl()
public void setAccessControl(ArrayList<AclRule> accessControl)
accessControl
- sets access control rulespublic Config.Thumbnails getThumbnailsConfig()
public void setThumbnails(Config.Thumbnails thumbnails)
thumbnails
- thumbnails configurationpublic Config.Images getImagesConfig()
public void setImages(Config.Images images)
images
- configuration for image processingpublic Config.Cache getCacheConfig()
public void setCache(Config.Cache cache)
cache
- cache configurationpublic void setExtraHeaders(Map<String,String> extraHeaders)
extraHeaders
- extra headers configurationpublic boolean serveStaticResources()
public void setServeStaticResources(boolean serveStaticResources)
serveStaticResources
- option telling if the servlet should
serve static resources (JS and CSS files of CKFinder's frontend)Copyright © 2007 – 2019 CKSource - Frederico Knabben. All rights reserved.