Skip to content
Snippets Groups Projects
Commit e47e9751 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

GZIP model output

parent 8fa4f0ae
No related branches found
No related tags found
No related merge requests found
...@@ -16,5 +16,6 @@ Any value defined here will override the pom.xml file value but is only applicab ...@@ -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> <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> <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> <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> </properties>
</project-shared-configuration> </project-shared-configuration>
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
package no.nibio.vips.coremanager.service; package no.nibio.vips.coremanager.service;
import no.nibio.vips.coremanager.service.ManagerResource;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.URI; import java.net.URI;
...@@ -53,6 +52,7 @@ import no.nibio.vips.entity.ModelConfiguration; ...@@ -53,6 +52,7 @@ import no.nibio.vips.entity.ModelConfiguration;
import no.nibio.vips.entity.ModelRunRequest; import no.nibio.vips.entity.ModelRunRequest;
import no.nibio.vips.model.Model; import no.nibio.vips.model.Model;
import no.nibio.vips.util.ServletUtil; import no.nibio.vips.util.ServletUtil;
import org.jboss.resteasy.annotations.GZIP;
import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget; import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;
...@@ -317,6 +317,7 @@ public class ManagerResourceImpl implements ManagerResource{ ...@@ -317,6 +317,7 @@ public class ManagerResourceImpl implements ManagerResource{
*/ */
@POST @POST
@Path("models/{modelId}/run") @Path("models/{modelId}/run")
@GZIP
@Consumes("application/json") @Consumes("application/json")
@Produces("application/json") @Produces("application/json")
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment