blob: 161965b25981314be5b5d5754ea7edbcb2e8a2a4 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
package org.eclipse.mdm.apicopy.entity;
import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;
import javax.ws.rs.ext.Provider;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
/**
* Enable MultiPart feature.
*
*/
@Provider
public class DiscoverableMultiPartFeature implements Feature {
@Override
public boolean configure(FeatureContext context) {
context.register(MultiPartFeature.class);
return true;
}
}