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

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

本文整理了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

  1. private URI getBaseUri(final Request request) {
  2. try {
  3. return new URI(request.getScheme(), null, request.getServerName(),
  4. request.getServerPort(), getBasePath(request), null, null);
  5. } catch (final URISyntaxException ex) {
  6. throw new IllegalArgumentException(ex);
  7. }
  8. }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. @Override
  2. public StringBuffer getRequestURL()
  3. {
  4. final StringBuffer url = new StringBuffer(128);
  5. URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  6. url.append(getRequestURI());
  7. return url;
  8. }

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

  1. @Override
  2. public StringBuffer getRequestURL()
  3. {
  4. final StringBuffer url = new StringBuffer(128);
  5. URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  6. url.append(getRequestURI());
  7. return url;
  8. }

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

  1. @Override
  2. public StringBuffer getRequestURL()
  3. {
  4. final StringBuffer url = new StringBuffer(128);
  5. URIUtil.appendSchemeHostPort(url,getScheme(),getServerName(),getServerPort());
  6. url.append(getRequestURI());
  7. return url;
  8. }

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

  1. @Override
  2. public boolean isIntegral(Request request)
  3. {
  4. if (getSslContextFactory() != null)
  5. {
  6. int integralPort = getIntegralPort();
  7. return integralPort == 0 || integralPort == request.getServerPort();
  8. }
  9. return super.isIntegral(request);
  10. }
  11. }

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

  1. @Override
  2. public boolean isConfidential(Request request)
  3. {
  4. if (getSslContextFactory() != null)
  5. {
  6. int confidentialPort = getConfidentialPort();
  7. return confidentialPort == 0 || confidentialPort == request.getServerPort();
  8. }
  9. return super.isConfidential(request);
  10. }

相关文章

Request类方法