public RuntimeDTO getRuntimeDTO()

in jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/AriesJaxrsServiceRuntime.java [364:442]


    public RuntimeDTO getRuntimeDTO() {
        RuntimeDTO runtimeDTO = new RuntimeDTO();

        if (_defaultApplicationProperties != null) {
            runtimeDTO.defaultApplication = buildApplicationDTO(
                _defaultApplicationProperties);
        }

        runtimeDTO.applicationDTOs = applicationDTOStream().
            toArray(
                ApplicationDTO[]::new
            );

        runtimeDTO.failedApplicationDTOs =
            Stream.concat(
                contextDependentApplicationsDTOStream(),
                Stream.concat(
                    invalidApplicationsDTOStream(),
                    Stream.concat(
                        shadowedApplicationsDTOStream(),
                        Stream.concat(
                            unreferenciableApplicationsDTOStream(),
                            Stream.concat(
                                clashingApplicationsDTOStream(),
                                Stream.concat(
                                    dependentApplicationsDTOStream(),
                                    erroredApplicationsDTOStream())))))
            ).toArray(
                FailedApplicationDTO[]::new
            );

        runtimeDTO.failedResourceDTOs =
            Stream.concat(
                invalidResourcesDTOStream(),
                Stream.concat(
                    clashingResourcesDTOStream(),
                    Stream.concat(
                        unreferenciableEndpointsDTOStream(),
                        Stream.concat(
                            dependentServiceStreamDTO(),
                            Stream.concat(
                                applicationDependentResourcesDTOStream(),
                                erroredEndpointsStreamDTO()))))
            ).toArray(
                FailedResourceDTO[]::new
            );

        runtimeDTO.failedExtensionDTOs =
            Stream.concat(
                clashingExtensionsDTOStream(),
                Stream.concat(
                    unreferenciableExtensionsDTOStream(),
                    Stream.concat(
                        applicationDependentExtensionsDTOStream(),
                        Stream.concat(
                            erroredExtensionsDTOStream(),
                            Stream.concat(dependentExtensionsStreamDTO(),
                                invalidExtensionsDTOStream()))))
            ).toArray(
                FailedExtensionDTO[]::new
            );

        ServiceReference<JaxrsServiceRuntime> serviceReference =
            _whiteboard.getServiceReference();

        ServiceReferenceDTO serviceDTO = new ServiceReferenceDTO();
        serviceDTO.bundle = serviceReference.getBundle().getBundleId();
        serviceDTO.id = (long)serviceReference.getProperty("service.id");
        serviceDTO.usingBundles = Arrays.stream(
            serviceReference.getUsingBundles()
        ).mapToLong(
            Bundle::getBundleId
        ).toArray();
        serviceDTO.properties = Utils.getProperties(serviceReference);

        runtimeDTO.serviceDTO = serviceDTO;

        return runtimeDTO;
    }