本文整理了Java中com.sun.xml.ws.api.server.WSEndpoint.getContainer()
方法的一些代码示例,展示了WSEndpoint.getContainer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSEndpoint.getContainer()
方法的具体详情如下:
包路径:com.sun.xml.ws.api.server.WSEndpoint
类名称:WSEndpoint
方法名:getContainer
[英]Gets the Container object.
The components inside WSEndpoint uses this reference to communicate with the hosting environment.
[中]获取容器对象。
WSEndpoint中的组件使用此引用与宿主环境通信。
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint) {
ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class);
if(ri==null)
ri = ResourceInjector.STANDALONE;
return ri;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
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);
}
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private ResourceInjector getResourceInjector(WSEndpoint endpoint) {
ResourceInjector ri = endpoint.getContainer().getSPI(ResourceInjector.class);
if(ri==null)
ri = ResourceInjector.STANDALONE;
return ri;
}
代码示例来源:origin: com.sun.xml.ws/rt
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);
}
}
代码示例来源:origin: org.fabric3/fabric3-binding-ws-metro
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);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
/**
* Gets the list of {@link BoundEndpoint} that are associated
* with this endpoint.
*
* @return
* always return the same set.
*/
public List
Module m = getContainer().getSPI(Module.class);
return m != null ? m.getBoundEndpoints() : null;
}
代码示例来源:origin: com.sun.xml.ws/rt
/**
* Gets the list of {@link BoundEndpoint} that are associated
* with this endpoint.
*
* @return
* always return the same set.
*/
public List
Module m = getContainer().getSPI(Module.class);
return m != null ? m.getBoundEndpoints() : null;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@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());
}
代码示例来源:origin: javaee/metro-jax-ws
@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());
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@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());
}
代码示例来源:origin: com.sun.xml.ws/rt
@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());
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
@ManagedAttribute
@Description("Container")
public @NotNull Container container() {
return endpoint.getContainer();
}
代码示例来源:origin: com.sun.xml.ws/rt
@ManagedAttribute
@Description("Container")
public @NotNull Container container() {
return endpoint.getContainer();
}
代码示例来源:origin: com.sun.xml.ws/rt
public @Nullable
S getSPI(@NotNull Class spiType) {
Set
if (componentRegistry != null) {
for (Component c : componentRegistry) {
S s = c.getSPI(spiType);
if (s != null)
return s;
}
}
return getContainer().getSPI(spiType);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
public @Nullable
S getSPI(@NotNull Class spiType) {
Set
if (componentRegistry != null) {
for (Component c : componentRegistry) {
S s = c.getSPI(spiType);
if (s != null)
return s;
}
}
return getContainer().getSPI(spiType);
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
/**
* 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;
}
代码示例来源:origin: com.sun.xml.ws/rt
/**
* 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;
}
代码示例来源:origin: javaee/metro-jax-ws
/**
* 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;
}
代码示例来源:origin: com.sun.xml.ws/jaxws-rt
/**
* 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;
}
代码示例来源:origin: com.sun.xml.ws/rt
/**
* 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;
}