Class ExampleHttpContexts

java.lang.Object
org.apache.pekko.http.impl.util.ExampleHttpContexts

public class ExampleHttpContexts extends Object
These are HTTPS example configurations that take key material from the resources/key folder.
  • Constructor Details

    • ExampleHttpContexts

      public ExampleHttpContexts()
  • Method Details

    • getExampleServerContext

      public static HttpsConnectionContext getExampleServerContext()
    • exampleServerContext

      public static HttpsConnectionContext exampleServerContext()
    • exampleClientContext

      public static HttpsConnectionContext exampleClientContext()
    • resourceStream

      public static InputStream resourceStream(String resourceName)
    • loadX509Certificate

      public static Certificate loadX509Certificate(String resourceName)
    • proxyTransport

      public static ClientTransport proxyTransport(InetSocketAddress realAddress)
      A client transport that will rewrite the target address to a fixed address. This can be used to pretend to connect to pekko.example.org which is required to connect to the example server certificate.
      Parameters:
      realAddress - (undocumented)
      Returns:
      (undocumented)