Enum MetasyncResult
- java.lang.Object
-
- java.lang.Enum<MetasyncResult>
-
- org.gbif.api.model.registry.metasync.MetasyncResult
-
- All Implemented Interfaces:
Serializable
,Comparable<MetasyncResult>
public enum MetasyncResult extends Enum<MetasyncResult>
Enumeration of all the different categories of results we want to report on during metadata synchronisation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HTTP_ERROR
Any kind of HTTP error (e.g.IO_EXCEPTION
Is any kind of error establishing a connection or during a connection that's usually on the network level (connection refused, timeouts etc.).OK
The synchronization was successful.OTHER_ERROR
Anything that doesn't fit in the former categories (e.g.PROTOCOL_ERROR
This means that we got a reply from the endpoint but it does not conform to what we expected (e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetasyncResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static MetasyncResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final MetasyncResult OK
The synchronization was successful.
-
IO_EXCEPTION
public static final MetasyncResult IO_EXCEPTION
Is any kind of error establishing a connection or during a connection that's usually on the network level (connection refused, timeouts etc.).
-
HTTP_ERROR
public static final MetasyncResult HTTP_ERROR
Any kind of HTTP error (e.g. a non 200 response code).
-
PROTOCOL_ERROR
public static final MetasyncResult PROTOCOL_ERROR
This means that we got a reply from the endpoint but it does not conform to what we expected (e.g. HTML instead of XML).
-
OTHER_ERROR
public static final MetasyncResult OTHER_ERROR
Anything that doesn't fit in the former categories (e.g. invalid URI stored in our Registry).
-
-
Method Detail
-
values
public static MetasyncResult[] 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 (MetasyncResult c : MetasyncResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetasyncResult 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 nameNullPointerException
- if the argument is null
-
-