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:
CoreService
,ServiceController
,TowService
public class DefaultTowService extends AbstractTowService
Created: 2019-07-27
-
-
Constructor Summary
Constructors Constructor Description DefaultTowService()
DefaultTowService(CoreService rootService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultTowService
create(AspectranConfig aspectranConfig)
Returns a new instance ofDefaultTowService
.static DefaultTowService
create(CoreService rootService)
Returns a new instance ofDefaultTowService
.boolean
execute(io.undertow.server.HttpServerExchange exchange)
Executes web activity.-
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
destroyActivityContext, determineBasePath, getActivityContext, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getSchedulerService, getServiceController, 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, getAspectranClassLoader, getAspectranConfig, getBasePath, getDefaultActivity, getServiceController, isDerived, isHardReload, isLateStart, joinDerivedService, leaveFromRootService, withdrawDerivedService
-
-
-
-
Constructor Detail
-
DefaultTowService
public DefaultTowService()
-
DefaultTowService
public DefaultTowService(CoreService rootService)
-
-
Method Detail
-
execute
public boolean execute(io.undertow.server.HttpServerExchange exchange) throws java.io.IOException
Description copied from interface:TowService
Executes 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(CoreService rootService)
Returns a new instance ofDefaultTowService
.- Parameters:
rootService
- the root service- Returns:
- the instance of
DefaultTowService
-
create
public static DefaultTowService create(AspectranConfig aspectranConfig)
Returns a new instance ofDefaultTowService
.- Parameters:
aspectranConfig
- the aspectran configuration- Returns:
- the instance of
DefaultTowService
-
-