org.openestate.is24.restapi.xml.common.MessageCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenEstate-IS24-REST Show documentation
Show all versions of OpenEstate-IS24-REST Show documentation
OpenEstate-IS24-REST is a client library for the REST-Webservice of ImmobilienScout24.de written in Java.
package org.openestate.is24.restapi.xml.common;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for MessageCode.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="MessageCode">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="MESSAGE_RESOURCE_CREATED"/>
* <enumeration value="MESSAGE_RESOURCE_UPDATED"/>
* <enumeration value="MESSAGE_RESOURCE_DELETED"/>
* <enumeration value="MESSAGE_OPERATION_SUCCESSFUL"/>
* <enumeration value="ERROR_COMMON_HEADER_PARAMETER_VALIDATION_FAILED"/>
* <enumeration value="ERROR_COMMON_RESOURCE_REQUIRED"/>
* <enumeration value="ERROR_COMMON_REQUEST_CONFLICT"/>
* <enumeration value="ERROR_COMMON_AUTHENTICATION_REQUIRED"/>
* <enumeration value="ERROR_COMMON_AUTHENTICATION_OAUTH_NONCE_EXPIRED"/>
* <enumeration value="ERROR_COMMON_ACCESS_DENIED"/>
* <enumeration value="ERROR_COMMON_SCHEMA_VALIDATION_FAILED"/>
* <enumeration value="ERROR_COMMON_URL_PARAMETER_REQUIRED"/>
* <enumeration value="ERROR_COMMON_URL_PARAMETER_VALIDATION_FAILED"/>
* <enumeration value="ERROR_COMMON_URL_MULTIPLE_PARAMETERS_NOT_ALLOWED"/>
* <enumeration value="ERROR_COMMON_URL_PARAMETER_NOT_SUPPORTED"/>
* <enumeration value="ERROR_COMMON_NOT_IMPLEMENTED"/>
* <enumeration value="ERROR_COMMON_SERVICE_UNAVAILABLE"/>
* <enumeration value="ERROR_COMMON_INTERNAL_SERVER_ERROR"/>
* <enumeration value="ERROR_COMMON_UNPROCESSABLE_ENTITY"/>
* <enumeration value="ERROR_COMMON_INTERNAL_SERVER_ERROR_WITH_DETAILS"/>
* <enumeration value="ERROR_COMMON_RESOURCE_NOT_FOUND"/>
* <enumeration value="ERROR_COMMON_METHOD_NOT_ALLOWED"/>
* <enumeration value="ERROR_COMMON_ACCEPT_TYPE_NOT_APPLICABLE"/>
* <enumeration value="ERROR_COMMON_MEDIA_TYPE_UNSUPPORTED"/>
* <enumeration value="ERROR_COMMON_BAD_REQUEST"/>
* <enumeration value="ERROR_RESOURCE_NOT_SUPPORTED"/>
* <enumeration value="ERROR_RESOURCE_NOT_FOUND"/>
* <enumeration value="ERROR_RESOURCE_NOT_FOUND_FOR_MULTIPLE_PARAMETERS"/>
* <enumeration value="ERROR_RESOURCE_VALIDATION"/>
* <enumeration value="ERROR_REQUESTED_DATA_NOT_FOUND"/>
* <enumeration value="ERROR_RESOURCE_NOT_UNIQUE"/>
* <enumeration value="ERROR_RESOURCE_NO_LONGER_AVAILABLE"/>
* <enumeration value="ERROR_DB_NOT_AVAILABLE"/>
* <enumeration value="ERROR_CONTACT_DETAILS_MISSING"/>
* <enumeration value="ERROR_INVALID_COORDINATES"/>
* <enumeration value="ERROR_GEOCODING_FAILED"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "MessageCode")
@XmlEnum
public enum MessageCode {
/**
* Resource was successful created (includes name and id of the resource).
*
*/
MESSAGE_RESOURCE_CREATED,
/**
* Resource was successful updated (includes name and id of the resource).
*
*/
MESSAGE_RESOURCE_UPDATED,
/**
* Resource was successful deleted (includes name and id of the resource).
*
*/
MESSAGE_RESOURCE_DELETED,
/**
* Operation successful executed.
*
*/
MESSAGE_OPERATION_SUCCESSFUL,
/**
* Operation successful executed.
*
*/
ERROR_COMMON_HEADER_PARAMETER_VALIDATION_FAILED,
/**
* Request is only valid within the context of an specific resource (includes name of the required resource).
*
*/
ERROR_COMMON_RESOURCE_REQUIRED,
/**
* A conflict occured during execution of an operation (e.g. on a resource).
*
*/
ERROR_COMMON_REQUEST_CONFLICT,
/**
* No authorization for the requested operation.
*
*/
ERROR_COMMON_AUTHENTICATION_REQUIRED,
/**
* The OAuth Nonce has expired.
*
*/
ERROR_COMMON_AUTHENTICATION_OAUTH_NONCE_EXPIRED,
/**
* No authorization for the requested operation.
*
*/
ERROR_COMMON_ACCESS_DENIED,
/**
* Validation according the schema failed (includes the description of the failure).
*
*/
ERROR_COMMON_SCHEMA_VALIDATION_FAILED,
/**
* A required parameter is missing in the request (contains the name of the parameter).
*
*/
ERROR_COMMON_URL_PARAMETER_REQUIRED,
/**
* At least one request parameter contains an invalid value (contains the name and the value of the parameter).
*
*/
ERROR_COMMON_URL_PARAMETER_VALIDATION_FAILED,
/**
* Multiple parameters are not allowed.
*
*/
ERROR_COMMON_URL_MULTIPLE_PARAMETERS_NOT_ALLOWED,
/**
* A request parameter is not supported (contains the name of the parameter).
*
*/
ERROR_COMMON_URL_PARAMETER_NOT_SUPPORTED,
/**
* HTTP 501: The method is not yet implemented.
*
*/
ERROR_COMMON_NOT_IMPLEMENTED,
/**
* HTTP 503: Service Unavailable
*
*/
ERROR_COMMON_SERVICE_UNAVAILABLE,
/**
* HTTP 500: Internal Server Error
*
*/
ERROR_COMMON_INTERNAL_SERVER_ERROR,
/**
* HTTP 422: Unprocessable Entity
*
*/
ERROR_COMMON_UNPROCESSABLE_ENTITY,
/**
* HTTP 500: Internal Server Error with Details
*
*/
ERROR_COMMON_INTERNAL_SERVER_ERROR_WITH_DETAILS,
/**
* Resource was not found.
*
*/
ERROR_COMMON_RESOURCE_NOT_FOUND,
/**
* Method not allowed for this resource.
*
*/
ERROR_COMMON_METHOD_NOT_ALLOWED,
/**
* Accept type not applicable.
*
*/
ERROR_COMMON_ACCEPT_TYPE_NOT_APPLICABLE,
/**
* Media type is not supported.
*
*/
ERROR_COMMON_MEDIA_TYPE_UNSUPPORTED,
/**
* The http request is invalid (check the url or body content).
*
*/
ERROR_COMMON_BAD_REQUEST,
/**
* The resource is not supported within the context of the request (includes name of the unauthorized and unavailable resource e.g. savedsearch is only for searchers).
*
*/
ERROR_RESOURCE_NOT_SUPPORTED,
/**
* Resource was not found (includes name and id of the resource).
*
*/
ERROR_RESOURCE_NOT_FOUND,
/**
* Resource was not found for at least one of the given parameters.
*
*/
ERROR_RESOURCE_NOT_FOUND_FOR_MULTIPLE_PARAMETERS,
/**
* Not all of the data for the resource are valid (includes the description of the failure).
*
*/
ERROR_RESOURCE_VALIDATION,
/**
* The requested data was not found.
*
*/
ERROR_REQUESTED_DATA_NOT_FOUND,
/**
* The requested resource is not unique, but is expected to be unique.
*
*/
ERROR_RESOURCE_NOT_UNIQUE,
/**
* resource requested is no longer available and will not be available again.
*
*/
ERROR_RESOURCE_NO_LONGER_AVAILABLE,
/**
* The DB ist not reachable.
*
*/
ERROR_DB_NOT_AVAILABLE,
/**
* Contact data is missing some attributes.
*
*/
ERROR_CONTACT_DETAILS_MISSING,
/**
* The given coordinates are invalid.
*
*/
ERROR_INVALID_COORDINATES,
/**
* The geocoding was not successful.
*
*/
ERROR_GEOCODING_FAILED;
public String value() {
return name();
}
public static MessageCode fromValue(String v) {
return valueOf(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy