本文整理了Java中spark.Request.port
方法的一些代码示例,展示了Request.port
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.port
方法的具体详情如下:
包路径:spark.Request
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!