-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 771d75a
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.example.demo; | ||
|
||
public class RemoteOperation { | ||
long vmc_no; | ||
String operation; | ||
|
||
public long getVmc_no() { | ||
return vmc_no; | ||
} | ||
|
||
public void setVmc_no(long vmc_no) { | ||
this.vmc_no = vmc_no; | ||
} | ||
|
||
public String getOperation() { | ||
return operation; | ||
} | ||
|
||
public void setOperation(String operation) { | ||
this.operation = operation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.example.demo; | ||
|
||
import com.google.gson.Gson; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class WebSocketController { | ||
|
||
// @RequestMapping(value = "/operation/{vmc}/{cmd}") | ||
// public String remote(@PathVariable("vmc") long vmc, @PathVariable("cmd") String cmd) { | ||
// System.out.print("remote"); | ||
// RemoteOperation operation = new RemoteOperation(); | ||
// operation.setVmc_no(vmc); | ||
// operation.setOperation(cmd); | ||
// String message = new Gson().toJson(operation); | ||
// System.out.println("message in json is :" + message); | ||
// return WebSocketServer.sendMessage(message, vmc); | ||
// } | ||
|
||
// @RequestMapping(value = "/test") | ||
// public String test() { | ||
// System.out.print("test"); | ||
// return "hello world"; | ||
// } | ||
} |