All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.bard.webservice.web.NoOpRequestMapper Maven / Gradle / Ivy

Go to download

Fili web service library provides core capabilities for RESTful aggregation navigation, query planning and metadata

There is a newer version: 1.1.13
Show newest version
// Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.web;

import com.yahoo.bard.webservice.data.config.ResourceDictionaries;
import com.yahoo.bard.webservice.web.apirequest.ApiRequest;

import javax.validation.constraints.NotNull;
import javax.ws.rs.container.ContainerRequestContext;

/**
 * Default RequestMapper implementation.
 *
 * @param  Type of ApiRequest that this mapper maps
 */
public class NoOpRequestMapper extends RequestMapper {
    /**
     * Constructor.
     *
     * @param resourceDictionaries  Dictionaries to use when doing the mapping.
     */
    public NoOpRequestMapper(@NotNull ResourceDictionaries resourceDictionaries) {
        super(resourceDictionaries);
    }

    @Override
    public T apply(T request, ContainerRequestContext context) throws RequestValidationException {
        return request;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy