/*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.everrest.core.provider;
import org.everrest.core.ObjectModel;
import javax.ws.rs.core.MediaType;
import java.util.List;
/**
* Descriptor of Provider. Provider is annotated with @Provider and implement interface defined by JAX-RS.
*
* @author andrew00x
*/
public interface ProviderDescriptor extends ObjectModel {
/**
* Get list of {@link MediaType} which current provider consumes.
*
* @return list of media types
*/
List<MediaType> consumes();
/**
* Get list of {@link MediaType} which current provider produces.
*
* @return list of media types
*/
List<MediaType> produces();
}