org.apache.catalina.connector.Connector.setProtocol()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(259)

本文整理了Java中org.apache.catalina.connector.Connector.setProtocol()方法的一些代码示例,展示了Connector.setProtocol()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connector.setProtocol()方法的具体详情如下:
包路径:org.apache.catalina.connector.Connector
类名称:Connector
方法名:setProtocol

Connector.setProtocol介绍

[英]Set the Coyote protocol which will be used by the connector.
[中]设置连接器将使用的Coyote协议。

代码示例

代码示例来源:origin: apache/incubator-dubbo

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: apache/incubator-dubbo

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: org.jboss.web/jbossweb

public Connector(String protocol)
  throws Exception {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    throw MESSAGES.protocolHandlerInstantiationFailed(e);
  }
}

代码示例来源:origin: jboss.web/jbossweb

public Connector(String protocol)
  throws Exception {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error
      (sm.getString
       ("coyoteConnector.protocolHandlerInstantiationFailed", e));
  }
}

代码示例来源:origin: tomcat/catalina

public Connector(String protocol) 
  throws Exception {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error
      (sm.getString
       ("coyoteConnector.protocolHandlerInstantiationFailed", e));
  }
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error(sm.getString(
        "coyoteConnector.protocolHandlerInstantiationFailed"), e);
  }
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error
      (sm.getString
       ("coyoteConnector.protocolHandlerInstantiationFailed", e));
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error(sm.getString(
        "coyoteConnector.protocolHandlerInstantiationFailed"), e);
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error
      (sm.getString
       ("coyoteConnector.protocolHandlerInstantiationFailed", e));
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    this.protocolHandler = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error
      (sm.getString
       ("coyoteConnector.protocolHandlerInstantiationFailed", e));
  }
}

代码示例来源:origin: codefollower/Tomcat-Research

public Connector(String protocol) {
  setProtocol(protocol);
  // Instantiate protocol handler
  ProtocolHandler p = null;
  try {
    Class<?> clazz = Class.forName(protocolHandlerClassName);
    p = (ProtocolHandler) clazz.newInstance();
  } catch (Exception e) {
    log.error(sm.getString(
        "coyoteConnector.protocolHandlerInstantiationFailed"), e);
  } finally {
    this.protocolHandler = p;
  }
  if (!Globals.STRICT_SERVLET_COMPLIANCE) {
    URIEncoding = "UTF-8";
    URIEncodingLower = URIEncoding.toLowerCase(Locale.ENGLISH);
  }
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

connector.setProtocol(isAjp ? "AJP/1.3" : "HTTP/1.1");
connector.setSecure(isSSL);
connector.setScheme(isSSL ? "https" : "http");

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

connector.setProtocol(isAjp ? "AJP/1.3" : "HTTP/1.1");
connector.setSecure(isSSL);
connector.setScheme(isSSL ? "https" : "http");

代码示例来源:origin: codefollower/Tomcat-Research

connector.setProtocol(isAjp ? "AJP/1.3" : "HTTP/1.1");
connector.setSecure(isSSL);
connector.setScheme(isSSL ? "https" : "http");

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

connector.setProtocol(isAjp ? "AJP/1.3" : "HTTP/1.1");
connector.setSecure(isSSL);
connector.setScheme(isSSL ? "https" : "http");

代码示例来源:origin: org.apache.dubbo/dubbo

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: remoting/dubbox

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: com.alibaba/dubbo

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: com.alibaba/dubbo-remoting-http

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

代码示例来源:origin: org.apache.dubbo/dubbo-remoting-http

tomcat.getConnector().setProtocol("org.apache.coyote.http11.Http11NioProtocol");

相关文章

Connector类方法