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

com.fasterxml.jackson.jaxrs.base.nocontent.JaxRS1NoContentExceptionSupplier Maven / Gradle / Ivy

Go to download

Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache.

There is a newer version: 2.10.9.2
Show newest version
package com.fasterxml.jackson.jaxrs.base.nocontent;

import com.fasterxml.jackson.jaxrs.base.NoContentExceptionSupplier;

import java.io.IOException;

/**
 * Create plain IOException for JaxRS 1.x because {@link javax.ws.rs.core.NoContentException}
 * has been introduced in JaxRS 2.x
 */
public class JaxRS1NoContentExceptionSupplier implements NoContentExceptionSupplier
{
    @Override
    public IOException createNoContentException()
    {
        return new IOException(NO_CONTENT_MESSAGE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy