public static enum ClientMDS.DATACITE_API_RESPONSE extends Enum<ClientMDS.DATACITE_API_RESPONSE>
Enum Constant and Description |
---|
BAD_REQUEST
Fail to create a media or the metadata.
|
DOI_INACTIVE
Get an inactive DOI.
|
DOI_NOT_FOUND
Fail to get the DOI.
|
FORBIDDEN
Fail to create/delete media/metadata/Landing page.
|
INTERNAL_SERVER_ERROR
Internal server Error.
|
PROCESS_ERROR
Fail to create a DOI because metadata must be uploaded first.
|
SUCCESS
Get/Delete successfully a DOI or a media.
|
SUCCESS_NO_CONTENT
Get a DOI without metadata.
|
SUCESS_CREATED
Create successfully a DOI.
|
UNAUTHORIZED
Fail to authorize the user to create/delete a DOI.
|
Modifier and Type | Field and Description |
---|---|
private String |
message
message.
|
private org.restlet.data.Status |
status
HTTP status.
|
Modifier and Type | Method and Description |
---|---|
static String |
getMessageFromStatus(org.restlet.data.Status statusToFind)
Returns the message for a specific Status.
|
String |
getShortMessage()
Returns the short message
|
org.restlet.data.Status |
getStatus()
Returns the status
|
static ClientMDS.DATACITE_API_RESPONSE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientMDS.DATACITE_API_RESPONSE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientMDS.DATACITE_API_RESPONSE SUCCESS
public static final ClientMDS.DATACITE_API_RESPONSE SUCESS_CREATED
public static final ClientMDS.DATACITE_API_RESPONSE SUCCESS_NO_CONTENT
public static final ClientMDS.DATACITE_API_RESPONSE BAD_REQUEST
public static final ClientMDS.DATACITE_API_RESPONSE UNAUTHORIZED
public static final ClientMDS.DATACITE_API_RESPONSE FORBIDDEN
public static final ClientMDS.DATACITE_API_RESPONSE DOI_NOT_FOUND
public static final ClientMDS.DATACITE_API_RESPONSE DOI_INACTIVE
public static final ClientMDS.DATACITE_API_RESPONSE PROCESS_ERROR
public static final ClientMDS.DATACITE_API_RESPONSE INTERNAL_SERVER_ERROR
private final org.restlet.data.Status status
private final String message
public static ClientMDS.DATACITE_API_RESPONSE[] values()
for (ClientMDS.DATACITE_API_RESPONSE c : ClientMDS.DATACITE_API_RESPONSE.values()) System.out.println(c);
public static ClientMDS.DATACITE_API_RESPONSE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.restlet.data.Status getStatus()
public String getShortMessage()
public static String getMessageFromStatus(org.restlet.data.Status statusToFind)
statusToFind
- status to searchCopyright © 2017–2020 CNES. All rights reserved.