blob: a93a57dba170fe433990a245950991c5d562c5c6 [file] [log] [blame]
/*
* Copyright (c) OSGi Alliance (2012, 2015). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.osgi.service.jaxrs.runtime;
import org.osgi.annotation.versioning.ProviderType;
import org.osgi.service.jaxrs.runtime.dto.RequestInfoDTO;
import org.osgi.service.jaxrs.runtime.dto.RuntimeDTO;
/**
* The HttpServiceRuntime service represents the runtime information of an Http
* Whiteboard implementation.
*
* <p>
* It provides access to DTOs representing the current state of the service.
* <p>
* The HttpServiceRuntime service must be registered with the
* {@link JaxRSServiceRuntimeConstants#JAX_RS_SERVICE_ENDPOINT} service
* property.
*
* @ThreadSafe
* @author $Id: 358252f603be05c7ac7bf0600eee24ff090fa7a9 $
*/
@ProviderType
public interface JaxRSServiceRuntime {
/**
* Return the runtime DTO representing the current state.
*
* @return The runtime DTO.
*/
public RuntimeDTO getRuntimeDTO();
/**
* Return a request info DTO containing the services involved with
* processing a request for the specified path.
*
* @param path The request path, relative to the root of the JAX-RS
* Whiteboard implementation.
* @return The request info DTO for the specified path.
*/
public RequestInfoDTO calculateRequestInfoDTO(String path);
}