Class DefaultTowService

  • All Implemented Interfaces:
    com.aspectran.core.service.CoreService, com.aspectran.core.service.ServiceController, TowService

    public class DefaultTowService
    extends AbstractTowService

    Created: 2019-07-27

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static DefaultTowService create​(com.aspectran.core.context.config.AspectranConfig aspectranConfig)
      Returns a new instance of DefaultTowService.
      static DefaultTowService create​(com.aspectran.core.service.CoreService rootService)
      Returns a new instance of DefaultTowService.
      boolean service​(io.undertow.server.HttpServerExchange exchange)
      Executes web activity.
      void setTrailingSlashRedirect​(boolean trailingSlashRedirect)  
      • 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
    • Constructor Detail

      • DefaultTowService

        public DefaultTowService()
      • DefaultTowService

        public DefaultTowService​(com.aspectran.core.service.CoreService rootService)
    • Method Detail

      • setTrailingSlashRedirect

        public void setTrailingSlashRedirect​(boolean trailingSlashRedirect)
      • service

        public boolean service​(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​(com.aspectran.core.service.CoreService rootService)
        Returns a new instance of DefaultTowService.
        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 of DefaultTowService.
        Parameters:
        aspectranConfig - the aspectran configuration
        Returns:
        the instance of DefaultTowService