本文整理了Java中hudson.model.Item.getShortUrl()
方法的一些代码示例,展示了Item.getShortUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Item.getShortUrl()
方法的具体详情如下:
包路径:hudson.model.Item
类名称:Item
方法名:getShortUrl
[英]Returns the URL of this item relative to the parent ItemGroup.
[中]返回此项相对于父项组的URL。
代码示例来源:origin: jenkinsci/jenkins
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder
@Override public HttpResponse handle(Item item, ItemGroup<?> destination, AtomicReference<Item> newItem, List<? extends RelocationHandler> chain) throws IOException, InterruptedException {
if (!(destination instanceof DirectlyModifiableTopLevelItemGroup)) {
return chain.isEmpty() ? null : chain.get(0).handle(item, destination, newItem, chain.subList(1, chain.size()));
}
Item result = doMove(item, (DirectlyModifiableTopLevelItemGroup) destination);
newItem.set(result);
// AbstractItem.getUrl does weird magic here which winds up making it redirect to the old location, so inline the correct part of this method.
return HttpResponses.redirectViaContextPath(result.getParent().getUrl() + result.getShortUrl());
}
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
@Override public HttpResponse handle(Item item, ItemGroup<?> destination, AtomicReference<Item> newItem, List<? extends RelocationHandler> chain) throws IOException, InterruptedException {
if (!(destination instanceof DirectlyModifiableTopLevelItemGroup)) {
return chain.isEmpty() ? null : chain.get(0).handle(item, destination, newItem, chain.subList(1, chain.size()));
}
Item result = doMove(item, (DirectlyModifiableTopLevelItemGroup) destination);
newItem.set(result);
// AbstractItem.getUrl does weird magic here which winds up making it redirect to the old location, so inline the correct part of this method.
return HttpResponses.redirectViaContextPath(result.getParent().getUrl() + result.getShortUrl());
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
代码示例来源:origin: hudson/hudson-2.x
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
代码示例来源:origin: org.eclipse.hudson/hudson-core
while (true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl() + url;
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
while(true) {
ItemGroup ig = i.getParent();
url = i.getShortUrl()+url;
内容来源于网络,如有侵权,请联系作者删除!