httpsListener.setKeystore(this.keystorePath); httpsListener.setPassword(this.keystorePassword); httpsListener.setKeyPassword(this.keyPassword); this.listener = httpsListener;
   public void start()   {      try      {         if(Protocols.AJP.equals(this.protocol))         {            if(this.address != null)            {               this.listener = new AjpListener(this, new InetAddrPort(this.address, this.port));            }            else            {               this.listener = new AjpListener(this);               this.listener.setPort(port);            }         }         else if(Protocols.HTTP.equals(this.protocol))         {            if(this.address != null)            {               this.listener = new HttpListener(this, new InetAddrPort(this.address, this.port));            }            else            {               this.listener = new HttpListener(this);               this.listener.setPort(port);            }         }         else if(Protocols.HTTPS.equals(this.protocol))         {            if(this.address != null)            {               HttpsListener httpsListener = new HttpsListener(this,                     new InetAddrPort(this.address, this.port));               httpsListener.setKeystore(this.keystorePath);               httpsListener.setPassword(this.keystorePassword);               httpsListener.setKeyPassword(this.keyPassword);               this.listener = httpsListener;            }            else            {               this.listener = new HttpsListener(this);               this.listener.setPort(port);            }         }         getListener().start();      }      catch(Exception e)      {         e.printStackTrace();      }   }