Class CorsRule


  • public class CorsRule
    extends java.lang.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 java.lang.String getPathPattern()
        Returns the pathPattern.
        Returns:
        the pathPattern
        Since:
        12.2.0
      • setPathPattern

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

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

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

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

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

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

        public CorsRule setExposeHeaders​(java.lang.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 java.lang.String getAllowHeaders()
        Returns the allowHeaders.
        Returns:
        the allowHeaders
        Since:
        12.2.0
      • setAllowHeaders

        public CorsRule setAllowHeaders​(java.lang.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 java.lang.String getId()
        Returns the id.
        Returns:
        the id
        Since:
        12.2.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object