Class RouterFunctionData

java.lang.Object
org.springdoc.core.fn.RouterFunctionData

public class RouterFunctionData extends Object
The type Router function data.
Author:
bnasslahsen
  • Constructor Details

    • RouterFunctionData

      public RouterFunctionData()
      Instantiates a new Router function data.
    • RouterFunctionData

      public RouterFunctionData(String nestedOrPath, RouterFunctionData functionData)
      Instantiates a new Router function data.
      Parameters:
      nestedOrPath - the nested or path
      functionData - the function data
  • Method Details

    • getPath

      public String getPath()
      Gets path.
      Returns:
      the path
    • setPath

      public void setPath(String path)
      Sets path.
      Parameters:
      path - the path
    • getQueryParams

      public Map<String,String> getQueryParams()
      Gets query params.
      Returns:
      the query params
    • addQueryParams

      public void addQueryParams(String name, String value)
      Add query params.
      Parameters:
      name - the name
      value - the value
    • getHeaders

      public String[] getHeaders()
      Get headers string [ ].
      Returns:
      the string [ ]
    • addHeaders

      public void addHeaders(String headers)
      Add headers.
      Parameters:
      headers - the headers
    • getMethods

      public org.springframework.web.bind.annotation.RequestMethod[] getMethods()
      Get methods request method [ ].
      Returns:
      the request method [ ]
    • setMethods

      public void setMethods(Set<org.springframework.http.HttpMethod> methods)
      Sets methods.
      Parameters:
      methods - the methods
    • getConsumes

      public String[] getConsumes()
      Get consumes string [ ].
      Returns:
      the string [ ]
    • getParams

      public String[] getParams()
      Get params string [ ].
      Returns:
      the string [ ]
    • addParams

      public void addParams(String params)
      Add params.
      Parameters:
      params - the params
    • addConsumes

      public void addConsumes(String consumes)
      Add consumes.
      Parameters:
      consumes - the consumes
    • addProduces

      public void addProduces(String produces)
      Add produces.
      Parameters:
      produces - the produces
    • addProduces

      public void addProduces(List<String> produces)
      Add produces.
      Parameters:
      produces - the produces
    • addConsumes

      public void addConsumes(List<String> consumes)
      Add consumes.
      Parameters:
      consumes - the consumes
    • getProduces

      public String[] getProduces()
      Get produces string [ ].
      Returns:
      the string [ ]
    • getAttributes

      public Map<String,Object> getAttributes()
      Gets attributes.
      Returns:
      the attributes
    • addAttributes

      public void addAttributes(Map<String,Object> attributes)
      Add attributes.
      Parameters:
      attributes - the attributes