|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The settings (configuration) for the Cocoon core are described through the BaseSettings
interface and the DynamicSettings
interface.
Whereas the settings of the BaseSettings
object can't be changed at runtime,
the settings of the DynamicSettings
object are mutable. Use the Core
instance
to update the settings.
Field Summary | |
static boolean |
ENABLE_UPLOADS
Default value for isEnableUploads() parameter (false). |
static boolean |
HIDE_SHOW_TIME
|
static String |
KEY_HIDE_SHOWTIME
If true, processing time will be added as an HTML comment |
static String |
KEY_LAZY_MODE
Lazy mode for component loading |
static String |
KEY_RELOAD_DELAY
Delay between reload checks for the configuration |
static String |
KEY_RELOADING
Allow reinstantiating (reloading) of the cocoon instance. |
static String |
KEY_SHOW_VERSION
If true, the X-Cocoon-Version response header will be included. |
static String |
KEY_SHOWTIME
Allow adding processing time to the response |
static String |
KEY_UPLOADS_AUTOSAVE
Causes all files in multipart requests to be saved to upload-dir. |
static String |
KEY_UPLOADS_ENABLE
Causes all files in multipart requests to be processed. |
static String |
KEY_UPLOADS_MAXSIZE
Specify maximum allowed size of the upload. |
static String |
KEY_UPLOADS_OVERWRITE
Specify handling of name conflicts when saving uploaded files to disk. |
static int |
MAX_UPLOAD_SIZE
|
static boolean |
RELOADING_ENABLED_DEFAULT
Default value for isReloadingEnabled(String) parameter (false). |
static boolean |
SAVE_UPLOADS_TO_DISK
|
static boolean |
SHOW_COCOON_VERSION
Default value for isShowVersion() parameter (true). |
static boolean |
SHOW_TIME
|
Method Summary | |
int |
getMaxUploadSize()
|
String |
getOverwriteUploads()
|
long |
getReloadDelay(String type)
This method can be used by components to get the configured delay period inbetween checks. |
boolean |
isAllowOverwrite()
|
boolean |
isAutosaveUploads()
|
boolean |
isEnableUploads()
|
boolean |
isHideShowTime()
|
boolean |
isLazyMode()
|
boolean |
isReloadingEnabled(String type)
This method can be used by components to query if they are configured to check for reloading. |
boolean |
isShowTime()
|
boolean |
isShowVersion()
|
boolean |
isSilentlyRename()
|
Field Detail |
public static final boolean RELOADING_ENABLED_DEFAULT
isReloadingEnabled(String)
parameter (false).
public static final boolean ENABLE_UPLOADS
isEnableUploads()
parameter (false).
public static final boolean SAVE_UPLOADS_TO_DISK
public static final int MAX_UPLOAD_SIZE
public static final boolean SHOW_TIME
public static final boolean HIDE_SHOW_TIME
public static final boolean SHOW_COCOON_VERSION
isShowVersion()
parameter (true).
public static final String KEY_RELOADING
public static final String KEY_UPLOADS_ENABLE
public static final String KEY_UPLOADS_AUTOSAVE
public static final String KEY_UPLOADS_OVERWRITE
public static final String KEY_UPLOADS_MAXSIZE
public static final String KEY_SHOWTIME
public static final String KEY_HIDE_SHOWTIME
public static final String KEY_SHOW_VERSION
public static final String KEY_RELOAD_DELAY
public static final String KEY_LAZY_MODE
Method Detail |
public boolean isHideShowTime()
KEY_HIDE_SHOWTIME
public boolean isShowVersion()
KEY_SHOW_VERSION
public boolean isReloadingEnabled(String type)
type
- The type of the component that wants to check for reload.
KEY_RELOADING
public long getReloadDelay(String type)
type
- The type of the component that wants to check for reload.
KEY_RELOAD_DELAY
public boolean isAutosaveUploads()
KEY_UPLOADS_AUTOSAVE
public boolean isEnableUploads()
KEY_UPLOADS_ENABLE
public int getMaxUploadSize()
KEY_UPLOADS_MAXSIZE
public String getOverwriteUploads()
KEY_UPLOADS_OVERWRITE
public boolean isShowTime()
KEY_SHOWTIME
public boolean isLazyMode()
KEY_LAZY_MODE
public boolean isAllowOverwrite()
public boolean isSilentlyRename()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |