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:
Serializable, Comparable<GeoServerRESTPublisher.UploadMethod>
Enclosing class:
GeoServerRESTPublisher

public static enum GeoServerRESTPublisher.UploadMethod
extends Enum<GeoServerRESTPublisher.UploadMethod>

Specifies the method used to publish a resource.

Author:
Carlo Cancellieri - carlo.cancellieri@geo-solutions.it

Enum Constant Summary
external
          Deprecated. 
EXTERNAL
          forgo upload, and use an existing file on the server.
file
          Deprecated. 
FILE
          directly upload a file from a local source.
url
          Deprecated. 
URL
          indirectly upload a file from a remote source.
 
Method Summary
 String toString()
          Returns a lowercase representation of the parameter value, suitable to construct the rest call.
static GeoServerRESTPublisher.UploadMethod valueOf(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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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

toString

public String toString()
Returns a lowercase representation of the parameter value, suitable to construct the rest call.

Overrides:
toString in class Enum<GeoServerRESTPublisher.UploadMethod>


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.