Class AbstractHttpServerBuilder<T extends HttpServer,​B extends AbstractHttpServerBuilder<T,​B>>

    • Constructor Detail

      • AbstractHttpServerBuilder

        protected AbstractHttpServerBuilder​(T server)
    • Method Detail

      • port

        public B port​(int port)
        Sets the port property.
        Parameters:
        port -
        Returns:
      • contextConfigLocation

        public B contextConfigLocation​(String configLocation)
        Sets the context config location.
        Parameters:
        configLocation -
        Returns:
      • resourceBase

        public B resourceBase​(String resourceBase)
        Sets the resource base.
        Parameters:
        resourceBase -
        Returns:
      • rootParentContext

        public B rootParentContext​(boolean rootParentContext)
        Enables/disables the root parent context.
        Parameters:
        rootParentContext -
        Returns:
      • connectors

        public B connectors​(List<org.eclipse.jetty.server.Connector> connectors)
        Sets the connectors.
        Parameters:
        connectors -
        Returns:
      • connector

        public B connector​(org.eclipse.jetty.server.Connector connector)
        Sets the connector.
        Parameters:
        connector -
        Returns:
      • filters

        public B filters​(Map<String,​javax.servlet.Filter> filters)
        Sets the filters.
        Parameters:
        filters -
        Returns:
      • filterMappings

        public B filterMappings​(Map<String,​String> filterMappings)
        Sets the filterMappings.
        Parameters:
        filterMappings -
        Returns:
      • binaryMediaTypes

        public B binaryMediaTypes​(List<org.springframework.http.MediaType> binaryMediaTypes)
        Sets the binaryMediaTypes.
        Parameters:
        binaryMediaTypes -
        Returns:
      • servletName

        public B servletName​(String servletName)
        Sets the servlet name.
        Parameters:
        servletName -
        Returns:
      • servletMappingPath

        public B servletMappingPath​(String servletMappingPath)
        Sets the servlet mapping path.
        Parameters:
        servletMappingPath -
        Returns:
      • contextPath

        public B contextPath​(String contextPath)
        Sets the context path.
        Parameters:
        contextPath -
        Returns:
      • servletHandler

        public B servletHandler​(org.eclipse.jetty.servlet.ServletHandler servletHandler)
        Sets the servlet handler.
        Parameters:
        servletHandler -
        Returns:
      • securityHandler

        public B securityHandler​(org.eclipse.jetty.security.SecurityHandler securityHandler)
        Sets the security handler.
        Parameters:
        securityHandler -
        Returns:
      • messageConverter

        public B messageConverter​(HttpMessageConverter messageConverter)
        Sets the message converter.
        Parameters:
        messageConverter -
        Returns:
      • handleAttributeHeaders

        public B handleAttributeHeaders​(boolean flag)
        Sets the handleAttributeHeaders property.
        Parameters:
        flag -
        Returns:
      • handleCookies

        public B handleCookies​(boolean flag)
        Sets the handleCookies property.
        Parameters:
        flag -
        Returns:
      • defaultStatus

        public B defaultStatus​(org.springframework.http.HttpStatus status)
        Sets the default status code property.
        Parameters:
        status -
        Returns:
      • responseCacheSize

        public B responseCacheSize​(int size)
        Sets the default response cache size on this server instance.
        Parameters:
        size -
        Returns:
      • interceptors

        public B interceptors​(List<org.springframework.web.servlet.HandlerInterceptor> interceptors)
        Sets the interceptors.
        Parameters:
        interceptors -
        Returns: