/** * Set <code>timeout</code>. * * @param timeout * the timeout (in seconds) used for the transport step * @return {@code this} */ public C setTimeout(int timeout) { this.timeout = timeout; return self(); }
/** * Set the <code>credentialsProvider</code>. * * @param credentialsProvider * the {@link org.eclipse.jgit.transport.CredentialsProvider} to * use * @return {@code this} */ public C setCredentialsProvider( final CredentialsProvider credentialsProvider) { this.credentialsProvider = credentialsProvider; return self(); }
/** * Set the <code>TransportConfigCallback</code>. * * @param transportConfigCallback * if set, the callback will be invoked after the * {@link org.eclipse.jgit.transport.Transport} has created, but * before the {@link org.eclipse.jgit.transport.Transport} is * used. The callback can use this opportunity to set additional * type-specific configuration on the * {@link org.eclipse.jgit.transport.Transport} instance. * @return {@code this} */ public C setTransportConfigCallback( final TransportConfigCallback transportConfigCallback) { this.transportConfigCallback = transportConfigCallback; return self(); }
/** * Configure transport with credentials provider, timeout, and config * callback * * @param transport * a {@link org.eclipse.jgit.transport.Transport} object. * @return {@code this} */ protected C configure(Transport transport) { if (credentialsProvider != null) transport.setCredentialsProvider(credentialsProvider); transport.setTimeout(timeout); if (transportConfigCallback != null) transportConfigCallback.configure(transport); return self(); }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * a {@link org.eclipse.jgit.api.TransportCommand} object. * @return {@code this} */ protected C configure(TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }
/** * Set the <code>credentialsProvider</code>. * * @param credentialsProvider * the {@link org.eclipse.jgit.transport.CredentialsProvider} to * use * @return {@code this} */ public C setCredentialsProvider( final CredentialsProvider credentialsProvider) { this.credentialsProvider = credentialsProvider; return self(); }
/** * @param credentialsProvider * the {@link CredentialsProvider} to use * @return {@code this} */ public C setCredentialsProvider( final CredentialsProvider credentialsProvider) { this.credentialsProvider = credentialsProvider; return self(); }
/** * @param timeout * the timeout used for the transport step * @return {@code this} */ public C setTimeout(int timeout) { this.timeout = timeout; return self(); }
/** * @param transportConfigCallback * if set, the callback will be invoked after the * {@link Transport} has created, but before the * {@link Transport} is used. The callback can use this * opportunity to set additional type-specific configuration on * the {@link Transport} instance. * @return {@code this} */ public C setTransportConfigCallback( final TransportConfigCallback transportConfigCallback) { this.transportConfigCallback = transportConfigCallback; return self(); }
/** * Set <code>timeout</code>. * * @param timeout * the timeout (in seconds) used for the transport step * @return {@code this} */ public C setTimeout(int timeout) { this.timeout = timeout; return self(); }
/** * Set the <code>TransportConfigCallback</code>. * * @param transportConfigCallback * if set, the callback will be invoked after the * {@link org.eclipse.jgit.transport.Transport} has created, but * before the {@link org.eclipse.jgit.transport.Transport} is * used. The callback can use this opportunity to set additional * type-specific configuration on the * {@link org.eclipse.jgit.transport.Transport} instance. * @return {@code this} */ public C setTransportConfigCallback( final TransportConfigCallback transportConfigCallback) { this.transportConfigCallback = transportConfigCallback; return self(); }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * a {@link org.eclipse.jgit.api.TransportCommand} object. * @return {@code this} */ protected C configure(TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }
/** * Configure a child command with the current configuration set in * {@code this} command * * @param childCommand * @return {@code this} */ protected C configure(final TransportCommand childCommand) { childCommand.setCredentialsProvider(credentialsProvider); childCommand.setTimeout(timeout); childCommand.setTransportConfigCallback(transportConfigCallback); return self(); } }
/** * Configure transport with credentials provider, timeout, and config * callback * * @param transport * a {@link org.eclipse.jgit.transport.Transport} object. * @return {@code this} */ protected C configure(Transport transport) { if (credentialsProvider != null) transport.setCredentialsProvider(credentialsProvider); transport.setTimeout(timeout); if (transportConfigCallback != null) transportConfigCallback.configure(transport); return self(); }
/** * Configure transport with credentials provider, timeout, and config * callback * * @param transport * @return {@code this} */ protected C configure(final Transport transport) { if (credentialsProvider != null) transport.setCredentialsProvider(credentialsProvider); transport.setTimeout(timeout); if (transportConfigCallback != null) transportConfigCallback.configure(transport); return self(); }