Package it.geosolutions.geoserver.rest
Enum GeoServerRESTPublisher.UploadMethod
- java.lang.Object
-
- java.lang.Enum<GeoServerRESTPublisher.UploadMethod>
-
- it.geosolutions.geoserver.rest.GeoServerRESTPublisher.UploadMethod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GeoServerRESTPublisher.UploadMethod>
- Enclosing class:
- GeoServerRESTPublisher
public static enum GeoServerRESTPublisher.UploadMethod extends java.lang.Enum<GeoServerRESTPublisher.UploadMethod>
Specifies the method used to publish a resource.- Author:
- Carlo Cancellieri - carlo.cancellieri@geo-solutions.it
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns a lowercase representation of the parameter value, suitable to construct the rest call.static GeoServerRESTPublisher.UploadMethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GeoServerRESTPublisher.UploadMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final GeoServerRESTPublisher.UploadMethod FILE
directly upload a file from a local source. The body of the request is the file itself.
-
file
@Deprecated public static final GeoServerRESTPublisher.UploadMethod file
Deprecated.
-
URL
public static final GeoServerRESTPublisher.UploadMethod URL
indirectly upload a file from a remote source. The body of the request is the URL where the data is published. This url must be visible from the server.
-
url
@Deprecated public static final GeoServerRESTPublisher.UploadMethod url
Deprecated.
-
EXTERNAL
public static final GeoServerRESTPublisher.UploadMethod EXTERNAL
forgo upload, and use an existing file on the server. The body of the request is the absolute local path to the existing file.
-
external
@Deprecated public static final GeoServerRESTPublisher.UploadMethod external
Deprecated.
-
-
Method Detail
-
values
public static GeoServerRESTPublisher.UploadMethod[] 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.UploadMethod c : GeoServerRESTPublisher.UploadMethod.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.UploadMethod 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 namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
Returns a lowercase representation of the parameter value, suitable to construct the rest call.- Overrides:
toStringin classjava.lang.Enum<GeoServerRESTPublisher.UploadMethod>
-
-