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

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

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

Connector.setProtocolHandlerClassName介绍

[英]Set the class name of the Coyote protocol handler which will be used by the connector.
[中]设置连接器将使用的Coyote协议处理程序的类名。

代码示例

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Set the Coyote protocol which will be used by the connector.
 *
 * @param protocol The Coyote protocol name
 */
public void setProtocol(String protocol) {
  if (protocol.equals("HTTP/1.1")) {
    setProtocolHandlerClassName
      ("org.glassfish.grizzly.tcp.http11.Http11Protocol");
  } else if (protocol.equals("AJP/1.3")) {
    setProtocolHandlerClassName
      ("org.apache.jk.server.JkCoyoteHandler");
  } else {
    setProtocolHandlerClassName(null);
  }
}

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11NioProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpNioProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.jk.server.JkCoyoteHandler");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

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

setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
} else if ("AJP/1.3".equals(protocol) || "ajp".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpAprProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);
} else {
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11AprProtocol");
  setProtocolHandlerClassName
    ("org.apache.coyote.http11.Http11Protocol");
} else if ("AJP/1.3".equals(protocol) || "ajp".equals(protocol)) {
  setProtocolHandlerClassName
    ("org.apache.coyote.ajp.AjpProtocol");
} else if (protocol != null) {
  setProtocolHandlerClassName(protocol);

相关文章

Connector类方法