Class DTOConstants
- java.lang.Object
-
- org.osgi.service.jaxrs.runtime.dto.DTOConstants
-
public final class DTOConstants extends java.lang.Object
Defines standard constants for the DTOs. The error codes are defined to take the same values as used by the Http Service Whiteboard
-
-
Field Summary
Fields Modifier and Type Field Description static int
FAILURE_REASON_DUPLICATE_NAME
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_NAME
property and a service with that name already exists in the runtimestatic int
FAILURE_REASON_NOT_AN_EXTENSION_TYPE
The extension service is registered in the service registry but the service is not registered using a recognized extension typestatic int
FAILURE_REASON_REQUIRED_APPLICATION_UNAVAILABLE
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_APPLICATION_SELECT
property and the filters is not matched by any running application.static int
FAILURE_REASON_REQUIRED_EXTENSIONS_UNAVAILABLE
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_EXTENSION_SELECT
property and one or more of the filters is not matched.static int
FAILURE_REASON_SERVICE_NOT_GETTABLE
The service is registered in the service registry but getting the service fails as it returnsnull
.static int
FAILURE_REASON_SHADOWED_BY_OTHER_SERVICE
Service is shadowed by another service.static int
FAILURE_REASON_UNKNOWN
Failure reason is unknown.static int
FAILURE_REASON_VALIDATION_FAILED
The service is registered in the service registry but the service properties are invalid.
-
-
-
Field Detail
-
FAILURE_REASON_UNKNOWN
public static final int FAILURE_REASON_UNKNOWN
Failure reason is unknown.- See Also:
- Constant Field Values
-
FAILURE_REASON_SHADOWED_BY_OTHER_SERVICE
public static final int FAILURE_REASON_SHADOWED_BY_OTHER_SERVICE
Service is shadowed by another service.For example, a service with the same service properties but a higher service ranking.
- See Also:
- Constant Field Values
-
FAILURE_REASON_SERVICE_NOT_GETTABLE
public static final int FAILURE_REASON_SERVICE_NOT_GETTABLE
The service is registered in the service registry but getting the service fails as it returnsnull
.- See Also:
- Constant Field Values
-
FAILURE_REASON_VALIDATION_FAILED
public static final int FAILURE_REASON_VALIDATION_FAILED
The service is registered in the service registry but the service properties are invalid.- See Also:
- Constant Field Values
-
FAILURE_REASON_NOT_AN_EXTENSION_TYPE
public static final int FAILURE_REASON_NOT_AN_EXTENSION_TYPE
The extension service is registered in the service registry but the service is not registered using a recognized extension type- See Also:
- Constant Field Values
-
FAILURE_REASON_REQUIRED_EXTENSIONS_UNAVAILABLE
public static final int FAILURE_REASON_REQUIRED_EXTENSIONS_UNAVAILABLE
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_EXTENSION_SELECT
property and one or more of the filters is not matched.- See Also:
- Constant Field Values
-
FAILURE_REASON_DUPLICATE_NAME
public static final int FAILURE_REASON_DUPLICATE_NAME
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_NAME
property and a service with that name already exists in the runtime- See Also:
- Constant Field Values
-
FAILURE_REASON_REQUIRED_APPLICATION_UNAVAILABLE
public static final int FAILURE_REASON_REQUIRED_APPLICATION_UNAVAILABLE
The service is registered in the service registry with theJaxrsWhiteboardConstants.JAX_RS_APPLICATION_SELECT
property and the filters is not matched by any running application.- See Also:
- Constant Field Values
-
-