本文整理了Java中org.apache.catalina.Service.removeConnector()
方法的一些代码示例,展示了Service.removeConnector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.removeConnector()
方法的具体详情如下:
包路径:org.apache.catalina.Service
类名称:Service
方法名:removeConnector
[英]Remove the specified Connector from the set associated from this Service. The removed Connector will also be disassociated from our Container.
[中]从与此服务关联的集合中删除指定的连接器。拆下的连接器也将与我们的容器分离。
代码示例来源:origin: org.springframework.boot/spring-boot
private void removeServiceConnectors() {
for (Service service : this.tomcat.getServer().findServices()) {
Connector[] connectors = service.findConnectors().clone();
this.serviceConnectors.put(service, connectors);
for (Connector connector : connectors) {
service.removeConnector(connector);
}
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
public void removeConnector(Connector connector) {
embedded.removeConnector(connector);
}
代码示例来源:origin: org.glassfish.main.web/web-core
public void destroy() throws Exception {
if( oname!=null && controller==oname ) {
if (log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "Unregister itself " + oname );
}
}
if( getService() == null)
return;
getService().removeConnector(this);
}
代码示例来源:origin: tomcat/catalina
public void destroy() throws Exception {
if( oname!=null && controller==oname ) {
if(log.isDebugEnabled())
log.debug("Unregister itself " + oname );
Registry.getRegistry(null, null).unregisterComponent(oname);
}
if( getService() == null)
return;
getService().removeConnector(this);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: tomcat/catalina
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: codefollower/Tomcat-Research
service.removeConnector(conns[i]);
conns[i].destroy();
break;
service.removeConnector(conns[i]);
conns[i].destroy();
break;
代码示例来源:origin: jboss.web/jbossweb
public void destroy() throws Exception {
if( oname!=null && controller==oname ) {
if(log.isDebugEnabled())
log.debug("Unregister itself " + oname );
Registry.getRegistry(null, null).unregisterComponent(oname);
}
if( getService() == null)
return;
getService().removeConnector(this);
}
代码示例来源:origin: org.jboss.web/jbossweb
public void destroy() throws Exception {
if (org.apache.tomcat.util.Constants.ENABLE_MODELER) {
if( oname!=null && controller==oname ) {
Registry.getRegistry(null, null).unregisterComponent(oname);
}
}
if( getService() == null)
return;
getService().removeConnector(this);
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
protected void destroyInternal() throws LifecycleException {
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
protected void destroyInternal() throws LifecycleException {
try {
if (protocolHandler != null) {
protocolHandler.destroy();
}
} catch (Exception e) {
throw new LifecycleException(
sm.getString("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
protected void destroyInternal() throws LifecycleException {
try {
if (protocolHandler != null) {
protocolHandler.destroy();
}
} catch (Exception e) {
throw new LifecycleException(
sm.getString("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
@Override
protected void destroyInternal() throws LifecycleException {
mapperListener.destroy();
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
@Override
protected void destroyInternal() throws LifecycleException {
mapperListener.destroy();
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
@Override
protected void destroyInternal() throws LifecycleException {
mapperListener.destroy();
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
@Override
protected void destroyInternal() throws LifecycleException {
mapperListener.destroy();
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
@Override
protected void destroyInternal() throws LifecycleException {
mapperListener.destroy();
try {
protocolHandler.destroy();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
getService().removeConnector(this);
}
super.destroyInternal();
}
内容来源于网络,如有侵权,请联系作者删除!