Class AbstractRouterFunctionVisitor


  • public class AbstractRouterFunctionVisitor
    extends Object
    The type Abstract router function visitor.
    Author:
    bnasslahsen
    • Field Detail

      • orPaths

        protected List<String> orPaths
        The Nested or paths.
      • isOr

        protected boolean isOr
        The Is or.
      • currentRouterFunctionDatas

        protected List<RouterFunctionData> currentRouterFunctionDatas
        The Router function data.
    • Constructor Detail

      • AbstractRouterFunctionVisitor

        public AbstractRouterFunctionVisitor()
    • Method Detail

      • method

        public void method​(Set<org.springframework.http.HttpMethod> methods)
        Method.
        Parameters:
        methods - the methods
      • path

        public void path​(String pattern)
        Path.
        Parameters:
        pattern - the pattern
      • header

        public void header​(String name,
                           String value)
        Header.
        Parameters:
        name - the name
        value - the value
      • getRouterFunctionDatas

        public List<RouterFunctionData> getRouterFunctionDatas()
        Gets router function datas.
        Returns:
        the router function datas
      • queryParam

        public void queryParam​(String name,
                               String value)
        Query param.
        Parameters:
        name - the name
        value - the value
      • pathExtension

        public void pathExtension​(String extension)
        Path extension.
        Parameters:
        extension - the extension
      • param

        public void param​(String name,
                          String value)
        Param.
        Parameters:
        name - the name
        value - the value
      • startAnd

        public void startAnd()
        Start and.
      • and

        public void and()
        And.
      • endAnd

        public void endAnd()
        End and.
      • startOr

        public void startOr()
        Start or.
      • or

        public void or()
        Or.
      • endOr

        public void endOr()
        End or.
      • startNegate

        public void startNegate()
        Start negate.
      • endNegate

        public void endNegate()
        End negate.
      • attributes

        public void attributes​(Map<String,​Object> map)
        Attributes.
        Parameters:
        map - the map
      • commonEndNested

        protected void commonEndNested()
        Compute nested.
      • commonStartNested

        protected void commonStartNested()
        Common start nested.
      • commonRoute

        protected void commonRoute()
        Common route.