hudson.model.AbstractItem.getShortUrl()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中hudson.model.AbstractItem.getShortUrl()方法的一些代码示例,展示了AbstractItem.getShortUrl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractItem.getShortUrl()方法的具体详情如下:
包路径:hudson.model.AbstractItem
类名称:AbstractItem
方法名:getShortUrl

AbstractItem.getShortUrl介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/jenkins

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: jenkinsci/jenkins

public final String getUrl() {
  String shortUrl = getShortUrl();
  String uri = req == null ? null : req.getRequestURI();
  if (req != null) {

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: hudson/hudson-2.x

public String getSearchUrl() {
  return getShortUrl();
}

代码示例来源:origin: hudson/hudson-2.x

public final String getUrl() {
  // try to stick to the current view if possible
  StaplerRequest req = Stapler.getCurrentRequest();
  if (req != null) {
    String seed = Functions.getNearestAncestorUrl(req,this);
    if(seed!=null) {
      // trim off the context path portion and leading '/', but add trailing '/'
      return seed.substring(req.getContextPath().length()+1)+'/';
    }
  }
  // otherwise compute the path normally
  return getParent().getUrl()+getShortUrl();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

public final String getUrl() {
  // try to stick to the current view if possible
  StaplerRequest req = Stapler.getCurrentRequest();
  if (req != null) {
    String seed = Functions.getNearestAncestorUrl(req,this);
    if(seed!=null) {
      // trim off the context path portion and leading '/', but add trailing '/'
      return seed.substring(req.getContextPath().length()+1)+'/';
    }
  }
  // otherwise compute the path normally
  return getParent().getUrl()+getShortUrl();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

public final String getUrl() {
  // try to stick to the current view if possible
  StaplerRequest req = Stapler.getCurrentRequest();
  if (req != null) {
    String seed = Functions.getNearestAncestorUrl(req,this);
    if(seed!=null) {
      // trim off the context path portion and leading '/', but add trailing '/'
      return seed.substring(req.getContextPath().length()+1)+'/';
    }
  }
  // otherwise compute the path normally
  return getParent().getUrl()+getShortUrl();
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

public final String getUrl() {
  // try to stick to the current view if possible
  StaplerRequest req = Stapler.getCurrentRequest();
  if (req != null) {
    String seed = Functions.getNearestAncestorUrl(req, this);
    if (seed != null) {
      // trim off the context path portion and leading '/', but add trailing '/'
      return seed.substring(Functions.getRequestRootPath(req).length() + 1) + '/';
    }
  }
  // otherwise compute the path normally
  return getParent().getUrl() + getShortUrl();
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

public final String getUrl() {
  String shortUrl = getShortUrl();
  String uri = req == null ? null : req.getRequestURI();
  if (req != null) {

相关文章