ch.cyberduck.core.http.HttpSession类的使用及代码示例

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

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

HttpSession介绍

暂无

代码示例

代码示例来源:origin: iterate-ch/cyberduck

@Override
public void configure(final boolean enable, final Path file) throws BackgroundException {
  final Location.Name location = session.getFeature(Location.class).getLocation(file);
  if(Location.unknown.equals(location)) {
    throw new AccessDeniedException("Cannot read bucket location");
  }
  final UDTProxyConfigurator configurator = new UDTProxyConfigurator(location, this.provider(),
      new KeychainX509TrustManager(new DefaultTrustManagerHostnameCallback(session.getHost())), new KeychainX509KeyManager(session.getHost()));
  configurator.configure(session);
}

代码示例来源:origin: iterate-ch/cyberduck

/**
 * Configure the HTTP Session to proxy through UDT
 */
public HttpSession<?> configure(final HttpSession<?> session) throws BackgroundException {
  // Add X-Qloudsonic-* headers
  final List<Header> headers = provider.headers();
  if(log.isInfoEnabled()) {
    log.info(String.format("Obtained headers %s fro provider %s", headers, provider));
  }
  // Run through secured proxy only if direct connection has transport security
  final Host proxy = provider.find(location, session.getHost().getProtocol().isSecure());
  final HttpConnectionPoolBuilder builder
      = new UDTHttpConnectionPoolBuilder(session.getHost(), proxy, headers, trust, key, callback);
  // Inject connection builder into session
  session.setBuilder(builder);
  return session;
}

代码示例来源:origin: iterate-ch/cyberduck

return (T) new MantaSearchFeature(this);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean getStatus(final Path file) {
  return preferences.getBoolean(String.format("connection.qloudsonic.%s", session.getHost().getHostname()));
}

代码示例来源:origin: iterate-ch/cyberduck

@Override
public boolean alert(final ConnectionCallback callback) throws BackgroundException {
  if(super.alert(callback)) {

代码示例来源:origin: iterate-ch/cyberduck

return (T) new GraphQuotaFeature(this);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

@Override
public void setStatus(final Path file, final boolean enabled) {
  preferences.setProperty(String.format("connection.qloudsonic.%s", session.getHost().getHostname()), enabled);
}

代码示例来源:origin: iterate-ch/cyberduck

return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return (T) new DropboxSearchFeature(this);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return (T) new B2TimestampFeature(this, fileid);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return (T) new DriveAttributesFinderFeature(this, fileid);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return (T) new DAVTouchFeature(this);
return super._getFeature(type);

代码示例来源:origin: iterate-ch/cyberduck

return (T) new SDSSearchFeature(this, nodeid);
return super._getFeature(type);

相关文章

HttpSession类方法