Package org.webpieces.plugins.fortesting
Class WebserverForTest
- java.lang.Object
-
- org.webpieces.plugins.fortesting.WebserverForTest
-
public class WebserverForTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetCHAR_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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.nio.channels.ServerSocketChannel channel)java.io.FilegetCacheDir()org.webpieces.nio.api.channels.TCPServerChannelgetUnderlyingHttpChannel()org.webpieces.nio.api.channels.TCPServerChannelgetUnderlyingHttpsChannel()static voidmain(java.lang.String[] args)voidstart()voidstop()
-
-
-
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()
-
-