public void destroy() { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can no // longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; destroyBus(); }
try { synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { HttpDestinationFactory jettyFactory = bus.getExtension(HttpDestinationFactory.class);
public void destroy() { if (!globalRegistry) { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can // no longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; } destroyBus(); super.destroy(); }
try { String pathInfo = request.getPathInfo() == null ? "" : request.getPathInfo(); AbstractHTTPDestination d = destinationRegistry.getDestinationForPath(pathInfo, true);
@Override public AbstractHTTPDestination getDestinationForPath(final String path, final boolean tryDecoding) { return wrap(delegate.getDestinationForPath(path, tryDecoding)); }
@Override public AbstractHTTPDestination getDestinationForPath(final String path) { return wrap(delegate.getDestinationForPath(path)); }
public Server getServiceByRequest(HttpServletRequest request) { String pathInfo = request.getPathInfo() == null ? request.getServletPath() : request.getPathInfo(); if (pathInfo.startsWith(serviceRootUrl)) pathInfo = pathInfo.substring(serviceRootUrl.length()); for (String path : registeredServices.keySet()) { AbstractHTTPDestination d = destinationRegistry.getDestinationForPath(pathInfo, true); if (d == null) { d = destinationRegistry.checkRestfulRequest(pathInfo); } if (d!=null) { EndpointInfo ei = d.getEndpointInfo(); if (ei.getAddress().equals(registeredServices.get(path).getEndpoint().getEndpointInfo().getAddress())) { return registeredServices.get(path); } } } return null; } }
/** * {@inheritDoc} */ public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { d = factory.createDestination(endpointInfo, bus, registry); if (d == null) { String error = "No destination available. The CXF websocket transport needs either the " + "Jetty WebSocket or Atmosphere dependencies to be available"; throw new IOException(error); } registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } }
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { d = factory.createDestination(endpointInfo, bus, registry); registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } }
final AbstractHTTPDestination dest = destRegistry.getDestinationForPath(requestURI, true); if (dest != null) { return dest;
@Override public void destroy() { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can no longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; destroyBus(); }
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { d = factory.createDestination(endpointInfo, bus, registry); registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } }
/** * {@inheritDoc} */ public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { d = factory.createDestination(endpointInfo, bus, registry); if (d == null) { String error = "No destination available. The CXF websocket transport needs either the " + "Jetty WebSocket or Atmosphere dependencies to be available"; throw new IOException(error); } registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } }
public void destroy() { if (!globalRegistry) { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can // no longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; } destroyBus(); }
public void destroy() { if (!globalRegistry) { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can // no longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; } destroyBus(); }
try { synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { HttpDestinationFactory jettyFactory = bus.getExtension(HttpDestinationFactory.class);
public void destroy() { if (!globalRegistry) { for (String path : destinationRegistry.getDestinationsPaths()) { // clean up the destination in case the destination itself can // no longer access the registry later AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(path); synchronized (dest) { destinationRegistry.removeDestination(path); dest.releaseRegistry(); } } destinationRegistry = null; } destroyBus(); super.destroy(); }
AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { HttpDestinationFactory jettyFactory = bus.getExtension(HttpDestinationFactory.class);
try { String pathInfo = request.getPathInfo() == null ? "" : request.getPathInfo(); AbstractHTTPDestination d = destinationRegistry.getDestinationForPath(pathInfo, true);
LOG.debug("Batch item:\n{}", reqItem); AbstractHTTPDestination dest = destinationRegistry.getDestinationForPath(reqItem.getRequestURI(), true); if (dest == null) { dest = destinationRegistry.checkRestfulRequest(reqItem.getRequestURI());