diff --git a/nb-configuration.xml b/nb-configuration.xml index 084c44948d7f672954072a8948a56dc2d120801b..a24da1803805f3ca00f124ed1344039870f59ebe 100644 --- a/nb-configuration.xml +++ b/nb-configuration.xml @@ -16,5 +16,6 @@ Any value defined here will override the pom.xml file value but is only applicab <netbeans.hint.j2eeVersion>1.5</netbeans.hint.j2eeVersion> <org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>ide</org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type> <netbeans.hint.license>nibio_open_source_license.ftl</netbeans.hint.license> + <org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>WildFly</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server> </properties> </project-shared-configuration> diff --git a/src/main/java/no/nibio/vips/coremanager/service/ManagerResourceImpl.java b/src/main/java/no/nibio/vips/coremanager/service/ManagerResourceImpl.java index 3d485606a530be9d1f7e05d01600c2056e66baba..8f0d55e4cc5fbf5308dbda5cc2b510b2b5bec073 100644 --- a/src/main/java/no/nibio/vips/coremanager/service/ManagerResourceImpl.java +++ b/src/main/java/no/nibio/vips/coremanager/service/ManagerResourceImpl.java @@ -19,7 +19,6 @@ package no.nibio.vips.coremanager.service; -import no.nibio.vips.coremanager.service.ManagerResource; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -53,6 +52,7 @@ import no.nibio.vips.entity.ModelConfiguration; import no.nibio.vips.entity.ModelRunRequest; import no.nibio.vips.model.Model; import no.nibio.vips.util.ServletUtil; +import org.jboss.resteasy.annotations.GZIP; import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget; @@ -317,6 +317,7 @@ public class ManagerResourceImpl implements ManagerResource{ */ @POST @Path("models/{modelId}/run") + @GZIP @Consumes("application/json") @Produces("application/json") @Override