spark.Request.port()方法的使用及代码示例

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

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

Request.port介绍

[英]Returns the server port
[中]

代码示例

代码示例来源:origin: perwendel/spark

@Override
public int port() {
  return delegate.port();
}

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

public static RequestContext requestContext(Request req) {
  return new RequestContext(req.scheme(), req.raw().getServerName(), req.port(), req.contextPath());
}

代码示例来源:origin: bwssytems/ha-bridge

String portNumber = Integer.toString(request.port());
String filledTemplate = null;
String bridgeIdMac = HuePublicConfig.createConfig("temp", theSettings.getUpnpConfigAddress(), HueConstants.HUB_VERSION, theSettings.getHubmac()).getSNUUIDFromMac();
filledTemplate = String.format(hueTemplate, theSettings.getUpnpConfigAddress(), portNumber, theSettings.getUpnpConfigAddress(), bridgeIdMac, bridgeIdMac);
if(theSettings.isTraceupnp())
  log.info("Traceupnp: request of description.xml from: " + request.ip() + ":" + request.port() + " filled in with address: " + theSettings.getUpnpConfigAddress() + ":" + portNumber);
else
  log.debug("request of description.xml from: " + request.ip() + ":" + request.port() + " filled in with address: " + theSettings.getUpnpConfigAddress() + ":" + portNumber);

代码示例来源:origin: com.sparkjava/spark-core

@Override
public int port() {
  return delegate.port();
}

代码示例来源:origin: cinchapi/concourse

@Override
public int port() {
  return delegate.port();
}

相关文章