Example usage for org.eclipse.jgit.transport.http.apache.internal HttpApacheText get

List of usage examples for org.eclipse.jgit.transport.http.apache.internal HttpApacheText get

Introduction

In this page you can find the example usage for org.eclipse.jgit.transport.http.apache.internal HttpApacheText get.

Prototype

public static HttpApacheText get() 

Source Link

Document

Get an instance of this translation bundle.

Usage

From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java

License:Apache License

private SSLContext getSSLContext() {
    if (ctx == null) {
        try {/*ww  w  .  j  a  v  a2 s. c o m*/
            ctx = SSLContext.getInstance("TLS"); //$NON-NLS-1$
            ctx.init(null, null, null);
        } catch (NoSuchAlgorithmException e) {
            throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e);
        } catch (KeyManagementException e) {
            throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e);
        }
    }
    return ctx;
}

From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java

License:Eclipse Distribution License

private SSLContext getSSLContext() {
    if (ctx == null) {
        try {/*from  ww  w. j  a  v  a 2s . c o  m*/
            ctx = SSLContext.getInstance("TLS"); //$NON-NLS-1$
        } catch (NoSuchAlgorithmException e) {
            throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e);
        }
    }
    return ctx;
}