title: What is the replacement for SslSocketConnector setPort() in jetty http client?
body: <p>I'm currently doing an upgrade of our <strong>jetty</strong> version from <strong>7.1.6 to 7.6.2</strong>. I noticed that a lot of the methods of SslSocketConnector that we're currently using have been deprecated since our old release.</p>
  
  <p>From what I have seen in some other SO questions, I've managed to replace most of the methods by using <code>SslContextFactory</code> instead. </p>
  
  <p><strong>However, I can't seem to find any equivalent of <code>SslSocketConnector</code>'s <code>setPort(int)</code> method. Any ideas on what the corresponding method for <code>SslContextFactory</code> is?</strong></p>
  
  <p>The code before upgrading the jetty version:</p>
  
  <pre><code>theSSLConnector.setPort(theHTTPSPort);
  theSSLConnector.setKeystore("key");
  theSSLConnector.setPassword("OBF:password");
  theSSLConnector.setKeyPassword("OBF:password");
  theSSLConnector.setTruststore("trust");
  theSSLConnector.setTrustPassword("OBF:password");
  </code></pre>
  
  <p>And after:</p>
  
  <pre><code>SslContextFactory theSSLFactory = new SslContextFactory();
  // Port goes here?
  theSSLFactory.setKeyStorePath("key");
  theSSLFactory.setKeyManagerPassword("OBF:password");
  theSSLFactory.setKeyStorePassword("OBF:password");
  theSSLFactory.setTrustStore("trust");
  theSSLFactory.setTrustStorePassword("OBF:password");
  </code></pre>