config.addHttpHandler(handler, HttpHandlerRegistration.bulder().contextPath(contextPath).build());
config.addHttpHandler(handler, HttpHandlerRegistration.bulder().contextPath(contextPath).build());
@Override public void publishService(SoapWebService soapWebService) { String path = transportInfo.getBasePath() + soapWebService.getServicePath(); log.info("Publishing soap web service: " + transportInfo.toUriString() + soapWebService.getServicePath() + "?wsdl"); HttpHandler jaxwsHandler = new JaxwsHandler(soapWebService, false); httpServer.getServerConfiguration().addHttpHandler(jaxwsHandler, //see https://java.net/projects/grizzly/lists/users/archive/2014-11/message/7 for why this is done. HttpHandlerRegistration.bulder() .contextPath(path) .urlPattern("") .build()); if (!isNetworkListenerAdded) { addNetworkListener(); } }
@Override public void publishService(SoapWebService soapWebService) { String path = transportInfo.getBasePath() + soapWebService.getServicePath(); log.info("Publishing soap web service: " + transportInfo.toUriString() + soapWebService.getServicePath() + "?wsdl"); HttpHandler jaxwsHandler = new JaxwsHandler(soapWebService); httpServer.getServerConfiguration().addHttpHandler(jaxwsHandler, //see https://java.net/projects/grizzly/lists/users/archive/2014-11/message/7 for why this is done. HttpHandlerRegistration.bulder() .contextPath(path) .urlPattern("") .build()); if (!isNetworkListenerAdded) { addNetworkListener(); } }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
private void addJerseyHandler(ResourceConfig resourceConfig, String mapping) { HttpHandler handler = ContainerFactory.createContainer(HttpHandler.class, resourceConfig); httpServer.getServerConfiguration().addHttpHandler(handler, HttpHandlerRegistration.bulder().contextPath(mapping).build()); LOG.log(Level.INFO, I18NBundle.getBundle().getMessage( LocalStringKeys.HTTP_REST_REGISTER_APPLICATION, resourceConfig.getApplication().getClass().getName(), mapping)); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
private void startServer(HttpHandler httpHandler) throws IOException { httpServer = new HttpServer(); NetworkListener networkListener = new NetworkListener("jaxws-listener", "0.0.0.0", PORT); httpServer.getServerConfiguration().addHttpHandler(new StaticHttpHandler(), "/add"); // make sure JAX-WS Handler is not default httpServer.getServerConfiguration().addHttpHandler(httpHandler, HttpHandlerRegistration.bulder() .contextPath("/add/a/b") .urlPattern("/") .build()); httpServer.addListener(networkListener); httpServer.start(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }
/** * @return the <tt>HttpHandlerRegistration</tt> builder. */ public static Builder builder() { return new Builder(); }