Interface Configure


  • public interface Configure
    Interface that must be implemented to configure a Otter application.
    • Method Summary

      Modifier and Type Method Description
      java.util.List<Group<? extends DefaultSession,​? extends DefaultUser>> groups()
      Returns a list of Groups which is used to share betweens, Session, and User amongst Routes.
      java.util.List<RestGroup<? extends DefaultUser>> restGroups()
      Returns a list of RestGroup which is used to share RestBetweens and User amongst RestRoutes.
      void routes​(Gateway gateway)
      Add Routes and RestRoutes to the gateway here.
      Shape shape()
      Returns a shape instance which instructs otter what to use for the csrf sign keys, session encrption keys, rotation keys, and async i/o chuck sizes.
    • Method Detail

      • shape

        Shape shape()
        Returns a shape instance which instructs otter what to use for the csrf sign keys, session encrption keys, rotation keys, and async i/o chuck sizes.
        Returns:
        an instance of a Shape
      • groups

        java.util.List<Group<? extends DefaultSession,​? extends DefaultUser>> groups()
        Returns a list of Groups which is used to share betweens, Session, and User amongst Routes.
        Returns:
        a List of Groups
      • restGroups

        java.util.List<RestGroup<? extends DefaultUser>> restGroups()
        Returns a list of RestGroup which is used to share RestBetweens and User amongst RestRoutes.
        Returns:
        a List of RestGroup
      • routes

        void routes​(Gateway gateway)
        Add Routes and RestRoutes to the gateway here.
        Parameters:
        gateway - An instance of the gateway.