/*
 * $Id$
 *
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.sun.ts.tests.jaxrs.ee.rs.ext.exceptionmapper;

import java.io.IOException;

import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;

/**
 * This class is used by com.sun.ts.tests.jaxrs.ee.rs.ext.providers.ProvidersServlet  
 */
@Provider
public class IOExceptionExceptionMapper implements ExceptionMapper<IOException>{

	@Override
	public Response toResponse(IOException exception) {
		return Response.status(Status.ACCEPTED).build();
	}

}
