diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-06-23 11:58:27 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-06-24 14:01:18 +0200 |
commit | e8bff4270a78e6468a348c87901212dfa6e54f66 (patch) | |
tree | c58c458b68ea3d9aca2721dccc3420246b524657 /sonar-plugin-api | |
parent | b061476743e5d0b8c4c312fbd164d19c8e0e7912 (diff) | |
download | sonarqube-e8bff4270a78e6468a348c87901212dfa6e54f66.tar.gz sonarqube-e8bff4270a78e6468a348c87901212dfa6e54f66.zip |
SONAR-6304 Set Content-Disposition header on profile backup and export
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/ws/Response.java | 12 |
1 files changed, 10 insertions, 2 deletions
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<String> getHeaderNames(); + + @CheckForNull + String getHeader(String name); + Stream stream(); } |