![JAR search and dependency download from the Maven repository](/logo.png)
org.osgi.service.http.runtime.HttpServiceRuntime Maven / Gradle / Ivy
Show all versions of aem-sdk-api Show documentation
/*******************************************************************************
* Copyright (c) Contributors to the Eclipse Foundation
*
* 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.
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
package org.osgi.service.http.runtime;
import org.osgi.annotation.versioning.ProviderType;
import org.osgi.service.http.runtime.dto.RequestInfoDTO;
import org.osgi.service.http.runtime.dto.RuntimeDTO;
/**
* The HttpServiceRuntime service represents the runtime information of an Http
* Whiteboard implementation.
*
*
* It provides access to DTOs representing the current state of the service.
*
* The HttpServiceRuntime service must be registered with the
* {@link HttpServiceRuntimeConstants#HTTP_SERVICE_ENDPOINT} service
* property.
*
* @ThreadSafe
* @author $Id: fde5b917c3d888c6cf1aa77bb330eb5b8b4e3919 $
*/
@ProviderType
public interface HttpServiceRuntime {
/**
* 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 Http Whiteboard
* implementation.
* @return The request info DTO for the specified path.
*/
public RequestInfoDTO calculateRequestInfoDTO(String path);
}