org.testifyproject.spotify.docker.client.ObjectMapperProvider Maven / Gradle / Ivy
The newest version!
/*-
* -\-\-
* docker-client
* --
* Copyright (C) 2016 Spotify AB
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in org.testifyproject.testifyprojectpliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org.testifyproject/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.testifyproject.testifyproject.spotify.docker.client;
import org.testifyproject.testifyproject.fasterxml.jackson.annotation.JsonInclude;
import org.testifyproject.testifyproject.fasterxml.jackson.core.JsonGenerator;
import org.testifyproject.testifyproject.fasterxml.jackson.core.JsonParser;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.DeserializationContext;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.DeserializationFeature;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.JsonDeserializer;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.JsonSerializer;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.ObjectMapper;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.SerializerProvider;
import org.testifyproject.testifyproject.fasterxml.jackson.databind.module.SimpleModule;
import org.testifyproject.testifyproject.fasterxml.jackson.datatype.guava.GuavaModule;
import org.testifyproject.testifyproject.google.org.testifyproject.testifyprojectmon.base.Function;
import org.testifyproject.testifyproject.google.org.testifyproject.testifyprojectmon.collect.ImmutableSet;
import org.testifyproject.testifyproject.google.org.testifyproject.testifyprojectmon.collect.Maps;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;
import org.testifyproject.slf4j.Logger;
import org.testifyproject.slf4j.LoggerFactory;
@Provider
@Produces(MediaType.APPLICATION_JSON)
@SuppressWarnings({"rawtypes", "unchecked"})
public class ObjectMapperProvider implements ContextResolver {
private static final Logger log = LoggerFactory.getLogger(ObjectMapperProvider.class);
private static final Function super Object, ?> VOID_VALUE = new Function
© 2015 - 2024 Weber Informatics LLC | Privacy Policy