Class ServeStatic

    • Constructor Detail

      • ServeStatic

        public ServeStatic​(java.lang.String path,
                           java.lang.String locationMapping)
        Constructs a new ServeStatic with the specified path and locationMapping.
        Parameters:
        path - the URI prefix path
        locationMapping - the location mapping of the resources
      • ServeStatic

        public ServeStatic​(java.lang.String path,
                           java.lang.String locationMapping,
                           ServeStatic.Options options)
        Constructs a new ServeStatic with the specified path, locationMapping and ServeStatic.Options.
        Parameters:
        path - the URI prefix path
        locationMapping - the location mapping of the resources
        options - the options
      • ServeStatic

        public ServeStatic​(java.lang.String path1,
                           java.lang.String locationMapping1,
                           java.lang.String path2,
                           java.lang.String locationMapping2,
                           ServeStatic.Options options)
        Constructs a new ServeStatic with the multiply paths, locationMappings and the specified ServeStatic.Options.
        Parameters:
        path1 - the first URI prefix path
        locationMapping1 - the first location mapping of the resources
        path2 - the second URI prefix path
        locationMapping2 - the second location mapping of the resources
        options - the options
      • ServeStatic

        public ServeStatic​(ServeStatic.Options options,
                           java.lang.String... pathLocationMappings)
        Constructs a new ServeStatic with the multiply locationMappings and the specified ServeStatic.Options.
        Parameters:
        options - the options
        pathLocationMappings - the array contains the URI prefix paths and the location mappings, the length of array must be even
      • ServeStatic

        public ServeStatic​(java.util.LinkedHashMap<java.lang.String,​java.lang.String> locationMappings,
                           ServeStatic.Options options)
        Constructs a new ServeStatic with the multiply locationMappings and the specified ServeStatic.Options.
        Parameters:
        locationMappings - the map contains the URI prefix paths and the location mappings
        options - the options