it.geosolutions.geoserver.rest
Enum GeoServerRESTPublisher.UploadMethod

java.lang.Object
  extended by java.lang.Enum<GeoServerRESTPublisher.UploadMethod>
      extended by 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>

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

Enum Constant Summary
external
           
file
           
url
           
 
Method Summary
static GeoServerRESTPublisher.UploadMethod valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

file

public static final GeoServerRESTPublisher.UploadMethod file

url

public static final GeoServerRESTPublisher.UploadMethod url

external

public static final GeoServerRESTPublisher.UploadMethod external
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 name
java.lang.NullPointerException - if the argument is null


Copyright © 2007-2012 GeoSolutions. All Rights Reserved.