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

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

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

Connector.getEnableLookups介绍

[英]Return the "enable DNS lookups" flag.
[中]返回“启用DNS查找”标志。

代码示例

代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat

public boolean isHostLookupEnabled() {
  return connector.getEnableLookups();
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6

public boolean getEnableLookups() {
  return connector.getEnableLookups();
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*      */   public String getRemoteHost()
/*      */   {
/* 1181 */     if (this.remoteHost == null) {
/* 1182 */       if (!this.connector.getEnableLookups()) {
/* 1183 */         this.remoteHost = getRemoteAddr();
/*      */       } else {
/* 1185 */         this.coyoteRequest.action(ActionCode.ACTION_REQ_HOST_ATTRIBUTE, this.coyoteRequest);
/*      */ 
/* 1187 */         this.remoteHost = this.coyoteRequest.remoteHost().toString();
/*      */       }
/*      */     }
/* 1190 */     return this.remoteHost;
/*      */   }
/*      */

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * @return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * @return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.ACTION_REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.ACTION_REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.ACTION_REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

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

/**
 * Return the remote host name making this Request.
 */
@Override
public String getRemoteHost() {
  if (remoteHost == null) {
    if (!connector.getEnableLookups()) {
      remoteHost = getRemoteAddr();
    } else {
      coyoteRequest.action
        (ActionCode.REQ_HOST_ATTRIBUTE, coyoteRequest);
      remoteHost = coyoteRequest.remoteHost().toString();
    }
  }
  return remoteHost;
}

相关文章

Connector类方法