Class JettyServerConfig


  • public class JettyServerConfig
    extends java.lang.Object
    Configuration of the Jetty server when run from the command line directly, not as a webapp/war file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String authConfigFile
      Authentication config file used to setup Jetty Basic auth, if a Jetty config file was set this is ignored since Jetty config allows much more complex auth methods to be implemented.
      java.lang.String contextPath
      Path to run the server service under
      boolean enableCompression
      Enable Accept-Encoding compression.
      java.lang.String jettyConfigFile
      Jetty config file - if null, use the built-in configuration of Jetty
      boolean loopback
      Listen only on the loopback (localhost) interface
      int port
      Port to run the server service on
      boolean verboseLogging
      Enable additional logging
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • port

        public int port
        Port to run the server service on
      • contextPath

        public java.lang.String contextPath
        Path to run the server service under
      • jettyConfigFile

        public java.lang.String jettyConfigFile
        Jetty config file - if null, use the built-in configuration of Jetty
      • loopback

        public boolean loopback
        Listen only on the loopback (localhost) interface
      • enableCompression

        public boolean enableCompression
        Enable Accept-Encoding compression. Set to false by default.
      • verboseLogging

        public boolean verboseLogging
        Enable additional logging
      • authConfigFile

        public java.lang.String authConfigFile
        Authentication config file used to setup Jetty Basic auth, if a Jetty config file was set this is ignored since Jetty config allows much more complex auth methods to be implemented. Using Apache Shiro is better as well.
    • Constructor Detail

      • JettyServerConfig

        public JettyServerConfig()