a naive proxy server in Java