|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.servlet.ServletSettings
Helper class for managing Cocoon servlet specific settings.
Field Summary | |
static boolean |
HIDE_SHOW_TIME
Default value for KEY_HIDE_SHOWTIME parameter (false). |
protected boolean |
hideShowTime
If true, processing time will be added as an HTML comment |
static String |
KEY_HIDE_SHOWTIME
If true, processing time will be added as an HTML comment |
static String |
KEY_MANAGE_EXCEPTIONS
If true or not set, this class will try to catch and handle all Cocoon exceptions. |
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 boolean |
MANAGE_EXCEPTIONS
Default value for KEY_MANAGE_EXCEPTIONS parameter (true). |
protected boolean |
manageExceptions
If true or not set, this class will try to catch and handle all Cocoon exceptions. |
static boolean |
SHOW_COCOON_VERSION
Default value for KEY_SHOW_VERSION parameter (true). |
static boolean |
SHOW_TIME
Default value for KEY_SHOWTIME parameter (false). |
protected boolean |
showCocoonVersion
If true, the X-Cocoon-Version response header will be included. |
protected boolean |
showTime
Allow adding processing time to the response |
Constructor Summary | |
ServletSettings(org.apache.cocoon.configuration.Settings s)
|
Method Summary | |
boolean |
isHideShowTime()
|
boolean |
isManageExceptions()
|
boolean |
isShowTime()
|
boolean |
isShowVersion()
|
void |
setHideShowTime(boolean hideShowTime)
|
void |
setManageExceptions(boolean manageExceptions)
|
void |
setShowCocoonVersion(boolean showCocoonVersion)
|
void |
setShowTime(boolean showTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String KEY_SHOWTIME
public static String KEY_HIDE_SHOWTIME
public static String KEY_SHOW_VERSION
public static String KEY_MANAGE_EXCEPTIONS
public static final boolean SHOW_TIME
KEY_SHOWTIME
parameter (false).
public static final boolean HIDE_SHOW_TIME
KEY_HIDE_SHOWTIME
parameter (false).
public static final boolean SHOW_COCOON_VERSION
KEY_SHOW_VERSION
parameter (true).
public static final boolean MANAGE_EXCEPTIONS
KEY_MANAGE_EXCEPTIONS
parameter (true).
protected boolean showTime
protected boolean hideShowTime
protected boolean showCocoonVersion
protected boolean manageExceptions
Constructor Detail |
public ServletSettings(org.apache.cocoon.configuration.Settings s)
Method Detail |
public boolean isHideShowTime()
KEY_HIDE_SHOWTIME
public boolean isManageExceptions()
KEY_MANAGE_EXCEPTIONS
public boolean isShowTime()
KEY_SHOWTIME
public boolean isShowVersion()
KEY_SHOW_VERSION
public void setHideShowTime(boolean hideShowTime)
hideShowTime
- The hideShowTime to set.public void setManageExceptions(boolean manageExceptions)
manageExceptions
- The manageExceptions to set.public void setShowTime(boolean showTime)
showTime
- The showTime to set.public void setShowCocoonVersion(boolean showCocoonVersion)
showCocoonVersion
- The showCocoonVersion flag to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |