List of usage examples for org.apache.commons.httpclient.protocol ProtocolSocketFactory getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:org.opensaml.saml2.metadata.provider.HTTPMetadataProvider.java
/** * Sets the socket factory used to create sockets to the HTTP server. * // www .j a va 2 s. com * @see <a href="http://jakarta.apache.org/commons/httpclient/sslguide.html">HTTPClient SSL guide</a> * * @param newSocketFactory the socket factory used to produce sockets used to connect to the server * * @deprecated set this information on HTTP client used by provider */ public void setSocketFactory(ProtocolSocketFactory newSocketFactory) { log.debug("Using the custom socket factory {} to connect to the HTTP server", newSocketFactory.getClass().getName()); Protocol protocol = new Protocol(metadataURI.getScheme(), newSocketFactory, metadataURI.getPort()); httpClient.getHostConfiguration().setHost(metadataURI.getHost(), metadataURI.getPort(), protocol); }