本文整理了Java中org.restlet.Response.redirectTemporary
方法的一些代码示例,展示了Response.redirectTemporary
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.redirectTemporary
方法的具体详情如下:
包路径:org.restlet.Response
类名称:Response
方法名:redirectTemporary
[英]Temporarily redirects the client to a target URI. The client is expected to reuse the same method for the new request.
If you pass a relative target URI, it will be resolved with the current base reference of the request's resource reference (see Request#getResourceRef() and Reference#getBaseRef().
[中]临时将客户端重定向到目标URI。客户机应该对新请求重用相同的方法。
如果传递相对目标URI,它将使用请求的资源引用的当前基引用进行解析(请参见请求#getResourceRef()和引用#getBaseRef()。
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Temporarily redirects the client to a target URI. The client is expected
* to reuse the same method for the new request.
*
* @param targetUri
* The target URI.
*/
@Override
public void redirectTemporary(String targetUri) {
getWrappedResponse().redirectTemporary(targetUri);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Temporarily redirects the client to a target URI. The client is expected
* to reuse the same method for the new request.
*
* @param targetRef
* The target reference.
*/
@Override
public void redirectTemporary(Reference targetRef) {
getWrappedResponse().redirectTemporary(targetRef);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Temporarily redirects the client to a target URI. The client is expected
* to reuse the same method for the new request.
*
* @param targetRef
* The target reference.
*/
public void redirectTemporary(Reference targetRef) {
if (getResponse() != null) {
getResponse().redirectTemporary(targetRef);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Temporarily redirects the client to a target URI. The client is expected
* to reuse the same method for the new request.<br>
* <br>
* If you pass a relative target URI, it will be resolved with the current
* base reference of the request's resource reference (see {@link Request#getResourceRef()} and
* {@link Reference#getBaseRef()}.
*
* @param targetUri
* The target URI.
*/
public void redirectTemporary(String targetUri) {
if (getResponse() != null) {
getResponse().redirectTemporary(targetUri);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet.ext.oauth
getLogger().fine("Redirecting to : " + redirRef.toUri());
response.setCacheDirectives(no);
response.redirectTemporary(redirRef);
getLogger().fine("After Redirecting to : " + redirRef.toUri());
return STOP;
代码示例来源:origin: org.restlet.osgi/org.restlet
response.redirectTemporary(targetRef);
break;
内容来源于网络,如有侵权,请联系作者删除!