title: java-apns with http proxy problem
body: <p>my project used <strong>java-apns</strong> to send notification to iPhone. before that, i have to go through a http proxy. so i add proxy feature like this:</p>
  
  <pre><code>Proxyproxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost,
                  Integer.parseInt(proxyPort)));
  ApnsServiceBuilder apnBuilder = APNS.newService().withCert(certPath, passwd).withProxy(proxy);
  </code></pre>
  
  <p>but i always get invalid proxy error:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Invalid Proxy
  at java.net.Socket.&lt;init&gt;(Socket.java:122)
  at com.notnoop.apns.ApnsServiceBuilder.withProxy(ApnsServiceBuilder.java:281)
  </code></pre>
  
  <p>is there anybody could give me some advices? Thanks very much.</p>