public ServiceBindingProvider createServiceBindingProvider(RuntimeEndpoint endpoint) { return new HTTPServiceBindingProvider(endpoint, extensionPoints, messageFactory, servletHost); }
public void start() { /** * Consider three scenarios here : * - Default servlet using service level operation * - Default servlet using GET, PUT, POST, DELETE operations mapped to interface names with same name * - RPC over HTTP like : http://localhost:8080/HelloworldComponent/Helloworld/sayHello?name=Petra */ if (binding.getOperationSelector() == null || binding.getRequestWireFormat() == null || binding.getResponseWireFormat() == null) { throw new IllegalStateException("Binding operation selector and/or wire formats not properly setup."); } Servlet servlet = new HTTPBindingServiceServlet(endpoint, messageFactory); // Create our HTTP service listener Servlet and register it with the // Servlet host servletMapping = binding.getURI(); if (!servletMapping.endsWith("/")) { servletMapping += "/"; } if (!servletMapping.endsWith("*")) { servletMapping += "*"; } String deployedURI = servletHost.addServletMapping(servletMapping, servlet); endpoint.setDeployedURI(deployedURI); }