本文整理了Java中org.restlet.Request.getReferrerRef
方法的一些代码示例,展示了Request.getReferrerRef
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getReferrerRef
方法的具体详情如下:
包路径:org.restlet.Request
类名称:Request
方法名:getReferrerRef
[英]Returns the referrer reference if available. Note that when used with HTTP connectors, this property maps to the "Referer" header.
[中]返回推荐人引用(如果可用)。请注意,当与HTTP连接器一起使用时,此属性映射到“Referer”头。
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the referrer reference if available.
*
* @return The referrer reference.
*/
@Override
public Reference getReferrerRef() {
return getWrappedRequest().getReferrerRef();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the referrer reference if available.
*
* @return The referrer reference.
*/
public Reference getReferrerRef() {
return getRequest() == null ? null : getRequest().getReferrerRef();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the referrer reference if available.
*
* @return The referrer reference.
*/
@Override
public Reference getReferrerRef() {
if (!this.referrerAdded) {
final String referrerValue = getHttpCall().getRequestHeaders()
.getValues(HeaderConstants.HEADER_REFERRER);
if (referrerValue != null) {
setReferrerRef(new Reference(referrerValue));
}
this.referrerAdded = true;
}
return super.getReferrerRef();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
sb.append((request.getReferrerRef() == null) ? "-" : request
.getReferrerRef().getIdentifier());
代码示例来源:origin: com.github.ansell.oas/oas-webservice-impl
if(this.getRequest().getReferrerRef() != null)
referrerRef = this.getRequest().getReferrerRef().toString(true, true);
final Reference referrerRef = this.getRequest().getReferrerRef();
代码示例来源:origin: org.restlet.osgi/org.restlet
return getReferenceContent(variableName.substring(1), this.request.getRootRef());
} else if (variableName.startsWith("f")) {
return getReferenceContent(variableName.substring(1), this.request.getReferrerRef());
} else if (variableName.startsWith("h")) {
return getReferenceContent(variableName.substring(1), this.request.getHostRef());
代码示例来源:origin: org.restlet.osgi/org.restlet
this.referrerRef = (request.getReferrerRef() == null) ? null
: new Reference(request.getReferrerRef());
this.rootRef = (request.getRootRef() == null) ? null : request
.getRootRef();
代码示例来源:origin: org.restlet.osgi/org.restlet
if (request.getReferrerRef() != null) {
addHeader(HEADER_REFERRER, request.getReferrerRef().toString(), headers);
内容来源于网络,如有侵权,请联系作者删除!