title: Java recieving AJAX requests via sockets
body: <p>I have a Java program, and it needs to listen for and handle requests sent to it via AJAX and respond.</p>
  
  <p>Are there any libraries that handle this? If not how would I handle this myself with sockets?</p>