Tabnine Logo
SocketHttpConnectionProvider.getSocketFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
getSocketFactory
method
in
jodd.http.net.SocketHttpConnectionProvider

Best Java code snippets using jodd.http.net.SocketHttpConnectionProvider.getSocketFactory (Showing top 4 results out of 315)

origin: oblac/jodd

/**
 * Creates a socket using socket factory.
 */
protected Socket createSocket(final String host, final int port, final int connectionTimeout) throws IOException {
  SocketFactory socketFactory = getSocketFactory(proxy, false, false);
  if (connectionTimeout < 0) {
    return socketFactory.createSocket(host, port);
  }
  else {
    // creates unconnected socket
    Socket socket = socketFactory.createSocket();
    socket.connect(new InetSocketAddress(host, port), connectionTimeout);
    return socket;
  }
}
origin: oblac/jodd

final boolean trustAll, final boolean verifyHttpsHost) throws IOException {
SocketFactory socketFactory = getSocketFactory(proxy, true, trustAll);
origin: org.jodd/jodd-http

/**
 * Creates a socket using socket factory.
 */
protected Socket createSocket(final String host, final int port, final int connectionTimeout) throws IOException {
  SocketFactory socketFactory = getSocketFactory(proxy, false, false);
  if (connectionTimeout < 0) {
    return socketFactory.createSocket(host, port);
  }
  else {
    // creates unconnected socket
    Socket socket = socketFactory.createSocket();
    socket.connect(new InetSocketAddress(host, port), connectionTimeout);
    return socket;
  }
}
origin: org.jodd/jodd-http

final boolean trustAll, final boolean verifyHttpsHost) throws IOException {
SocketFactory socketFactory = getSocketFactory(proxy, true, trustAll);
jodd.http.netSocketHttpConnectionProvidergetSocketFactory

Javadoc

Returns socket factory based on proxy type and SSL requirements.

Popular methods of SocketHttpConnectionProvider

  • <init>
  • createSSLSocket
    Creates a SSL socket. Enables default secure enabled protocols if specified.
  • createSocket
    Creates a socket using socket factory.
  • getDefaultSSLSocketFactory
    Returns default SSL socket factory allowing setting trust managers.
  • useProxy
    Defines proxy to use for created sockets.

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now