本文整理了Java中org.restlet.Request.getOriginalRef
方法的一些代码示例,展示了Request.getOriginalRef
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getOriginalRef
方法的具体详情如下:
包路径:org.restlet.Request
类名称:Request
方法名:getOriginalRef
[英]Returns the original reference as requested by the client. Note that this property is not used during request routing. See the #getResourceRef() method for details.
[中]返回客户端请求的原始引用。请注意,在请求路由期间不使用此属性。有关详细信息,请参见#getResourceRef()方法。
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public Reference getOriginalRef() {
return wrappedRequest.getOriginalRef();
}
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.oauth
private String getAccessTokenFromQuery(Request request) {
// Try to find token in URI query
Form params = request.getOriginalRef().getQueryAsForm();
String token = params.getFirstValue(OAuthServerResource.ACCESS_TOKEN);
if (token != null && !token.isEmpty()) {
logger.fine("Found Bearer Token in URI query.");
return token;
}
return null;
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the original reference as requested by the client. Note that this
* property is not used during request routing.
*
* @return The original reference.
* @see Request#getOriginalRef()
*/
public Reference getOriginalRef() {
return getRequest() == null ? null : getRequest().getOriginalRef();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Returns the original reference as requested by the client. Note that this
* property is not used during request routing.
*
* @return The original reference.
* @see Request#getOriginalRef()
*/
public static Reference getOriginalRef() {
return getRequest() == null ? null : getRequest().getOriginalRef();
}
代码示例来源:origin: com.github.ansell.oas/oas-webservice-impl
dataModel.put("isAdmin", isAdmin);
dataModel.put("currentUser", nextClientInfo.getUser());
dataModel.put("pageUrl", nextRequest.getOriginalRef().toString(false, false));
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
"The request reference must contains a baseRef");
final Reference referenceOriginal = request.getOriginalRef();
if (referenceOriginal == null) {
throw new IllegalArgumentException(
代码示例来源:origin: org.metaeffekt.dcc/dcc-agent-core
inMessage.setHeader(Exchange.HTTP_URI, httpRequest.getOriginalRef().getPath());
代码示例来源:origin: org.restlet.osgi/org.restlet
this.fileContent.setLocationRef(getRequest().getOriginalRef());
} else {
this.fileContent.setLocationRef(getReference());
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.oauth
Form params = new Form(request.getOriginalRef().getQuery());
getLogger().fine("Incomming request query = " + params);
代码示例来源:origin: apache/attic-polygene-java
Reference hostRef = parameters.request().get().getOriginalRef();
代码示例来源:origin: stackoverflow.com
.getOriginalRef().toString());
response.redirectTemporary(loginUrl);
return false;
代码示例来源:origin: apache/attic-polygene-java
if( getRequest().getOriginalRef().getLastSegment().equals( "sparqlhtml.xsl" ) )
代码示例来源:origin: org.restlet.osgi/org.restlet
this.originalRef = (request.getOriginalRef() == null) ? null
: new Reference(request.getOriginalRef());
this.onResponse = request.getOnResponse();
this.proxyChallengeResponse = request.getProxyChallengeResponse();
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.oauth
ref.addQueryParameter("continue", getRequest().getOriginalRef()
.toString(true, false)); // XXX: Don't need full query.
redirectTemporary(ref.toString());
内容来源于网络,如有侵权,请联系作者删除!