congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SSLImplementation.getInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstance
method
in
org.apache.tomcat.util.net.SSLImplementation

Best Java code snippets using org.apache.tomcat.util.net.SSLImplementation.getInstance (Showing top 20 results out of 315)

origin: jboss.web/jbossweb

public static SSLImplementation getInstance() throws ClassNotFoundException
{
for(int i=0;i<implementations.length;i++){
  try {
      SSLImplementation impl=
    getInstance(implementations[i]);
  return impl;
  } catch (Exception e) {
  if(logger.isTraceEnabled()) 
    logger.trace("Error creating " + implementations[i],e);
  }
}
// If we can't instantiate any of these
throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: codefollower/Tomcat-Research

  @Override
  public void init() throws Exception {
    // SSL implementation needs to be in place before end point is
    // initialized
    sslImplementation = SSLImplementation.getInstance(sslImplementationName);
    super.init();
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

  @Override
  public void init() throws Exception {
    // SSL implementation needs to be in place before end point is
    // initialized
    sslImplementation = SSLImplementation.getInstance(sslImplementationName);
    super.init();
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

  @Override
  public void init() throws Exception {
    // SSL implementation needs to be in place before end point is
    // initialized
    sslImplementation = SSLImplementation.getInstance(sslImplemenationName);
    super.init();
  }
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

  @Override
  public void init() throws Exception {
    // SSL implementation needs to be in place before end point is
    // initialized
    sslImplementation = SSLImplementation.getInstance(sslImplementationName);
    super.init();
  }
}
origin: jboss.web/jbossweb

public static SSLImplementation getInstance(String className)
throws ClassNotFoundException
{
if(className==null) return getInstance();
try {
  // Workaround for the J2SE 1.4.x classloading problem (under Solaris).
  // Class.forName(..) fails without creating class using new.
  // This is an ugly workaround. 
  if( JSSEImplementationClass.equals(className) ) {
  return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
  }
  Class clazz=Class.forName(className);
  return (SSLImplementation)clazz.newInstance();
} catch (Exception e){
  if(logger.isDebugEnabled())
  logger.debug("Error loading SSL Implementation "
       +className, e);
  throw new ClassNotFoundException("Error loading SSL Implementation "
         +className+ " :" +e.toString());
}
}
origin: codefollower/Tomcat-Research

public static SSLImplementation getInstance() throws ClassNotFoundException {
  for (int i = 0; i < implementations.length; i++) {
    try {
      SSLImplementation impl = getInstance(implementations[i]);
      return impl;
    } catch (Exception e) {
      if (logger.isTraceEnabled())
        logger.trace("Error creating " + implementations[i], e);
    }
  }
  // If we can't instantiate any of these
  throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: org.apache.geronimo.ext.tomcat/catalina

public static SSLImplementation getInstance() throws ClassNotFoundException {
  for (int i = 0; i < implementations.length; i++) {
    try {
      SSLImplementation impl = getInstance(implementations[i]);
      return impl;
    } catch (Exception e) {
      if (logger.isTraceEnabled())
        logger.trace("Error creating " + implementations[i], e);
    }
  }
  // If we can't instantiate any of these
  throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

public static SSLImplementation getInstance() throws ClassNotFoundException {
  for (int i = 0; i < implementations.length; i++) {
    try {
      SSLImplementation impl = getInstance(implementations[i]);
      return impl;
    } catch (Exception e) {
      if (logger.isTraceEnabled())
        logger.trace("Error creating " + implementations[i], e);
    }
  }
  // If we can't instantiate any of these
  throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

public static SSLImplementation getInstance() throws ClassNotFoundException {
  for (int i = 0; i < implementations.length; i++) {
    try {
      SSLImplementation impl = getInstance(implementations[i]);
      return impl;
    } catch (Exception e) {
      if (logger.isTraceEnabled())
        logger.trace("Error creating " + implementations[i], e);
    }
  }
  // If we can't instantiate any of these
  throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

public static SSLImplementation getInstance() throws ClassNotFoundException
{
for(int i=0;i<implementations.length;i++){
  try {
      SSLImplementation impl=
    getInstance(implementations[i]);
  return impl;
  } catch (Exception e) {
  if(logger.isTraceEnabled()) 
    logger.trace("Error creating " + implementations[i],e);
  }
}
// If we can't instantiate any of these
throw new ClassNotFoundException("Can't find any SSL implementation");
}
origin: org.jboss.web/jbossweb

/**
 * Returns the {@code SSLImplementation} specified by the name of it's class
 * 
 * @param className
 * @return a new instance of the {@code SSLImplementation} given by it's name
 * @throws ClassNotFoundException
 */
public static SSLImplementation getInstance(String className) throws ClassNotFoundException {
  if (className == null)
    return getInstance();
  try {
    Class<?> clazz = Class.forName(className);
    return (SSLImplementation) clazz.newInstance();
  } catch (Exception e) {
    if (CoyoteLogger.UTIL_LOGGER.isDebugEnabled())
      CoyoteLogger.UTIL_LOGGER.debug("Error loading SSL Implementation " + className, e);
    throw new ClassNotFoundException(MESSAGES.errorLoadingSslImplementation(className), e);
  }
}
origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

public static SSLImplementation getInstance(String className)
throws ClassNotFoundException
{
if(className==null) return getInstance();
try {
  // Workaround for the J2SE 1.4.x classloading problem (under Solaris).
  // Class.forName(..) fails without creating class using new.
  // This is an ugly workaround. 
  if( JSSEImplementationClass.equals(className) ) {
  return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
  }
  Class clazz=Class.forName(className);
  return (SSLImplementation)clazz.newInstance();
} catch (Exception e){
  if(logger.isDebugEnabled())
  logger.debug("Error loading SSL Implementation "
       +className, e);
  throw new ClassNotFoundException("Error loading SSL Implementation "
         +className+ " :" +e.toString());
}
}
origin: codefollower/Tomcat-Research

public static SSLImplementation getInstance(String className)
    throws ClassNotFoundException {
  if (className == null)
    return getInstance();
  try {
    // Workaround for the J2SE 1.4.x classloading problem (under
    // Solaris).
    // Class.forName(..) fails without creating class using new.
    // This is an ugly workaround.
    if (JSSEImplementationClass.equals(className)) {
      return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
    }
    Class<?> clazz = Class.forName(className);
    return (SSLImplementation) clazz.newInstance();
  } catch (Exception e) {
    if (logger.isDebugEnabled())
      logger
          .debug("Error loading SSL Implementation " + className,
              e);
    throw new ClassNotFoundException(
        "Error loading SSL Implementation " + className + " :"
            + e.toString());
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

public static SSLImplementation getInstance(String className)
    throws ClassNotFoundException {
  if (className == null)
    return getInstance();
  try {
    // Workaround for the J2SE 1.4.x classloading problem (under
    // Solaris).
    // Class.forName(..) fails without creating class using new.
    // This is an ugly workaround.
    if (JSSEImplementationClass.equals(className)) {
      return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
    }
    Class<?> clazz = Class.forName(className);
    return (SSLImplementation) clazz.newInstance();
  } catch (Exception e) {
    if (logger.isDebugEnabled())
      logger
          .debug("Error loading SSL Implementation " + className,
              e);
    throw new ClassNotFoundException(
        "Error loading SSL Implementation " + className + " :"
            + e.toString());
  }
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

public static SSLImplementation getInstance(String className)
    throws ClassNotFoundException {
  if (className == null)
    return getInstance();
  try {
    // Workaround for the J2SE 1.4.x classloading problem (under
    // Solaris).
    // Class.forName(..) fails without creating class using new.
    // This is an ugly workaround.
    if (JSSEImplementationClass.equals(className)) {
      return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
    }
    Class<?> clazz = Class.forName(className);
    return (SSLImplementation) clazz.newInstance();
  } catch (Exception e) {
    if (logger.isDebugEnabled())
      logger
          .debug("Error loading SSL Implementation " + className,
              e);
    throw new ClassNotFoundException(
        "Error loading SSL Implementation " + className + " :"
            + e.toString());
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

public static SSLImplementation getInstance(String className)
    throws ClassNotFoundException {
  if (className == null)
    return getInstance();
  try {
    // Workaround for the J2SE 1.4.x classloading problem (under
    // Solaris).
    // Class.forName(..) fails without creating class using new.
    // This is an ugly workaround.
    if (JSSEImplementationClass.equals(className)) {
      return new org.apache.tomcat.util.net.jsse.JSSEImplementation();
    }
    Class<?> clazz = Class.forName(className);
    return (SSLImplementation) clazz.newInstance();
  } catch (Exception e) {
    if (logger.isDebugEnabled())
      logger
          .debug("Error loading SSL Implementation " + className,
              e);
    throw new ClassNotFoundException(
        "Error loading SSL Implementation " + className + " :"
            + e.toString());
  }
}
origin: org.jboss.web/jbossweb

/**
 * @return the default implementation of {@code SSLImplementation}
 * @throws ClassNotFoundException
 */
public static SSLImplementation getInstance() throws ClassNotFoundException {
  for (int i = 0; i < implementations.length; i++) {
    try {
      SSLImplementation impl = getInstance(implementations[i]);
      return impl;
    } catch (Exception e) {
      if (CoyoteLogger.UTIL_LOGGER.isTraceEnabled())
        CoyoteLogger.UTIL_LOGGER.trace("Error creating " + implementations[i], e);
    }
  }
  // If we can't instantiate any of these
  throw new ClassNotFoundException(MESSAGES.noSslImplementation());
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
public boolean isAlpnSupported() {
  // ALPN requires TLS so if TLS is not enabled, ALPN cannot be supported
  if (!isSSLEnabled()) {
    return false;
  }
  // Depends on the SSLImplementation.
  SSLImplementation sslImplementation;
  try {
    sslImplementation = SSLImplementation.getInstance(getSslImplementationName());
  } catch (ClassNotFoundException e) {
    // Ignore the exception. It will be logged when trying to start the
    // end point.
    return false;
  }
  return sslImplementation.isAlpnSupported();
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

protected void initialiseSsl() throws Exception {
  if (isSSLEnabled()) {
    sslImplementation = SSLImplementation.getInstance(getSslImplementationName());
    for (SSLHostConfig sslHostConfig : sslHostConfigs.values()) {
      sslHostConfig.setConfigType(getSslConfigType());
      createSSLContext(sslHostConfig);
    }
    // Validate default SSLHostConfigName
    if (sslHostConfigs.get(getDefaultSSLHostConfigName()) == null) {
      throw new IllegalArgumentException(sm.getString("endpoint.noSslHostConfig",
          getDefaultSSLHostConfigName(), getName()));
    }
  }
}
org.apache.tomcat.util.netSSLImplementationgetInstance

Popular methods of SSLImplementation

  • getSSLSupport
  • getServerSocketFactory
  • getSSLUtil
  • isAlpnSupported

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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