Class WebserverForTest


  • public class WebserverForTest
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.nio.charset.Charset CHAR_SET_TO_USE  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebserverForTest​(com.google.inject.Module platformOverrides, com.google.inject.Module appOverrides, org.webpieces.util.file.VirtualFile metaFile, java.lang.String... args)  
      WebserverForTest​(TestConfig testConfig, java.lang.String... args)  
    • Field Detail

      • CHAR_SET_TO_USE

        public static final java.nio.charset.Charset CHAR_SET_TO_USE
    • Constructor Detail

      • WebserverForTest

        public WebserverForTest​(com.google.inject.Module platformOverrides,
                                com.google.inject.Module appOverrides,
                                org.webpieces.util.file.VirtualFile metaFile,
                                java.lang.String... args)
      • WebserverForTest

        public WebserverForTest​(TestConfig testConfig,
                                java.lang.String... args)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • configure

        public void configure​(java.nio.channels.ServerSocketChannel channel)
                       throws java.net.SocketException
        Throws:
        java.net.SocketException
      • start

        public void start()
      • stop

        public void stop()
      • getUnderlyingHttpChannel

        public org.webpieces.nio.api.channels.TCPServerChannel getUnderlyingHttpChannel()
      • getUnderlyingHttpsChannel

        public org.webpieces.nio.api.channels.TCPServerChannel getUnderlyingHttpsChannel()
      • getCacheDir

        public java.io.File getCacheDir()