private int doMkCol( String url ) throws IOException { Repository repo = getRepository(); HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost ); if ( getCredentialsProvider().getCredentials( targetScope ) != null ) { BasicScheme targetAuth = new BasicScheme(); getAuthCache().put( targetHost, targetAuth ); } HttpMkcol method = new HttpMkcol( url ); try ( CloseableHttpResponse closeableHttpResponse = execute( method ) ) { return closeableHttpResponse.getStatusLine().getStatusCode(); } catch ( HttpException e ) { throw new IOException( e.getMessage(), e ); } finally { if ( method != null ) { method.releaseConnection(); } } }
private int doMkCol( String url ) throws IOException { Repository repo = getRepository(); HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost ); if ( getCredentialsProvider().getCredentials( targetScope ) != null ) { BasicScheme targetAuth = new BasicScheme(); getAuthCache().put( targetHost, targetAuth ); } HttpMkcol method = new HttpMkcol( url ); try ( CloseableHttpResponse closeableHttpResponse = execute( method ) ) { return closeableHttpResponse.getStatusLine().getStatusCode(); } catch ( HttpException e ) { throw new IOException( e.getMessage(), e ); } finally { if ( method != null ) { method.releaseConnection(); } } }
HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost );
HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost );
int port = getRepository().getPort();
int port = getRepository().getPort();
HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost );
HttpHost targetHost = new HttpHost( repo.getHost(), repo.getPort(), repo.getProtocol() ); AuthScope targetScope = getBasicAuthScope().getScope( targetHost );