Class WebAppContextBuilder


  • public class WebAppContextBuilder
    extends java.lang.Object
    • Constructor Detail

      • WebAppContextBuilder

        public WebAppContextBuilder()
    • Method Detail

      • configurations

        public WebAppContextBuilder configurations​(org.eclipse.jetty.webapp.Configuration[] configurations)
      • containerResource

        public WebAppContextBuilder containerResource​(org.eclipse.jetty.util.resource.PathResource containerResource)
      • parentLoaderPriority

        public WebAppContextBuilder parentLoaderPriority​(java.lang.Boolean parentLoaderPriority)
      • initParameter

        public WebAppContextBuilder initParameter​(java.lang.String key,
                                                  java.lang.String value)
      • attribute

        public WebAppContextBuilder attribute​(java.lang.String key,
                                              java.lang.String value)
      • staticAssetServlet

        public WebAppContextBuilder staticAssetServlet​(java.lang.String resourceBase)
        Configure delivery of static assets if you know the absolute path to the assets.
        Parameters:
        resourceBase - absolute file path to the webapp directory in your project.
        Returns:
        an instance of, WebAppContextBuilder
      • staticAssetServletWar

        public WebAppContextBuilder staticAssetServletWar​(java.lang.String resourceBase)
        Configure delivery of static assets if they are included in the war file.
        Parameters:
        resourceBase - absolute file path to the webapp directory in your project.
        Returns:
        an instance of, WebAppContextBuilder
      • errorPages

        public WebAppContextBuilder errorPages​(java.util.List<org.apache.tomcat.util.descriptor.web.ErrorPage> errorPages)
      • build

        public org.eclipse.jetty.webapp.WebAppContext build()