本文整理了Java中ch.cyberduck.core.Protocol.getContext()
方法的一些代码示例,展示了Protocol.getContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Protocol.getContext()
方法的具体详情如下:
包路径:ch.cyberduck.core.Protocol
类名称:Protocol
方法名:getContext
暂无
代码示例来源:origin: iterate-ch/cyberduck
@Override
public String getContext() {
final String v = this.value("Context");
if(StringUtils.isBlank(v)) {
return parent.getContext();
}
return v;
}
代码示例来源:origin: iterate-ch/cyberduck
@Override
public String getBaseURL() {
return String.format("%s://%s%s", host.getProtocol().getScheme(), host.getHostname(), host.getProtocol().getContext());
}
代码示例来源:origin: iterate-ch/cyberduck
if(StringUtils.isNotBlank(host.getProtocol().getContext())) {
if(!Scheme.isURL(host.getProtocol().getContext())) {
configuration.setProperty("s3service.s3-endpoint-virtual-path",
PathNormalizer.normalize(host.getProtocol().getContext()));
代码示例来源:origin: iterate-ch/cyberduck
@Override
public boolean equals(Object o) {
if(this == o) {
return true;
}
if(!(o instanceof Protocol)) {
return false;
}
Protocol protocol = (Protocol) o;
if(this.getIdentifier() != null ? !this.getIdentifier().equals(protocol.getIdentifier()) : protocol.getIdentifier() != null) {
return false;
}
if(this.getScheme() != null ? !this.getScheme().equals(protocol.getScheme()) : protocol.getScheme() != null) {
return false;
}
if(this.getContext() != null ? !this.getContext().equals(protocol.getContext()) : protocol.getContext() != null) {
return false;
}
if(this.getAuthorization() != null ? !this.getAuthorization().equals(protocol.getAuthorization()) : protocol.getAuthorization() != null) {
return false;
}
if(this.getProvider() != null ? !this.getProvider().equals(protocol.getProvider()) : protocol.getProvider() != null) {
return false;
}
if(this.getDefaultHostname() != null ? !this.getDefaultHostname().equals(protocol.getDefaultHostname()) : protocol.getDefaultHostname() != null) {
return false;
}
return true;
}
代码示例来源:origin: iterate-ch/cyberduck
url.append(":").append(bookmark.getPort());
final String context = PathNormalizer.normalize(bookmark.getProtocol().getContext());
代码示例来源:origin: iterate-ch/cyberduck
@Override
public void login(final Proxy proxy, final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException {
if(Scheme.isURL(host.getProtocol().getContext())) {
try {
final Credentials temporary = new AWSSessionCredentialsRetriever(trust, key, this, host.getProtocol().getContext()).get();
client.setProviderCredentials(new AWSSessionCredentials(temporary.getUsername(), temporary.getPassword(),
temporary.getToken()));
代码示例来源:origin: iterate-ch/cyberduck
final SDSApiClient client = new SDSApiClient(apache);
client.setBasePath(new HostUrlProvider().withUsername(false).withPath(true).get(host.getProtocol().getScheme(), host.getPort(),
null, host.getHostname(), host.getProtocol().getContext()));
client.setHttpClient(ClientBuilder.newClient(new ClientConfig()
.register(new InputStreamProvider())
内容来源于网络,如有侵权,请联系作者删除!