org.apache.cxf.transport.servlet.servicelist.ServiceListGeneratorServlet Java Examples
The following examples show how to use
org.apache.cxf.transport.servlet.servicelist.ServiceListGeneratorServlet.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BulkReadResourceImpl.java From component-runtime with Apache License 2.0 | 5 votes |
@PostConstruct private void init() { final DestinationRegistry registry = cxf.getRegistry(); controller = new ServletController(registry, new SimpleServletConfig(servletContext, "Talend Component Kit Bulk Transport"), new ServiceListGeneratorServlet(registry, bus)); }
Example #2
Source File: KSBDispatcherServlet.java From rice with Educational Community License v2.0 | 5 votes |
@Override protected void initFrameworkServlet() throws ServletException, BeansException { this.httpInvokerHandler = new KSBHttpInvokerHandler(); Bus bus = KSBServiceLocator.getCXFBus(); List<Interceptor<? extends Message>> inInterceptors = KSBServiceLocator.getInInterceptors(); if(inInterceptors != null) { List<Interceptor<? extends Message>> busInInterceptors = bus.getInInterceptors(); busInInterceptors.addAll(inInterceptors); } List<Interceptor<? extends Message>> outInterceptors = KSBServiceLocator.getOutInterceptors(); if(outInterceptors != null) { List<Interceptor<? extends Message>> busOutInterceptors = bus.getOutInterceptors(); busOutInterceptors.addAll(outInterceptors); } HTTPTransportFactory transportFactory = bus.getExtension(HTTPTransportFactory.class); if (transportFactory == null) { throw new IllegalStateException("Failed to locate HTTPTransportFactory extension on Apache CXF Bus"); } DestinationRegistry destinationRegistry = transportFactory.getRegistry(); this.cxfServletController = new ServletController(destinationRegistry, getCXFServletConfig( this.getServletConfig()), new ServiceListGeneratorServlet(destinationRegistry, bus)); this.setPublishEvents(false); }
Example #3
Source File: CXFNonSpringServlet.java From cxf with Apache License 2.0 | 5 votes |
protected ServletController createServletController(ServletConfig servletConfig) { HttpServlet serviceListGeneratorServlet = new ServiceListGeneratorServlet(destinationRegistry, bus); return new ServletController(destinationRegistry, servletConfig, serviceListGeneratorServlet); }
Example #4
Source File: GenericWebServiceServlet.java From BIMserver with GNU Affero General Public License v3.0 | 4 votes |
private ServletController createServletController(ServletConfig servletConfig) { HttpServlet serviceListGeneratorServlet = new ServiceListGeneratorServlet(destinationRegistry, bus); ServletController newController = new ServletController(destinationRegistry, servletConfig, serviceListGeneratorServlet); return newController; }