Class CorsRule


  • public class CorsRule
    extends Object
    CORS request rule.
    Since:
    12.2.0
    Version:
    $Revision: 23534 $ $Date: 2020-01-14 13:16:30 -0300 (Tue, 14 Jan 2020) $
    • Constructor Detail

      • CorsRule

        public CorsRule()
    • Method Detail

      • getPathPattern

        public String getPathPattern()
        Returns the pathPattern.
        Returns:
        the pathPattern
        Since:
        12.2.0
      • setPathPattern

        public CorsRule setPathPattern​(String pathPattern)
        Sets the pathPattern.
        Parameters:
        pathPattern - the pathPattern value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getOriginPattern

        public String getOriginPattern()
        Returns the originPattern.
        Returns:
        the originPattern
        Since:
        12.2.0
      • setOriginPattern

        public CorsRule setOriginPattern​(String originPattern)
        Sets the originPattern.
        Parameters:
        originPattern - the originPattern value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getAllowMethods

        public String getAllowMethods()
        Returns the allowMethods.
        Returns:
        the allowMethods
        Since:
        12.2.0
      • setAllowMethods

        public CorsRule setAllowMethods​(String allowMethods)
        Sets the allowMethods.
        Parameters:
        allowMethods - the allowMethods value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getExposeHeaders

        public String getExposeHeaders()
        Returns the exposeHeaders.
        Returns:
        the exposeHeaders
        Since:
        12.2.0
      • setExposeHeaders

        public CorsRule setExposeHeaders​(String exposeHeaders)
        Sets the exposeHeaders.
        Parameters:
        exposeHeaders - the exposeHeaders value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getMaxAge

        public int getMaxAge()
        Returns the maxAge.
        Returns:
        the maxAge
        Since:
        12.2.0
      • setMaxAge

        public CorsRule setMaxAge​(int maxAge)
        Sets the maxAge.
        Parameters:
        maxAge - the maxAge value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getAllowHeaders

        public String getAllowHeaders()
        Returns the allowHeaders.
        Returns:
        the allowHeaders
        Since:
        12.2.0
      • setAllowHeaders

        public CorsRule setAllowHeaders​(String allowHeaders)
        Sets the allowHeaders.
        Parameters:
        allowHeaders - the allowHeaders value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • isAllowCredentials

        public boolean isAllowCredentials()
        Returns the allowCredentials.
        Returns:
        the allowCredentials
        Since:
        12.2.0
      • setAllowCredentials

        public CorsRule setAllowCredentials​(boolean allowCredentials)
        Sets the allowCredentials.
        Parameters:
        allowCredentials - the allowCredentials value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getPosition

        public int getPosition()
        Returns the position.
        Returns:
        the position
        Since:
        12.2.0
      • setPosition

        public CorsRule setPosition​(int position)
        Sets the position.
        Parameters:
        position - the position value to set.
        Returns:
        the same CorsRule for chaining.
        Since:
        12.2.0
      • getId

        public String getId()
        Returns the id.
        Returns:
        the id
        Since:
        12.2.0