|
21 | 21 |
|
22 | 22 | import com.github.jabbalaci.graphviz.GraphViz;
|
23 | 23 | import org.apache.commons.lang.StringUtils;
|
24 |
| -import org.apache.tomcat.util.http.fileupload.IOUtils; |
25 |
| -import org.apache.tomcat.util.http.parser.MediaType; |
26 | 24 | import org.commonwl.viewer.domain.GithubDetails;
|
27 | 25 | import org.commonwl.viewer.domain.Workflow;
|
28 | 26 | import org.commonwl.viewer.domain.WorkflowForm;
|
|
37 | 35 | import org.springframework.stereotype.Controller;
|
38 | 36 | import org.springframework.validation.BindingResult;
|
39 | 37 | import org.springframework.web.bind.annotation.*;
|
40 |
| -import org.springframework.web.context.ServletContextAware; |
41 | 38 | import org.springframework.web.servlet.HandlerMapping;
|
42 | 39 | import org.springframework.web.servlet.ModelAndView;
|
43 | 40 |
|
44 |
| -import javax.servlet.ServletContext; |
45 | 41 | import javax.servlet.http.HttpServletRequest;
|
46 | 42 | import javax.servlet.http.HttpServletResponse;
|
47 | 43 | import javax.validation.Valid;
|
48 | 44 | import java.io.File;
|
49 | 45 | import java.io.IOException;
|
50 |
| -import java.io.InputStream; |
51 | 46 |
|
52 | 47 | @Controller
|
53 | 48 | public class WorkflowController {
|
@@ -209,8 +204,7 @@ public FileSystemResource downloadROBundle(@PathVariable("workflowID") String wo
|
209 | 204 | produces = "image/svg+xml")
|
210 | 205 | @ResponseBody
|
211 | 206 | public FileSystemResource getGraphAsSvg(@Value("${graphvizStorage}") String graphvizStorage,
|
212 |
| - @PathVariable("workflowID") String workflowID, |
213 |
| - HttpServletResponse response) throws IOException { |
| 207 | + @PathVariable("workflowID") String workflowID) throws IOException { |
214 | 208 |
|
215 | 209 | // Get workflow from database
|
216 | 210 | Workflow workflowModel = workflowRepository.findOne(workflowID);
|
@@ -240,8 +234,7 @@ public FileSystemResource getGraphAsSvg(@Value("${graphvizStorage}") String grap
|
240 | 234 | produces = "image/png")
|
241 | 235 | @ResponseBody
|
242 | 236 | public FileSystemResource getGraphAsPng(@Value("${graphvizStorage}") String graphvizStorage,
|
243 |
| - @PathVariable("workflowID") String workflowID, |
244 |
| - HttpServletResponse response) throws IOException { |
| 237 | + @PathVariable("workflowID") String workflowID) throws IOException { |
245 | 238 |
|
246 | 239 | // Get workflow from database
|
247 | 240 | Workflow workflowModel = workflowRepository.findOne(workflowID);
|
|
0 commit comments