public class SVNSocketFactory extends Object
SVNSocketFactory
is a utility class that represents a custom
socket factory which provides creating either a plain socket or a secure one
to encrypt data transmitted over network.
The created socket then used by the inner engine of SVNKit library to communicate with a Subversion repository.
Constructor and Description |
---|
SVNSocketFactory() |
Modifier and Type | Method and Description |
---|---|
static Socket |
configureSSLSocket(Socket socket) |
static void |
connect(Socket socket,
InetSocketAddress address,
int timeout,
ISVNCanceller cancel) |
static Socket |
createPlainSocket(String host,
int port,
int connectTimeout,
int readTimeout,
ISVNCanceller cancel) |
static SSLContext |
createSSLContext(KeyManager[] keyManagers,
TrustManager trustManager) |
static Socket |
createSSLSocket(KeyManager[] keyManagers,
TrustManager trustManager,
String host,
int port,
int connectTimeout,
int readTimeout,
ISVNCanceller cancel) |
static Socket |
createSSLSocket(KeyManager[] keyManagers,
TrustManager trustManager,
String host,
int port,
Socket socket,
int readTimeout) |
static int |
getSocketReceiveBufferSize() |
static String |
getSSLProtocols() |
static ISVNThreadPool |
getThreadPool() |
static boolean |
isSocketStale(Socket socket) |
static boolean |
isSocketStaleCheckEnabled() |
static void |
setSocketReceiveBufferSize(int size) |
static void |
setSocketStaleCheckEnabled(boolean enabled) |
static void |
setSSLProtocols(String sslProtocols) |
public static Socket createPlainSocket(String host, int port, int connectTimeout, int readTimeout, ISVNCanceller cancel) throws IOException, SVNException
IOException
SVNException
public static void setSSLProtocols(String sslProtocols)
public static String getSSLProtocols()
public static Socket createSSLSocket(KeyManager[] keyManagers, TrustManager trustManager, String host, int port, int connectTimeout, int readTimeout, ISVNCanceller cancel) throws IOException, SVNException
IOException
SVNException
public static Socket createSSLSocket(KeyManager[] keyManagers, TrustManager trustManager, String host, int port, Socket socket, int readTimeout) throws IOException
IOException
public static ISVNThreadPool getThreadPool()
public static void connect(Socket socket, InetSocketAddress address, int timeout, ISVNCanceller cancel) throws IOException, SVNException
IOException
SVNException
public static void setSocketReceiveBufferSize(int size)
public static int getSocketReceiveBufferSize()
public static void setSocketStaleCheckEnabled(boolean enabled)
public static boolean isSocketStaleCheckEnabled()
public static boolean isSocketStale(Socket socket) throws IOException
IOException
public static SSLContext createSSLContext(KeyManager[] keyManagers, TrustManager trustManager) throws IOException
IOException
Copyright © 2024. All rights reserved.