Package com.aspectran.web.service
Class AbstractWebService
java.lang.Object
com.aspectran.core.service.AbstractServiceLifeCycle
com.aspectran.core.service.AbstractCoreService
com.aspectran.core.service.DefaultCoreService
com.aspectran.web.service.AbstractWebService
- All Implemented Interfaces:
CoreService
,ServiceLifeCycle
,WebService
- Direct Known Subclasses:
DefaultWebService
-
Field Summary
Fields inherited from interface com.aspectran.web.service.WebService
DERIVED_WEB_SERVICE_ATTR_NAME, ROOT_WEB_SERVICE_ATTR_NAME
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is executed immediately after the ActivityContext is loaded.protected void
configure
(AspectranConfig aspectranConfig) jakarta.servlet.ServletContext
Returns a reference to theServletContext
in which this WebService is running.boolean
boolean
boolean
protected void
setLegacyHeadHandling
(boolean legacyHeadHandling) void
setSessionAdaptable
(boolean sessionAdaptable) protected void
setTrailingSlashRedirect
(boolean trailingSlashRedirect) protected void
setUriDecoding
(String uriDecoding) Methods inherited from class com.aspectran.core.service.DefaultCoreService
beforeContextDestroy, buildActivityContext, destroyActivityContext, doStart, doStop, start, stop
Methods inherited from class com.aspectran.core.service.AbstractCoreService
buildSchedulerService, getActivityContext, getActivityContextBuilder, getAltClassLoader, getApplicationAdapter, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceClassLoader, getServiceLifeCycle, getServiceName, hasActivityContextBuilder, hasServiceClassLoader, isAcceptable, isDerived, setActivityContext, setActivityContextBuilder, setAltClassLoader, setAspectranConfig, setBasePath, setRequestAcceptor, setServiceClassLoader
Methods inherited from class com.aspectran.core.service.AbstractServiceLifeCycle
addService, getLock, getParentService, getRootService, isActive, isBusy, isOrphan, isRootService, pause, pause, removeService, restart, restart, resume, setServiceStateListener, withdraw
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, getApplicationAdapter, getAspectranConfig, getBasePath, getDefaultActivity, getParentService, getRootService, getSchedulerService, getServiceClassLoader, getServiceLifeCycle, hasServiceClassLoader, isAcceptable, isDerived, isOrphan, isRootService
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
-
isSessionAdaptable
public boolean isSessionAdaptable()- Specified by:
isSessionAdaptable
in interfaceWebService
-
setSessionAdaptable
public void setSessionAdaptable(boolean sessionAdaptable) -
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:DefaultCoreService
This method is executed immediately after the ActivityContext is loaded.- Overrides:
afterContextLoaded
in classDefaultCoreService
- Throws:
Exception
- if an error occurs
-
configure
- Overrides:
configure
in classDefaultCoreService
-