Class EnvConfiguration

  • All Implemented Interfaces:
    org.eclipse.jetty.webapp.Configuration

    public class EnvConfiguration
    extends org.eclipse.jetty.webapp.AbstractConfiguration
    EnvConfiguration
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration

        org.eclipse.jetty.webapp.Configuration.ClassList
    • Field Summary

      • Fields inherited from interface org.eclipse.jetty.webapp.Configuration

        ATTR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bindEnvEntries​(org.eclipse.jetty.webapp.WebAppContext context)
      Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.
      void configure​(org.eclipse.jetty.webapp.WebAppContext context)  
      protected void createEnvContext​(org.eclipse.jetty.webapp.WebAppContext wac)  
      void deconfigure​(org.eclipse.jetty.webapp.WebAppContext context)
      Remove jndi setup from start
      void destroy​(org.eclipse.jetty.webapp.WebAppContext context)
      Remove all jndi setup
      void preConfigure​(org.eclipse.jetty.webapp.WebAppContext context)  
      void setJettyEnvXml​(java.net.URL url)  
      • Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration

        cloneConfigure, postConfigure
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnvConfiguration

        public EnvConfiguration()
    • Method Detail

      • setJettyEnvXml

        public void setJettyEnvXml​(java.net.URL url)
      • preConfigure

        public void preConfigure​(org.eclipse.jetty.webapp.WebAppContext context)
                          throws java.lang.Exception
        Specified by:
        preConfigure in interface org.eclipse.jetty.webapp.Configuration
        Overrides:
        preConfigure in class org.eclipse.jetty.webapp.AbstractConfiguration
        Throws:
        java.lang.Exception
      • configure

        public void configure​(org.eclipse.jetty.webapp.WebAppContext context)
                       throws java.lang.Exception
        Specified by:
        configure in interface org.eclipse.jetty.webapp.Configuration
        Overrides:
        configure in class org.eclipse.jetty.webapp.AbstractConfiguration
        Throws:
        java.lang.Exception
      • deconfigure

        public void deconfigure​(org.eclipse.jetty.webapp.WebAppContext context)
                         throws java.lang.Exception
        Remove jndi setup from start
        Specified by:
        deconfigure in interface org.eclipse.jetty.webapp.Configuration
        Overrides:
        deconfigure in class org.eclipse.jetty.webapp.AbstractConfiguration
        Throws:
        java.lang.Exception - if unable to deconfigure
      • destroy

        public void destroy​(org.eclipse.jetty.webapp.WebAppContext context)
                     throws java.lang.Exception
        Remove all jndi setup
        Specified by:
        destroy in interface org.eclipse.jetty.webapp.Configuration
        Overrides:
        destroy in class org.eclipse.jetty.webapp.AbstractConfiguration
        Throws:
        java.lang.Exception - if unable to destroy
      • bindEnvEntries

        public void bindEnvEntries​(org.eclipse.jetty.webapp.WebAppContext context)
                            throws javax.naming.NamingException
        Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them. We first bind EnvEntries declared in Server scope, then WebAppContext scope.
        Parameters:
        context - the context to use for the object scope
        Throws:
        javax.naming.NamingException - if unable to bind env entries
      • createEnvContext

        protected void createEnvContext​(org.eclipse.jetty.webapp.WebAppContext wac)
                                 throws javax.naming.NamingException
        Throws:
        javax.naming.NamingException