public abstract class AppConfigurator<T extends AppConfigurator> extends AppConfig<T>
Base class for app developer implement source code based configuration
Modifier and Type | Class and Description |
---|---|
protected static class |
AppConfigurator.CorsSetting |
protected static class |
AppConfigurator.CsrfSetting |
Destroyable.Util
Modifier and Type | Field and Description |
---|---|
protected static org.osgl.http.H.Method |
DELETE |
protected static org.osgl.http.H.Method |
GET |
protected static org.osgl.http.H.Method |
POST |
protected static org.osgl.http.H.Method |
PUT |
CONF_FILE_NAME, PORT_CLI_OVER_HTTP
logger
Constructor and Description |
---|
AppConfigurator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
configure()
Sub class shall override this method to do the configuration
|
java.util.Set<java.lang.String> |
controllerClasses() |
protected AppConfigurator.CorsSetting |
cors() |
protected AppConfigurator.CsrfSetting |
csrf() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
onRouteAdded(java.lang.String controllerClassName) |
protected T |
prop(java.lang.String key,
java.lang.Object val) |
java.util.Set<java.lang.String> |
propKeys() |
<V> V |
propVal(java.lang.String key) |
protected T |
registerStringValueResolver(java.lang.Class<T> targetType,
org.osgl.util.StringValueResolver<T> resolver) |
protected void |
releaseAppConfigResources() |
protected void |
releaseResources() |
java.lang.String |
toString() |
_merge, ajaxCsrfCheckFailureHandler, ajaxCsrfCheckFailureHandler, ajaxLoginUrl, ajaxLoginUrl, ajaxMissingAuthenticationHandler, ajaxMissingAuthenticationHandler, apiDocEnabled, app, app, appClassTester, basicAuthenticationEnabled, builtInReqHandlerEnabled, cacheName, cacheName, cacheNameSession, cacheNameSession, cacheService, cacheService, cacheService, cliEnable, cliEnabled, cliJSONPageSize, cliJSONPageSz, cliOverHttp, cliOverHttp, cliOverHttpAuthority, cliOverHttpAuthority, cliOverHttpPort, cliOverHttpPort, cliOverHttpSysCmd, cliOverHttpSysCmdEnabled, cliOverHttpTitle, cliOverHttpTitle, cliPort, cliPort, cliSessionExpiration, cliSessionExpiration, cliTablePageSize, cliTablePageSz, contentSuffixAware, contentSuffixAware, cookieDomain, cookieDomain, cookieDomainProvider, cookiePrefix, corsAllowCredentials, corsAllowCredentials, corsAllowHeaders, corsAllowHeaders, corsAllowOrigin, corsAllowOrigin, corsEnabled, corsExposeHeaders, corsHeaders, corsHeadersExpose, corsMaxAge, corsMaxAge, corsOptionCheck, corsOptionCheck, csrfCheckFailureHandler, csrfCheckFailureHandler, csrfCookieName, csrfCookieName, csrfEnabled, csrfHeaderName, csrfHeaderName, csrfParamName, csrfParamName, csrfProtector, csrfProtector, dateFormat, dateFormat, dateTimeFormat, dateTimeFormat, defaultView, defaultView, disableBuiltInReqHandler, dspToken, dspToken, enableApiDoc, enableBasicAuthentication, enableCors, enableCsrf, encoding, encoding, encryptSession, enumResolvingCaseSensitive, enumResolvingCaseSensitive, errorTemplatePathResolver, errorTemplatePathResolver, flashCookieName, flashCookieName, forceHttps, host, host, httpExternal, httpExternal, httpExternalPort, httpExternalPort, httpExternalSecurePort, httpExternalSecurePort, httpMaxParams, httpMaxParams, httpPort, httpPort, httpSecure, httpSecure, httpsPort, httpsPort, i18n, i18nEnabled, ipEffectiveBytes, ipEffectiveBytes, jobPoolSize, jobPoolSize, jsonContentTypeProvider, keyOf, loadJarProperties, locale, locale, localeCookieName, localeCookieName, localeParamName, localeParamName, loginUrl, loginUrl, longEncoder, longEncoder, maxCliSession, maxCliSession, me, metricEnable, metricEnabled, missingAuthenticationHandler, missingAuthenticationHandler, moduleBases, namedPort, namedPorts, namedPorts, needEnhancement, nodeIdProvider, nodeIdProvider, persistSession, pingPath, pingPath, possibleControllerClass, preloadConfigurations, renderJsonContentTypeIE, renderJsonOutputCharset, renderJsonOutputCharset, resourcePreloadSizeLimit, resourcePreloadSizeLimit, secret, secret, secureTicketCodec, secureTicketCodec, secureTicketCodec, sequenceNumberGenerator, sequenceNumberGenerator, sequenceProvider, sequenceProvider, serverHeader, serverHeader, sessionCodec, sessionCodec, sessionCookieName, sessionCookieName, sessionEncrypt, sessionHeaderPayloadPrefix, sessionHeaderPayloadPrefix, sessionHeaderPrefix, sessionHeaderPrefix, sessionKeyUsername, sessionKeyUsername, sessionMapper, sessionMapper, sessionPersistent, sessionSecure, sessionSecure, sessionTtl, sessionTtl, sourceVersion, sourceVersion, startIdFile, startIdFile, startIdProvider, startIdProvider, supportSsl, supportSsl, targetVersion, targetVersion, templateHome, templateHome, templatePathResolver, templatePathResolver, timeFormat, timeFormat, unknownHttpMethodProcessor, unknownHttpMethodProcessor, uploadInMemoryCacheThreshold, uploadInMemoryCacheThreshold, urlContext, urlContext, wsTicketeKey, wsTicketKey, xForwardedProtocol
get, get, getIgnoreCase, getInteger, getList, rawConfiguration, set, subSet
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
protected static final org.osgl.http.H.Method GET
protected static final org.osgl.http.H.Method POST
protected static final org.osgl.http.H.Method PUT
protected static final org.osgl.http.H.Method DELETE
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected void releaseResources()
releaseResources
in class AppConfig<T extends AppConfigurator>
protected T registerStringValueResolver(java.lang.Class<T> targetType, org.osgl.util.StringValueResolver<T> resolver)
protected AppConfigurator.CorsSetting cors()
protected AppConfigurator.CsrfSetting csrf()
public void onRouteAdded(java.lang.String controllerClassName)
public java.util.Set<java.lang.String> controllerClasses()
protected T prop(java.lang.String key, java.lang.Object val)
public java.util.Set<java.lang.String> propKeys()
public <V> V propVal(java.lang.String key)
public abstract void configure()
Sub class shall override this method to do the configuration
protected void releaseAppConfigResources()
Copyright © 2014–2017 ActFramework. All rights reserved.