From e8bff4270a78e6468a348c87901212dfa6e54f66 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Tue, 23 Jun 2015 11:58:27 +0200 Subject: SONAR-6304 Set Content-Disposition header on profile backup and export --- .../src/main/java/org/sonar/api/server/ws/Response.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/Response.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/Response.java index 149ae4178c7..39e8b2c1869 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/Response.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/Response.java @@ -19,11 +19,12 @@ */ package org.sonar.api.server.ws; +import java.io.OutputStream; +import java.util.Collection; +import javax.annotation.CheckForNull; import org.sonar.api.utils.text.JsonWriter; import org.sonar.api.utils.text.XmlWriter; -import java.io.OutputStream; - /** * HTTP response * @@ -43,6 +44,13 @@ public interface Response { Response noContent(); + Response setHeader(String name, String value); + + Collection getHeaderNames(); + + @CheckForNull + String getHeader(String name); + Stream stream(); } -- cgit v1.2.3