Class BucketConfigParser


  • public final class BucketConfigParser
    extends Object
    An abstraction over the bucket parser which takes a raw config as a string and turns it into a BucketConfig.
    Since:
    2.0.0
    • Constructor Detail

      • BucketConfigParser

        public BucketConfigParser()
    • Method Detail

      • parse

        public static BucketConfig parse​(String input,
                                         CoreEnvironment env,
                                         String origin)
        Parse a raw configuration into a BucketConfig.
        Parameters:
        input - the raw string input.
        env - the environment to use.
        origin - the origin of the configuration. If null / none provided then localhost is assumed.
        Returns:
        the parsed bucket configuration.