There is a hosting for the site from reg.ru , managed by ISP Manager 's, CentOS 6.8 is installed. How, using Java , can I handle JSON requests that come to the server? That is, directly to its IP address on a specific port, or on some page. I do not really know how to approach this issue.
More details :
1. Server side:
I have a server on Linux, I need to teach him to handle incoming requests. On php, everything is done very simply (we specify the address for receiving requests, then file_get_contents('php://input') and json_decode($json) ), I know that, but I need to implement it in Java . How to approach this, I do not know. I asked a similar question some time ago, which I deleted later, but there was a slightly different point.
2. As for the requests themselves:
I work with VK API, that is, every time there are updates in the community, new messages or something else, VK will send POST requests to the address that I will indicate:
I’ll probably be able to specify the IP: PORT address, but it would be better if I could process requests sent, for example, to the address of the same php file.
I would be grateful for any help. I do not know exactly how to solve this issue, so I decided to ask. If the only option is to write the server and listen on the ports, then I will dig in this direction. Then the question after this is: is Java cross platform enough for me to write the above application on a poppy, and does it work quietly under Linux?