Package com.aspectran.undertow.service
Class DefaultTowService
- java.lang.Object
-
- com.aspectran.core.service.AbstractServiceController
-
- com.aspectran.core.service.AbstractCoreService
-
- com.aspectran.core.service.AspectranCoreService
-
- com.aspectran.undertow.service.AbstractTowService
-
- com.aspectran.undertow.service.DefaultTowService
-
- All Implemented Interfaces:
com.aspectran.core.service.CoreService,com.aspectran.core.service.ServiceController,TowService
public class DefaultTowService extends AbstractTowService
Created: 2019-07-27
-
-
Constructor Summary
Constructors Constructor Description DefaultTowService()DefaultTowService(com.aspectran.core.service.CoreService rootService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultTowServicecreate(com.aspectran.core.context.config.AspectranConfig aspectranConfig)Returns a new instance ofDefaultTowService.static DefaultTowServicecreate(com.aspectran.core.service.CoreService rootService)Returns a new instance ofDefaultTowService.booleanservice(io.undertow.server.HttpServerExchange exchange)Executes web activity.voidsetTrailingSlashRedirect(boolean trailingSlashRedirect)-
Methods inherited from class com.aspectran.undertow.service.AbstractTowService
getUriDecoding, setUriDecoding
-
Methods inherited from class com.aspectran.core.service.AspectranCoreService
afterContextLoaded, beforeContextDestroy, doPause, doPause, doResume, doStart, doStop
-
Methods inherited from class com.aspectran.core.service.AbstractCoreService
checkDirectoryStructure, destroyActivityContext, getActivityContext, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, getSiblingsClassLoader, isDerived, isExposable, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, loadActivityContext, prepare, setActivityContext, setBasePath, setExposals, withdrawDerivedService
-
Methods inherited from class com.aspectran.core.service.AbstractServiceController
clearDerivedService, getLock, getServiceName, isActive, isBusy, joinDerivedService, pause, pause, restart, restart, resume, setServiceStateListener, start, stop, 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, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, getSiblingsClassLoader, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
-
-
-
Method Detail
-
setTrailingSlashRedirect
public void setTrailingSlashRedirect(boolean trailingSlashRedirect)
-
service
public boolean service(io.undertow.server.HttpServerExchange exchange) throws java.io.IOExceptionDescription copied from interface:TowServiceExecutes web activity.- Parameters:
exchange- the HTTP request/response exchange- Returns:
- true if the activity was handled; false otherwise
- Throws:
java.io.IOException- If an error occurs during Activity execution
-
create
public static DefaultTowService create(com.aspectran.core.service.CoreService rootService)
Returns a new instance ofDefaultTowService.- Parameters:
rootService- the root service- Returns:
- the instance of
DefaultTowService
-
create
public static DefaultTowService create(com.aspectran.core.context.config.AspectranConfig aspectranConfig)
Returns a new instance ofDefaultTowService.- Parameters:
aspectranConfig- the aspectran configuration- Returns:
- the instance of
DefaultTowService
-
-