b.setUserInfo(userInfo[0]); return b.build().toString();
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets the URI user info. * * @param username The new URI username. * @param password The new URI password. * @return This object (for method chaining). */ public RestCall userInfo(String username, String password) { uriBuilder.setUserInfo(username, password); return this; }
/** * Sets the URI user info. * * @param userInfo The new URI user info. * @return This object (for method chaining). */ public RestCall userInfo(String userInfo) { uriBuilder.setUserInfo(userInfo); return this; }
/** * Sets the URI user info. * * @param userInfo The new URI user info. * @return This object (for method chaining). */ public RestCall userInfo(String userInfo) { uriBuilder.setUserInfo(userInfo); return this; }
/** * Sets the URI user info. * * @param userInfo The new URI user info. * @return This object (for method chaining). */ public RestCall userInfo(String userInfo) { uriBuilder.setUserInfo(userInfo); return this; }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
/** * Sets the URI user info. * * @param username The new URI username. * @param password The new URI password. * @return This object (for method chaining). */ public RestCall userInfo(String username, String password) { uriBuilder.setUserInfo(username, password); return this; }
/** * Sets the URI user info. * * @param username The new URI username. * @param password The new URI password. * @return This object (for method chaining). */ public RestCall userInfo(String username, String password) { uriBuilder.setUserInfo(username, password); return this; }
/** * Sets URI user info as a combination of username and password. These values are expected to * be unescaped and may contain non ASCII characters. */ public URIBuilder setUserInfo(final String username, final String password) { return setUserInfo(username + ':' + password); }
public HttpBuilder setUserInfo(final String userInfo) { uriBuilder.setUserInfo(userInfo); return this; }
protected static String plainUrl(final String brokerUrl) { try { final URIBuilder u = new URIBuilder(brokerUrl); u.setUserInfo(null); return u.build().toString(); } catch (final URISyntaxException e) { throw new RuntimeException("Failed to clean up broker URL", e); } }
protected static String plainUrl(final String brokerUrl) { try { final URIBuilder u = new URIBuilder(brokerUrl); u.setUserInfo(null); return u.build().toString(); } catch (final URISyntaxException e) { throw new RuntimeException("Failed to clean up broker URL", e); } }
@JsonIgnore public String getAuthBaseUrl() { return buildBaseUri() .get() .setUserInfo(getUsername(), getPassword()) .toString(); }
@JsonIgnore public String getAuthBaseUrl() { return buildBaseUri() .get() .setUserInfo(getUsername(), getPassword()) .toString(); }
private String buildRemoteRepo() { URI remoteRepo = deployConfig.getNexusUrl(); if (remoteRepo != null && deployConfig.isHttpAuthentication()) { URIBuilder builder = new URIBuilder(remoteRepo); builder.setUserInfo(deployConfig.getHttpAuthUser() + ":" + deployConfig.getHttpAuthPassword()); return builder.toString(); } return deployConfig.getNexusUrl().toString(); } }