Enum GeoServerRESTPublisher.StoreType

    • Enum Constant Detail

      • DATASTORES

        public static final GeoServerRESTPublisher.StoreType DATASTORES
        Vector based data sources. Can be a file in the case of a Shapefile, a database connection in the case of PostGIS, or a server in the case of a remote Web Feature Service.
    • Method Detail

      • values

        public static GeoServerRESTPublisher.StoreType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GeoServerRESTPublisher.StoreType c : GeoServerRESTPublisher.StoreType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GeoServerRESTPublisher.StoreType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getTypeNameWithFormat

        public java.lang.String getTypeNameWithFormat​(GeoServerRESTPublisher.Format format)
        Get the type name of a StoreType with the specified format.
        Parameters:
        format - see GeoServerRESTPublisher.Format
        Returns:
        "featuretypes.{xml|html|...}" for DATASTORES, "coverages.{xml|html|...}" otherwise.
      • getTypeName

        public static java.lang.String getTypeName​(GeoServerRESTPublisher.StoreType type)
        Get the type name of a StoreType.
        Parameters:
        type - the StoreType.
        Returns:
        "featureTypes" for DATASTORES, "coverages" otherwise.
      • getType

        public static java.lang.String getType​(GeoServerRESTPublisher.StoreType type)
        Get the type name of a StoreType.
        Parameters:
        type - the StoreType.
        Returns:
        "dataStore" for DATASTORES, "coverageStore" otherwise.
      • getTypeName

        public java.lang.String getTypeName()
        Get the type name of a StoreType.
        Returns:
        "featuretypes" for DATASTORES, "coverages" otherwise.
      • getType

        public java.lang.String getType()
        Get the type of a StoreType.
        Returns:
        "dataStore" for DATASTORES, "coverageStore" otherwise.
      • toString

        public java.lang.String toString()
        Returns a lowercase representation of the parameter value, suitable to construct the rest call.
        Overrides:
        toString in class java.lang.Enum<GeoServerRESTPublisher.StoreType>