protected static ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
protected ServerAdapter(String name, String urlPattern, WSEndpoint endpoint, ServerAdapterList owner) { super(endpoint, owner, urlPattern); this.name = name; // registers itself with the container Module module = endpoint.getContainer().getSPI(Module.class); if(module==null) LOGGER.log(Level.WARNING, "Container {0} doesn''t support {1}", new Object[]{endpoint.getContainer(), Module.class}); else { module.getBoundEndpoints().add(this); } }
private ResourceInjector getResourceInjector(WSEndpoint endpoint) { ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class); if(ri==null) ri = ResourceInjector.STANDALONE; return ri; }
protected ServerAdapter(String name, String urlPattern, WSEndpoint endpoint, ServerAdapterList owner) { super(endpoint, owner, urlPattern); this.name = name; // registers itself with the container Module module = endpoint.getContainer().getSPI(Module.class); if(module==null) LOGGER.log(Level.WARNING, "Container {0} doesn''t support {1}", new Object[]{endpoint.getContainer(), Module.class}); else { module.getBoundEndpoints().add(this); } }
public F3SecurityServerTube(ServerTubelineAssemblyContext context, Tube nextTube) { super(context, nextTube); // override the default security environment with a Fabric3 system service secEnv = context.getEndpoint().getContainer().getSPI(SecurityEnvironment.class); }
/** * Gets the list of {@link BoundEndpoint} that are associated * with this endpoint. * * @return * always return the same set. */ public List<BoundEndpoint> getBoundEndpoints() { Module m = getContainer().getSPI(Module.class); return m != null ? m.getBoundEndpoints() : null; }
/** * Gets the list of {@link BoundEndpoint} that are associated * with this endpoint. * * @return * always return the same set. */ public List<BoundEndpoint> getBoundEndpoints() { Module m = getContainer().getSPI(Module.class); return m != null ? m.getBoundEndpoints() : null; }
@NotNull @Override public URI getAddress() { WebModule webModule = endpoint.getContainer().getSPI(WebModule.class); if(webModule==null) { throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class); } return getAddress(webModule.getContextPath()); }
@NotNull @Override public URI getAddress() { WebModule webModule = endpoint.getContainer().getSPI(WebModule.class); if(webModule==null) { throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class); } return getAddress(webModule.getContextPath()); }
@Override public @NotNull URI getAddress() { WebModule webModule = endpoint.getContainer().getSPI(WebModule.class); if(webModule==null) // this is really a bug in the container implementation throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class); return getAddress(webModule.getContextPath()); }
@Override public @NotNull URI getAddress() { WebModule webModule = endpoint.getContainer().getSPI(WebModule.class); if(webModule==null) // this is really a bug in the container implementation throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class); return getAddress(webModule.getContextPath()); }
@ManagedAttribute @Description("Container") public @NotNull Container container() { return endpoint.getContainer(); }
@ManagedAttribute @Description("Container") public @NotNull Container container() { return endpoint.getContainer(); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { Set<Component> componentRegistry = getComponents(); if (componentRegistry != null) { for (Component c : componentRegistry) { S s = c.getSPI(spiType); if (s != null) return s; } } return getContainer().getSPI(spiType); }
public @Nullable <S> S getSPI(@NotNull Class<S> spiType) { Set<Component> componentRegistry = getComponents(); if (componentRegistry != null) { for (Component c : componentRegistry) { S s = c.getSPI(spiType); if (s != null) return s; } } return getContainer().getSPI(spiType); }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that does the monitoring of the invocation for a * container */ public @NotNull Tube createMonitoringTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that does the monitoring of the invocation for a * container */ public @NotNull Tube createMonitoringTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createMonitoringPipe(ctxt, PipeAdapter.adapt(next))); } return next; }
/** * Creates a {@link Tube} that adds container specific security */ public @NotNull Tube createSecurityTube(@NotNull Tube next) { ServerPipelineHook hook = endpoint.getContainer().getSPI(ServerPipelineHook.class); if (hook != null) { ServerPipeAssemblerContext ctxt = new ServerPipeAssemblerContext(seiModel, wsdlModel, endpoint, terminal, isSynchronous); return PipeAdapter.adapt(hook.createSecurityPipe(ctxt, PipeAdapter.adapt(next))); } return next; }