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
Created: 2019-07-27
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultTowService
create
(AspectranConfig aspectranConfig) Returns a new instance ofDefaultTowService
.static DefaultTowService
create
(CoreService rootService) Returns a new instance ofDefaultTowService
.boolean
service
(io.undertow.server.HttpServerExchange exchange) Executes web activity.void
setTrailingSlashRedirect
(boolean trailingSlashRedirect) Methods inherited from class com.aspectran.undertow.service.AbstractTowService
getUriDecoding, setUriDecoding
Methods inherited from class com.aspectran.core.service.AspectranCoreService
afterContextLoaded, beforeContextDestroy, buildActivityContext, configure, configure, 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
-
Constructor Details
-
DefaultTowService
public DefaultTowService() -
DefaultTowService
-
-
Method Details
-
setTrailingSlashRedirect
public void setTrailingSlashRedirect(boolean trailingSlashRedirect) -
service
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:
IOException
- If an error occurs during Activity execution
-
create
Returns a new instance ofDefaultTowService
.- Parameters:
rootService
- the root service- Returns:
- the instance of
DefaultTowService
-
create
Returns a new instance ofDefaultTowService
.- Parameters:
aspectranConfig
- the aspectran configuration- Returns:
- the instance of
DefaultTowService
-