it.geosolutions.geoserver.rest
Enum GeoServerRESTPublisher.UploadMethod
java.lang.Object
java.lang.Enum<GeoServerRESTPublisher.UploadMethod>
it.geosolutions.geoserver.rest.GeoServerRESTPublisher.UploadMethod
- All Implemented Interfaces:
- Serializable, Comparable<GeoServerRESTPublisher.UploadMethod>
- Enclosing class:
- GeoServerRESTPublisher
public static enum GeoServerRESTPublisher.UploadMethod
- extends Enum<GeoServerRESTPublisher.UploadMethod>
The file, url, and external endpoints are used to specify the method that
is used to upload the file.
The file method is used to directly upload a file from a local source.
The body of the request is the file itself.
The url method is used to indirectly upload a file from an remote source.
The body of the request is a url pointing to the file to upload. This url
must be visible from the server.
The external method is used to forgo upload and use an existing file on
the server. The body of the request is the absolute path to the existing
file.
- Author:
- Carlo Cancellieri - carlo.cancellieri@geo-solutions.it
file
public static final GeoServerRESTPublisher.UploadMethod file
url
public static final GeoServerRESTPublisher.UploadMethod url
external
public static final GeoServerRESTPublisher.UploadMethod external
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(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2007-2012 GeoSolutions. All Rights Reserved.