Class RouteDefault<R extends org.spincast.core.exchange.RequestContext<?>>

java.lang.Object
org.spincast.plugins.routing.RouteDefault<R>
All Implemented Interfaces:
org.spincast.core.routing.Route<R>

public class RouteDefault<R extends org.spincast.core.exchange.RequestContext<?>> extends Object implements org.spincast.core.routing.Route<R>
  • Constructor Details

    • RouteDefault

      public RouteDefault(@Nullable String id, boolean isWebsocketRoute, boolean isResourceRoute, @Nullable org.spincast.core.routing.StaticResource<R> staticResource, boolean spicastCoreRouteOrPluginRoute, Set<org.spincast.core.routing.HttpMethod> httpMethods, String path, Set<org.spincast.core.routing.RoutingType> routingTypes, @Nullable List<org.spincast.core.routing.Handler<R>> beforeFilters, org.spincast.core.routing.Handler<R> mainHandler, @Nullable List<org.spincast.core.routing.Handler<R>> afterFilters, int position, @Nullable Set<String> acceptedContentTypes, @Nullable Set<String> filterIdsToSkip, boolean skipResources, @Nullable Object specs, @Nullable Object[] specsParameters, boolean specsIgnore, Set<String> classes)
      Constructor
  • Method Details

    • getHttpMethods

      public Set<org.spincast.core.routing.HttpMethod> getHttpMethods()
      Specified by:
      getHttpMethods in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getAcceptedContentTypes

      public Set<String> getAcceptedContentTypes()
      Specified by:
      getAcceptedContentTypes in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getId

      public String getId()
      Specified by:
      getId in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getClasses

      public Set<String> getClasses()
      Specified by:
      getClasses in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • isWebsocketRoute

      public boolean isWebsocketRoute()
      Specified by:
      isWebsocketRoute in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • isStaticResourceRoute

      public boolean isStaticResourceRoute()
      Specified by:
      isStaticResourceRoute in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getStaticResource

      public org.spincast.core.routing.StaticResource<R> getStaticResource()
      Specified by:
      getStaticResource in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • isSpicastCoreRouteOrPluginRoute

      public boolean isSpicastCoreRouteOrPluginRoute()
      Specified by:
      isSpicastCoreRouteOrPluginRoute in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getPath

      public String getPath()
      Specified by:
      getPath in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • isSkipResourcesRequests

      public boolean isSkipResourcesRequests()
      Specified by:
      isSkipResourcesRequests in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getRoutingTypes

      public Set<org.spincast.core.routing.RoutingType> getRoutingTypes()
      Specified by:
      getRoutingTypes in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getBeforeFilters

      public List<org.spincast.core.routing.Handler<R>> getBeforeFilters()
      Specified by:
      getBeforeFilters in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getMainHandler

      public org.spincast.core.routing.Handler<R> getMainHandler()
      Specified by:
      getMainHandler in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getAfterFilters

      public List<org.spincast.core.routing.Handler<R>> getAfterFilters()
      Specified by:
      getAfterFilters in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getPosition

      public int getPosition()
      Specified by:
      getPosition in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getFilterIdsToSkip

      public Set<String> getFilterIdsToSkip()
      Specified by:
      getFilterIdsToSkip in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getSpecs

      public Object getSpecs()
      Specified by:
      getSpecs in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • getSpecsParameters

      public List<Object> getSpecsParameters()
      Specified by:
      getSpecsParameters in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • isSpecsIgnore

      public boolean isSpecsIgnore()
      Specified by:
      isSpecsIgnore in interface org.spincast.core.routing.Route<R extends org.spincast.core.exchange.RequestContext<?>>
    • toString

      public String toString()
      Overrides:
      toString in class Object