returns the default servlet container . for most embedded use cases this will be sufficient . concode_field_sep ServletContainer container concode_field_sep FilterInfo filter concode_elem_sep FilterInfo filter concode_elem_sep WebResourceCollection webResourceCollection concode_elem_sep SecurityConstraint securityConstraint concode_elem_sep LoginConfig loginConfig concode_elem_sep LoginConfig loginConfig concode_elem_sep LoginConfig loginConfig concode_elem_sep LoginConfig loginConfig concode_elem_sep ErrorPage errorPage concode_elem_sep ErrorPage errorPage concode_elem_sep ErrorPage errorPage concode_elem_sep ServletInfo servlet concode_elem_sep ServletInfo servlet concode_elem_sep ServletContainer newContainer concode_elem_sep MultipartConfigElement multipartConfig concode_elem_sep ListenerInfo listener concode_elem_sep ListenerInfo listener concode_elem_sep DeploymentInfo deployment
ServletContainer function ( ) { if ( container != null ) { return container ; } synchronized ( Servlets . class ) { if ( container != null ) { return container ; } return container = ServletContainer . Factory . newInstance ( ) ; } }