作者:xinweiss | 来源:互联网 | 2023-07-22 22:19
本文整理了Java中java.net.HttpRetryException.getLocation()
方法的一些代码示例,展示了HttpRetryException.getLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRetryException.getLocation()
方法的具体详情如下:
包路径:java.net.HttpRetryException
类名称:HttpRetryException
方法名:getLocation
HttpRetryException.getLocation介绍
[英]Gets the location value.
[中]获取位置值。
代码示例
代码示例来源:origin: jenkinsci/jenkins
if(e.getLocation()!=null) {
location = new URL(e.getLocation());
continue;
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
case HttpURLConnection.HTTP_SEE_OTHER: // 303
case 307:
msg += " that returned location header '" + e.getLocation() + "'";
break;
case HttpURLConnection.HTTP_UNAUTHORIZED: // 401
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
if(e.getLocation()!=null) {
location = e.getLocation();
continue;
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
if(e.getLocation()!=null) {
location = e.getLocation();
continue;
代码示例来源:origin: hudson/hudson-2.x
if(e.getLocation()!=null) {
location = e.getLocation();
continue;
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if(e.getLocation()!=null) {
location = new URL(e.getLocation());
continue;
代码示例来源:origin: org.eclipse.hudson/hudson-core
if (e.getLocation() != null) {
location = e.getLocation();
continue;
代码示例来源:origin: apache/cxf
case HttpURLConnection.HTTP_SEE_OTHER: // 303
case 307:
msg += " that returned location header '" + e.getLocation() + "'";
break;
case HttpURLConnection.HTTP_UNAUTHORIZED: // 401
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
case HttpURLConnection.HTTP_SEE_OTHER: // 303
case 307:
msg += " that returned location header '" + e.getLocation() + "'";
break;
case HttpURLConnection.HTTP_UNAUTHORIZED: // 401