Class DefaultTowService

All Implemented Interfaces:
CoreService, ServiceController, TowService

public class DefaultTowService extends AbstractTowService

Created: 2019-07-27

  • Constructor Details

    • DefaultTowService

      public DefaultTowService()
    • DefaultTowService

      public DefaultTowService(CoreService rootService)
  • Method Details

    • setTrailingSlashRedirect

      public void setTrailingSlashRedirect(boolean trailingSlashRedirect)
    • service

      public boolean service(@NonNull io.undertow.server.HttpServerExchange exchange) throws 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:
      IOException - If an error occurs during Activity execution
    • create

      @NonNull public static DefaultTowService create(CoreService rootService)
      Returns a new instance of DefaultTowService.
      Parameters:
      rootService - the root service
      Returns:
      the instance of DefaultTowService
    • create

      @NonNull public static DefaultTowService create(AspectranConfig aspectranConfig)
      Returns a new instance of DefaultTowService.
      Parameters:
      aspectranConfig - the aspectran configuration
      Returns:
      the instance of DefaultTowService