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 33
33
import org .springframework .web .bind .annotation .RequestMapping ;
34
34
import org .springframework .web .bind .annotation .RequestMethod ;
35
35
import org .springframework .web .bind .annotation .ResponseBody ;
36
+ import org .springframework .web .bind .annotation .RequestBody ;
37
+
36
38
37
39
@ Controller
38
40
public class SubscriptionFilesController {
@@ -42,7 +44,7 @@ public class SubscriptionFilesController {
42
44
43
45
44
46
@ RequestMapping (value = "/download/subscriptiontemplate" , method = RequestMethod .GET , produces = APPLICATION_JSON )
45
- public @ ResponseBody void downloadA (HttpServletResponse response ) throws IOException {
47
+ public @ ResponseBody void getSubscriptionJsonTemplate (HttpServletResponse response ) throws IOException {
46
48
File file = getFile (subscriptionFilePath );
47
49
InputStream in = new FileInputStream (file );
48
50
@@ -51,6 +53,13 @@ public class SubscriptionFilesController {
51
53
response .setHeader ("Content-Length" , String .valueOf (file .length ()));
52
54
FileCopyUtils .copy (in , response .getOutputStream ());
53
55
}
56
+
57
+
58
+ // @RequestMapping(value = "/upload/subscriptions", method = RequestMethod.GET, produces = APPLICATION_JSON)
59
+ // public @ResponseBody void validateAndCreateSubscriptions(@RequestBody File subscriptionJsonFile) throws IOException {
60
+ //
61
+ //
62
+ // }
54
63
55
64
56
65
private File getFile (String filePath ) throws FileNotFoundException {
You can’t perform that action at this time.
0 commit comments