本文整理了Java中org.apache.catalina.connector.Connector.initialize()
方法的一些代码示例,展示了Connector.initialize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connector.initialize()
方法的具体详情如下:
包路径:org.apache.catalina.connector.Connector
类名称:Connector
方法名:initialize
[英]Initialize this connector (create ServerSocket here!)
[中]初始化此连接器(在此处创建ServerSocket!)
代码示例来源:origin: tomcat/catalina
initialize();
代码示例来源:origin: org.glassfish.web/web-glue
/**
* Initialize this connector.
*/
@Override
public void initialize() throws LifecycleException {
super.initialize();
// Set the monitoring.
grizzlyMonitor = new GrizzlyConfig(webContainer, domain, getPort());
}
代码示例来源:origin: jboss.web/jbossweb
initialize();
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Begin processing requests via this Connector.
*
* @exception LifecycleException if a fatal startup error occurs
*/
@Override
public void start() throws LifecycleException {
if( !initialized )
initialize();
// Validate and update our current state
if (started) {
if (log.isLoggable(Level.INFO)) {
log.log(Level.INFO, LogFacade.CONNECTOR_BEEN_STARTED);
}
return;
}
lifecycle.fireLifecycleEvent(START_EVENT, null);
started = true;
try {
protocolHandler.start();
} catch (Exception e) {
String msg = MessageFormat.format(rb.getString(LogFacade.PROTOCOL_HANDLER_START_FAILED_EXCEPTION), e);
throw new LifecycleException
(msg);
}
}
代码示例来源:origin: tomcat/catalina
connector.initialize();
} catch (LifecycleException e) {
log.error("Connector.initialize", e);
代码示例来源:origin: jboss.web/jbossweb
connector.initialize();
} catch (LifecycleException e) {
log.error("Connector.initialize", e);
代码示例来源:origin: tomcat/catalina
connectors[i].initialize();
代码示例来源:origin: tomcat/catalina
connectors[i].initialize();
if (connectors[i] instanceof Lifecycle)
((Lifecycle) connectors[i]).start();
代码示例来源:origin: jboss.web/jbossweb
connectors[i].initialize();
if (connectors[i] instanceof Lifecycle)
((Lifecycle) connectors[i]).start();
代码示例来源:origin: tomcat/catalina
initialize();
代码示例来源:origin: jboss.web/jbossweb
connectors[i].initialize();
代码示例来源:origin: jboss.web/jbossweb
initialize();
代码示例来源:origin: org.mobicents.arquillian.container/mss-tomcat-embedded-6
@Override
public void start() throws LifecycleException {
if( log.isInfoEnabled() )
log.info("Starting tomcat server");
// Validate the setup of our required system properties
initDirs();
// Initialize some naming specific properties
initNaming();
// Validate and update our current component state
if (started)
throw new LifecycleException
(sm.getString("embedded.alreadyStarted"));
lifecycle.fireLifecycleEvent(START_EVENT, null);
started = true;
service.initialize();
// Start our defined Engines first
for (int i = 0; i < engines.length; i++) {
if (engines[i] instanceof Lifecycle)
((Lifecycle) engines[i]).start();
}
// Start our defined Connectors second
Connector[] connectors = service.findConnectors();
for (int i = 0; i < connectors.length; i++) {
connectors[i].initialize();
if (connectors[i] instanceof Lifecycle)
((Lifecycle) connectors[i]).start();
}
}
内容来源于网络,如有侵权,请联系作者删除!