本文整理了Java中org.restlet.data.Reference.getHostPort
方法的一些代码示例,展示了Reference.getHostPort
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.getHostPort
方法的具体详情如下:
包路径:org.restlet.data.Reference
类名称:Reference
方法名:getHostPort
[英]Returns the optional port number for server based hierarchical identifiers.
[中]返回基于服务器的分层标识符的可选端口号。
代码示例来源:origin: org.restlet/org.restlet
final int hostPort = getHostPort();
if (hostPort != -1) {
final int defaultPort = Protocol.valueOf(getScheme())
代码示例来源:origin: org.restlet.osgi/org.restlet
final int hostPort = getHostPort();
if (hostPort != -1) {
final int defaultPort = Protocol.valueOf(getScheme())
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
final int hostPort = getHostPort();
if (hostPort != -1) {
final int defaultPort = Protocol.valueOf(getScheme())
代码示例来源:origin: org.metaeffekt.dcc/dcc-agent-core
if (httpRequest.getHostRef() != null) {
String host = httpRequest.getHostRef().getHostDomain();
int port = httpRequest.getHostRef().getHostPort();
String protocol = "http";
if (httpRequest.getHostRef().getSchemeProtocol() != null) {
代码示例来源:origin: org.restlet.jee/org.restlet.ext.wadl
final String hostPort = Integer.toString(this.baseRef.getHostPort());
final String hostScheme = this.baseRef.getScheme();
代码示例来源:origin: org.restlet.jse/org.restlet.ext.platform
baseRef.getHostPort(), baseRef.getSchemeProtocol()
.getSchemeName(), baseRef.getPath(), scheme);
definition.getEndpoints().add(endpoint);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform
baseRef.getHostPort(), baseRef.getSchemeProtocol()
.getSchemeName(), baseRef.getPath(), scheme);
definition.getEndpoints().add(endpoint);
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform
baseRef.getHostPort(), baseRef.getSchemeProtocol()
.getSchemeName(), baseRef.getPath(), scheme);
definition.getEndpoints().add(endpoint);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark
baseRef.getHostPort(), baseRef.getSchemeProtocol()
.getSchemeName(), baseRef.getPath(), scheme);
definition.getEndpoints().add(endpoint);
代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform
baseRef.getHostPort(), baseRef.getSchemeProtocol()
.getSchemeName(), baseRef.getPath(), scheme);
definition.getEndpoints().add(endpoint);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
/**
* @param ref
* @param b
* @return
* @throws IllegalArgumentException
*/
private UriBuilder fillUriBuilder(Reference ref, final UriBuilder b)
throws IllegalArgumentException {
b.scheme(ref.getScheme(false));
b.userInfo(ref.getUserInfo(false));
b.host(ref.getHostDomain(false));
b.port(ref.getHostPort());
b.path(ref.getPath(false));
b.replaceQuery(ref.getQuery(false));
b.fragment(ref.getFragment(false));
return b;
}
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform
ref.getHostPort(), ref.getSchemeProtocol()
.getSchemeName(), ref.getPath(),
challengeScheme);
代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform
ref.getHostPort(), ref.getSchemeProtocol()
.getSchemeName(), ref.getPath(),
challengeScheme);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark
ref.getHostPort(), ref.getSchemeProtocol()
.getSchemeName(), ref.getPath(),
challengeScheme);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform
ref.getHostPort(), ref.getSchemeProtocol()
.getSchemeName(), ref.getPath(),
challengeScheme);
代码示例来源:origin: org.restlet.jse/org.restlet.ext.platform
ref.getHostPort(), ref.getSchemeProtocol()
.getSchemeName(), ref.getPath(),
challengeScheme);
代码示例来源:origin: org.restlet.jee/org.restlet.ext.wadl
int port = getBaseRef().getHostPort();
boolean exists = false;
代码示例来源:origin: org.restlet.osgi/org.restlet
int basePortValue = request.getHostRef().getHostPort();
int resourcePortValue = request.getResourceRef().getHostPort();
代码示例来源:origin: org.restlet.osgi/org.restlet
int hostRefPortValue = hostRef.getHostPort();
内容来源于网络,如有侵权,请联系作者删除!