File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/java/com.ericsson.ei.frontend Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 25
25
import org .springframework .web .bind .annotation .RequestMapping ;
26
26
import org .springframework .web .bind .annotation .RequestMethod ;
27
27
import org .springframework .web .bind .annotation .ResponseBody ;
28
+ import org .springframework .web .bind .annotation .RequestBody ;
29
+
28
30
29
31
@ Controller
30
32
public class SubscriptionFilesController {
@@ -34,7 +36,7 @@ public class SubscriptionFilesController {
34
36
35
37
36
38
@ RequestMapping (value = "/download/subscriptiontemplate" , method = RequestMethod .GET , produces = APPLICATION_JSON )
37
- public @ ResponseBody void downloadA (HttpServletResponse response ) throws IOException {
39
+ public @ ResponseBody void getSubscriptionJsonTemplate (HttpServletResponse response ) throws IOException {
38
40
File file = getFile (subscriptionFilePath );
39
41
InputStream in = new FileInputStream (file );
40
42
@@ -43,6 +45,13 @@ public class SubscriptionFilesController {
43
45
response .setHeader ("Content-Length" , String .valueOf (file .length ()));
44
46
FileCopyUtils .copy (in , response .getOutputStream ());
45
47
}
48
+
49
+
50
+ // @RequestMapping(value = "/upload/subscriptions", method = RequestMethod.GET, produces = APPLICATION_JSON)
51
+ // public @ResponseBody void validateAndCreateSubscriptions(@RequestBody File subscriptionJsonFile) throws IOException {
52
+ //
53
+ //
54
+ // }
46
55
47
56
48
57
private File getFile (String filePath ) throws FileNotFoundException {
You can’t perform that action at this time.
0 commit comments