Class MappedCrossOriginConfig.Builder

    • Method Detail

      • name

        public MappedCrossOriginConfig.Builder name​(String name)
        Sets the name for the CORS-enabled component or app (primarily for logging).
        Parameters:
        name - name for the component
        Returns:
        updated builder
      • enabled

        public MappedCrossOriginConfig.Builder enabled​(boolean enabled)
        Sets whether the resulting Mapped cross-origin config should be enabled.
        Parameters:
        enabled - true to enable; false to disable
        Returns:
        updated builder
      • put

        public MappedCrossOriginConfig.Builder put​(String path,
                                                   CrossOriginConfig.Builder builder)
        Adds a new builder to the collection, associating it with the given path.
        Parameters:
        path - the path to link with the builder
        builder - the builder to use in building the actual CrossOriginConfig instance
        Returns:
        updated builder
      • config

        public MappedCrossOriginConfig.Builder config​(Config corsConfig)
        Applies data in the provided config node.
        Parameters:
        corsConfig - Config node containing CORS information
        Returns:
        updated builder