org.apache.tomcat.util.net.URL.getPort()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(106)

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

URL.getPort介绍

[英]Return the port number part of the URL.
[中]返回URL的端口号部分。

代码示例

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

userInfo = context.getUserInfo();
host = context.getHost();
port = context.getPort();
file = context.getFile();
int question = file.lastIndexOf("?");

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

userInfo = context.getUserInfo();
host = context.getHost();
port = context.getPort();
file = context.getFile();
int question = file.lastIndexOf("?");

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

userInfo = context.getUserInfo();
host = context.getHost();
port = context.getPort();
file = context.getFile();
int question = file.lastIndexOf("?");

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

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

/* 1421 */         serverPort = 80;
/* 1423 */     int urlPort = url.getPort();
/* 1424 */     if (urlPort == -1) {
/* 1425 */       if ("https".equals(url.getProtocol()))

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol())) {

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol())) {

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

int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol())) {

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

/**
 * Compare two URLs, excluding the "ref" fields.  Returns <code>true</code>
 * if this <code>URL</code> and the <code>other</code> argument both refer
 * to the same resource.  The two <code>URLs</code> might not both contain
 * the same anchor.
 */
public boolean sameFile(URL other) {
  if (!compare(protocol, other.getProtocol()))
    return (false);
  if (!compare(host, other.getHost()))
    return (false);
  if (port != other.getPort())
    return (false);
  if (!compare(file, other.getFile()))
    return (false);
  return (true);
}

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

serverPort = 80;
int urlPort = url.getPort();
if (urlPort == -1) {
  if ("https".equals(url.getProtocol()))

相关文章