Package com.aspectran.web.service
Class AbstractWebService
java.lang.Object
com.aspectran.core.service.AbstractServiceController
com.aspectran.core.service.AbstractCoreService
com.aspectran.core.service.AspectranCoreService
com.aspectran.web.service.AbstractWebService
- All Implemented Interfaces:
CoreService
,ServiceController
,WebService
- Direct Known Subclasses:
DefaultWebService
-
Field Summary
Fields inherited from interface com.aspectran.web.service.WebService
ROOT_WEB_SERVICE_ATTR_NAME, STANDALONE_WEB_SERVICE_ATTR_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is executed immediately after the ActivityContext is loaded.protected void
configure
(AspectranConfig aspectranConfig) protected void
configure
(AspectranConfig aspectranConfig, ApplicationAdapter applicationAdapter) jakarta.servlet.ServletContext
Returns a reference to theServletContext
in which this WebService is running.boolean
boolean
protected void
setLegacyHeadHandling
(boolean legacyHeadHandling) protected void
setTrailingSlashRedirect
(boolean trailingSlashRedirect) protected void
setUriDecoding
(String uriDecoding) Methods inherited from class com.aspectran.core.service.AspectranCoreService
beforeContextDestroy, buildActivityContext, destroyActivityContext, doPause, doPause, doResume, doStart, doStop, start, stop
Methods inherited from class com.aspectran.core.service.AbstractCoreService
checkDirectoryStructure, createSchedulerService, getActivityContext, getActivityContextBuilder, getAltClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceController, hasActivityContextBuilder, hasServiceClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, setActivityContext, setActivityContextBuilder, setAltClassLoader, setAspectranConfig, setBasePath, setServiceClassLoader, withdrawDerivedService
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getRootService, getServiceName, isActive, isBusy, isExposable, joinDerivedService, pause, pause, restart, restart, resume, setExposals, setRootService, setServiceStateListener, withdrawDerivedService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.core.service.CoreService
getActivityContext, getAltClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceController, hasServiceClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
Methods inherited from interface com.aspectran.web.service.WebService
service
-
Method Details
-
getContextPath
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()Description copied from interface:WebService
Returns a reference to theServletContext
in which this WebService is running.- Specified by:
getServletContext
in interfaceWebService
- Returns:
- a
ServletContext
object, used by this WebService to interact with its servlet container
-
getDefaultServletHttpRequestHandler
-
getUriDecoding
-
setUriDecoding
-
isTrailingSlashRedirect
public boolean isTrailingSlashRedirect() -
setTrailingSlashRedirect
protected void setTrailingSlashRedirect(boolean trailingSlashRedirect) -
isLegacyHeadHandling
public boolean isLegacyHeadHandling() -
setLegacyHeadHandling
protected void setLegacyHeadHandling(boolean legacyHeadHandling) -
afterContextLoaded
Description copied from class:AspectranCoreService
This method is executed immediately after the ActivityContext is loaded.- Overrides:
afterContextLoaded
in classAspectranCoreService
- Throws:
Exception
- if an error occurs
-
configure
- Overrides:
configure
in classAspectranCoreService
-
configure
protected void configure(@NonNull AspectranConfig aspectranConfig, ApplicationAdapter applicationAdapter) - Overrides:
configure
in classAspectranCoreService
-