Class SslSimpletonServer

java.lang.Object
io.milton.simpleton.SslSimpletonServer
All Implemented Interfaces:
org.simpleframework.http.core.Container

public class SslSimpletonServer extends Object implements org.simpleframework.http.core.Container
Author:
bradm
  • Field Details

    • DEFAULT_KEYSTORE_ALGORITHM

      public static final String DEFAULT_KEYSTORE_ALGORITHM
    • dispatchStage

      protected final Stage<Task> dispatchStage
  • Constructor Details

  • Method Details

    • start

      public void start()
    • initHttps

      protected org.simpleframework.transport.connect.SocketConnection initHttps(int port)
      Setting up certificates EG C:\Program Files\Java\jdk1.6.0_10\bin>keytool -genkey -keystore certs -keyalg rsa -alias jamie -storepass serverkspw -keypass serverpw note that 'first name last name' should be machine name
      Parameters:
      connection -
      port -
    • stop

      public void stop()
    • handle

      public void handle(org.simpleframework.http.Request request, org.simpleframework.http.Response response)
      Specified by:
      handle in interface org.simpleframework.http.core.Container
    • respondError

      public void respondError(SimpleMiltonRequest req, SimpleMiltonResponse resp, String reason)
    • getHttpPort

      public Integer getHttpPort()
    • setHttpPort

      public void setHttpPort(Integer sslPort)
    • getKeystoreFile

      public File getKeystoreFile()
    • setKeystoreFile

      public void setKeystoreFile(File keystoreFile)
    • getKeystorePassword

      public String getKeystorePassword()
    • setKeystorePassword

      public void setKeystorePassword(String keystorePassword)
    • getSslProtocol

      public String getSslProtocol()
    • setSslProtocol

      public void setSslProtocol(String sslProtocol)
    • getKeystoreAlgorithm

      public String getKeystoreAlgorithm()
    • setKeystoreAlgorithm

      public void setKeystoreAlgorithm(String keystoreAlgorithm)
    • getKeystoreType

      public String getKeystoreType()
    • setKeystoreType

      public void setKeystoreType(String keystoreType)
    • getMaxProcessTimeMillis

      public int getMaxProcessTimeMillis()
    • setMaxProcessTimeMillis

      public void setMaxProcessTimeMillis(int maxProcessTimeMillis)
    • getMaxQueueTimeMillis

      public int getMaxQueueTimeMillis()
    • setMaxQueueTimeMillis

      public void setMaxQueueTimeMillis(int maxQueueTimeMillis)