Class DevelopmentServer


  • public class DevelopmentServer
    extends YourCompanyDevelopmentServer
    What's awesome about writing code on the DevelopmentServer is we can put validation/failures in place that are not in the production server so developers can catch them. Things like validating flash.keep(true or false) is called to make sure flash is being done correctly and not missed on post methods. We also log NotFouund as an error. We swap out the production NotFoudn page with a version that shows the prod one AND lists all routes so you can see why your route did not match!!
    • Constructor Detail

      • DevelopmentServer

        public DevelopmentServer​(boolean usePortZero)
    • Method Detail

      • main

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

        protected webpiecesxxxxxpackage.basesvr.YourCompanyServer createServer​(com.google.inject.Module platformOverrides,
                                                                               com.google.inject.Module appOverrides,
                                                                               org.webpieces.webserver.api.ServerConfig config,
                                                                               java.lang.String... args)
        Specified by:
        createServer in class YourCompanyDevelopmentServer