Tabnine Logo
JdbcConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
JdbcConfiguration
in
sockslib.server.manager

Best Java code snippets using sockslib.server.manager.JdbcConfiguration (Showing top 2 results out of 315)

origin: theotherp/nzbhydra2

public static JdbcConfiguration load(String filePath) {
  try {
    String realPath = PathUtil.getAbstractPath(filePath);
    logger.debug("Load file:{}", realPath);
    Properties properties = new Properties();
    properties.load(new FileInputStream(realPath));
    String url = properties.getProperty(URL_KEY);
    String username = properties.getProperty(USERNAME_KEY);
    String password = properties.getProperty(PASSWORD_KEY);
    return new JdbcConfiguration(url, username, password);
  } catch (IOException e) {
    logger.error(e.getMessage(), e);
  }
  return null;
}
origin: fengyouchao/sockslib

public static JdbcConfiguration load(String filePath) {
 try {
  String realPath = PathUtil.getAbstractPath(filePath);
  logger.debug("Load file:{}", realPath);
  Properties properties = new Properties();
  properties.load(new FileInputStream(realPath));
  String url = properties.getProperty(URL_KEY);
  String username = properties.getProperty(USERNAME_KEY);
  String password = properties.getProperty(PASSWORD_KEY);
  return new JdbcConfiguration(url, username, password);
 } catch (IOException e) {
  logger.error(e.getMessage(), e);
 }
 return null;
}
sockslib.server.managerJdbcConfiguration

Javadoc

The class JdbcConfiguration is a tool class to config JDBC.

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top 12 Jupyter Notebook extensions
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