|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configuration
This interface abstract communication with a configuration mechanism for initialization parameters.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIGURATION_FILE_PARAM
This entry specifies an optional configuration file where all other configuration constants in this file may be externalized if desired. |
static java.lang.String |
CONTROLLER_PATH_PARAM
Indicates the java package that will hold controllers for the DynamicRestServlet to find them. |
static java.lang.String |
DEFAULT_LOGIN_PARAM
Indicates the default login for ALWAYS login type. |
static java.lang.String |
DISPLAY_SYSTEM_EXCEPTIONS_PARAM
Display system exceptions as part of the JSP file. |
static java.lang.String |
ICON_DIR_PARAM
Display tag may use GIF icons for some character sequences ( such as =) that may be transated into a happy face icon ). |
static java.lang.String |
LOGIN_TYPE_PARAM
Login type of the application. |
static java.lang.String |
METHODS_DELETE_PARAM
The default method for deletion. |
static java.lang.String |
METHODS_INSERT_FORM_PARAM
The default method for an insert form. |
static java.lang.String |
METHODS_INSERT_PARAM
The default method for insertion. |
static java.lang.String |
METHODS_UPDATE_FORM_PARAM
The default method for an update form. |
static java.lang.String |
METHODS_UPDATE_PARAM
The default method for update. |
static java.lang.String |
PORTAL_PATH_PARAM
Path to a basic portal application context path. |
static java.lang.String |
PREFIX
All configuration parameters start with this prefix. |
static java.lang.String |
SERVICES_FILE_PARAM
Spring services file for the current application. |
static java.lang.String |
VALIDATION_BUNDLE_PARAM
Validation bundle that will be used to interpret validation messages on the application. |
static java.lang.String |
WEB_DEFAULT_EXTENSION_PARAM
This parameter may be used to override the web default extension on web.xml |
static java.lang.String |
WEB_SERVICE_DEFAULT_EXTENSION_PARAM
This parameter may be used to override the web service default extension on web.xml |
static java.lang.String |
WEB_SERVICE_VIEWS_PATH_PARAM
This parameter may be used to override the web service views path on web.xml |
static java.lang.String |
WEB_VIEWS_PATH_PARAM
This parameter may be used to override the web views path on web.xml |
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String key)
Get a parameter by key. |
boolean |
getBoolean(java.lang.String key)
Return the given attribute as a boolean value. |
java.lang.String |
getDefaultDeleteMethod()
Get the default method that will be called for a DELETE HTTP request. |
java.lang.String |
getDefaultPostMethod()
Get the default method that will be called for a POST HTTP request. |
java.lang.String |
getDefaultPutMethod()
Get the default method that will be called for a PUT HTTP request. |
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Get a read-only view of the parameters of this configuration. |
java.lang.String |
getWebDefaultExtension()
Return the default extension for web requests |
java.lang.String |
getWebServiceDefaultExtension()
Return the default extension used for web service views. |
java.lang.String |
getWebServiceViewsPath()
Get the web service view path used for web service views. |
java.lang.String |
getWebViewsPath()
Get the web view path used for traditional web views. |
| Field Detail |
|---|
static final java.lang.String PREFIX
static final java.lang.String CONFIGURATION_FILE_PARAM
Parameters configured on the external file have precedence over those defined directly on the web deployment descriptor. This behavior will allow provide better parameter overriding facilities at component level in future implementations of the framework.
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml.
The value of this param is "com.acsinet_solutions.cetia4.configuration.file".
static final java.lang.String CONTROLLER_PATH_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.controller.path"
DynamicRestServlet,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String DEFAULT_LOGIN_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.default_login"
LOGIN_TYPE_PARAM,
UserSessionManager.createSessionFor(String),
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String DISPLAY_SYSTEM_EXCEPTIONS_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.display_system_exceptions"
WriteExceptionTag,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String ICON_DIR_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.icon_dir"
DisplayTag,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String LOGIN_TYPE_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.login_type"
LoginType,
RestServlet,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String METHODS_DELETE_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.methods.delete".
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String METHODS_INSERT_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.methods.insert".
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String METHODS_INSERT_FORM_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.methods.insert_form".
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String METHODS_UPDATE_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.methods.update".
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String METHODS_UPDATE_FORM_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.methods.update_form".
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String PORTAL_PATH_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.portal_path"
AttributeKeys._PORTAL_PATH_KEY,
ControllerTools.getPortalPath(ServletContext,HttpServletRequest),
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String SERVICES_FILE_PARAM
This parameter is read by the ServiceInitializerBase for creating a Spring Framework based service locator, only if a service locator class was provided to that class as part of it's constuctor. Spring model support is not required in a cetia4 application, but it's very useful, flexible and convenient.
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.services.file"
ServiceInitializerBase,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String VALIDATION_BUNDLE_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM.
The value of this param is "com.acsinet_solutions.cetia4.validation_bundle"
ForEachIssueTag,
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String WEB_DEFAULT_EXTENSION_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.web_default_extension"
ServletConfigurationImpl#WEB_DEFAULT_EXTENSION,
ControllerTools#getWebDefaultExtension(),
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String WEB_SERVICE_DEFAULT_EXTENSION_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.web_service_default_extension"
ServletConfigurationImpl#WEB_SERVICE_DEFAULT_EXTENSION,
ControllerTools#getWebServiceDefaultExtension(),
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String WEB_VIEWS_PATH_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.web_views_path"
ServletConfigurationImpl#WEB_VIEWS_PATH,
ControllerTools#getWebViewsPath(),
CONFIGURATION_FILE_PARAM,
Constant Field Valuesstatic final java.lang.String WEB_SERVICE_VIEWS_PATH_PARAM
This configuration parameter is meant to be set at context level in /WEB-INF/web.xml or in an external configuration file set by CONFIGURATION_FILE_PARAM. It may make sense to override this parameter at servlet level also if needed.
The value of this param is "com.acsinet_solutions.cetia4.web_service_views_path"
ServletConfigurationImpl#WEB_SERVICE_VIEWS_PATH,
ControllerTools#getWebServiceViewsPath(),
CONFIGURATION_FILE_PARAM,
Constant Field Values| Method Detail |
|---|
java.util.Map<java.lang.String,java.lang.String> getParams()
java.lang.String get(java.lang.String key)
key - A not-null value.
boolean getBoolean(java.lang.String key)
java.lang.String getWebDefaultExtension()
ServletConfigurationImpl#WEB_DEFAULT_EXTENSIONjava.lang.String getWebServiceDefaultExtension()
ServletConfigurationImpl#WEB_SERVICE_DEFAULT_EXTENSIONjava.lang.String getWebServiceViewsPath()
ServletConfigurationImpl#WEB_SERVICE_VIEWS_PATHjava.lang.String getWebViewsPath()
ServletConfigurationImpl#WEB_VIEWS_PATHjava.lang.String getDefaultDeleteMethod()
java.lang.String getDefaultPostMethod()
java.lang.String getDefaultPutMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||