public HttpServer build ( ) { checkNotNull ( baseUri ) ; StandaloneWebConverterConfiguration configuration = makeConfiguration ( ) ; // The configuration has to be configured both by a binder to make it injectable // and directly in order to trigger life cycle methods on the deployment container. ResourceConfig resourceConfig = ResourceConfig . forApplication ( new WebConverterApplication ( configuration ) ) . register ( configuration ) ; if ( sslContext == null ) { return GrizzlyHttpServerFactory . createHttpServer ( baseUri , resourceConfig ) ; } else { return GrizzlyHttpServerFactory . createHttpServer ( baseUri , resourceConfig , true , new SSLEngineConfigurator ( sslContext ) ) ; } }
Creates the conversion server that is specified by this builder .