org.eclipse.jetty.server.Request.getServerPort()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(9.9k)|赞(0)|评价(0)|浏览(85)

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

Request.getServerPort介绍

暂无

代码示例

代码示例来源:origin: jersey/jersey

private URI getBaseUri(final Request request) {
  try {
    return new URI(request.getScheme(), null, request.getServerName(),
        request.getServerPort(), getBasePath(request), null, null);
  } catch (final URISyntaxException ex) {
    throw new IllegalArgumentException(ex);
  }
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * By default, we're confidential, given we speak SSL. But, if we've been told about an
 * confidential port, and said port is not our port, then we're not. This allows separation of
 * listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener
 * configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort = getConfidentialPort();
  return confidentialPort == 0 || confidentialPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty/server

/**
 * By default, we're integral, given we speak SSL. But, if we've been told about an integral
 * port, and said port is not our port, then we're not. This allows separation of listeners
 * providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to
 * require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring
 * client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort = getIntegralPort();
  return integralPort == 0 || integralPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * By default, we're confidential, given we speak SSL. But, if we've been told about an
 * confidential port, and said port is not our port, then we're not. This allows separation of
 * listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener
 * configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort = getConfidentialPort();
  return confidentialPort == 0 || confidentialPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * By default, we're integral, given we speak SSL. But, if we've been told about an integral
 * port, and said port is not our port, then we're not. This allows separation of listeners
 * providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to
 * require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring
 * client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort = getIntegralPort();
  return integralPort == 0 || integralPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * By default, we're confidential, given we speak SSL. But, if we've been
 * told about an confidential port, and said port is not our port, then
 * we're not. This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort=getConfidentialPort();
  return confidentialPort==0||confidentialPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * By default, we're integral, given we speak SSL. But, if we've been told
 * about an integral port, and said port is not our port, then we're not.
 * This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort=getIntegralPort();
  return integralPort==0||integralPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

/**
 * By default, we're confidential, given we speak SSL. But, if we've been
 * told about an confidential port, and said port is not our port, then
 * we're not. This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort=getConfidentialPort();
  return confidentialPort==0||confidentialPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

/**
 * By default, we're integral, given we speak SSL. But, if we've been told about an integral
 * port, and said port is not our port, then we're not. This allows separation of listeners
 * providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to
 * require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring
 * client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort = getIntegralPort();
  return integralPort == 0 || integralPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * By default, we're integral, given we speak SSL. But, if we've been told
 * about an integral port, and said port is not our port, then we're not.
 * This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort=getIntegralPort();
  return integralPort==0||integralPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

/**
 * By default, we're confidential, given we speak SSL. But, if we've been
 * told about an confidential port, and said port is not our port, then
 * we're not. This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort=getConfidentialPort();
  return confidentialPort==0||confidentialPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * By default, we're confidential, given we speak SSL. But, if we've been told about an
 * confidential port, and said port is not our port, then we're not. This allows separation of
 * listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener
 * configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort = getConfidentialPort();
  return confidentialPort == 0 || confidentialPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

/**
 * By default, we're integral, given we speak SSL. But, if we've been told about an integral
 * port, and said port is not our port, then we're not. This allows separation of listeners
 * providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to
 * require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring
 * client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort = getIntegralPort();
  return integralPort == 0 || integralPort == request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty/server

/**
 * By default, we're integral, given we speak SSL. But, if we've been told
 * about an integral port, and said port is not our port, then we're not.
 * This allows separation of listeners providing INTEGRAL versus
 * CONFIDENTIAL constraints, such as one SSL listener configured to require
 * client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isIntegral(Request request)
{
  final int integralPort=getIntegralPort();
  return integralPort==0||integralPort==request.getServerPort();
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

/**
 * By default, we're confidential, given we speak SSL. But, if we've been told about an
 * confidential port, and said port is not our port, then we're not. This allows separation of
 * listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener
 * configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not
 * requiring client certs providing mere INTEGRAL constraints.
 */
@Override
public boolean isConfidential(Request request)
{
  final int confidentialPort = getConfidentialPort();
  return confidentialPort == 0 || confidentialPort == request.getServerPort();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public StringBuffer getRequestURL()
{
  final StringBuffer url = new StringBuffer(128);
  URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  url.append(getRequestURI());
  return url;
}

代码示例来源:origin: jenkinsci/winstone

@Override
public StringBuffer getRequestURL()
{
  final StringBuffer url = new StringBuffer(128);
  URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  url.append(getRequestURI());
  return url;
}

代码示例来源:origin: Nextdoor/bender

@Override
public StringBuffer getRequestURL()
{
  final StringBuffer url = new StringBuffer(128);
  URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  url.append(getRequestURI());
  return url;
}

代码示例来源:origin: org.eclipse.jetty.spdy/spdy-jetty-http

@Override
  public boolean isIntegral(Request request)
  {
    if (getSslContextFactory() != null)
    {
      int integralPort = getIntegralPort();
      return integralPort == 0 || integralPort == request.getServerPort();
    }
    return super.isIntegral(request);
  }
}

代码示例来源:origin: org.eclipse.jetty.spdy/spdy-jetty-http

@Override
public boolean isConfidential(Request request)
{
  if (getSslContextFactory() != null)
  {
    int confidentialPort = getConfidentialPort();
    return confidentialPort == 0 || confidentialPort == request.getServerPort();
  }
  return super.isConfidential(request);
}

相关文章

微信公众号

最新文章

更多

Request类方法