Codota Logo
JDBCRealm.getObjectName
Code IndexAdd Codota to your IDE (free)

How to use
getObjectName
method
in
org.apache.catalina.realm.JDBCRealm

Best Java code snippets using org.apache.catalina.realm.JDBCRealm.getObjectName (Showing top 7 results out of 315)

  • Common ways to obtain JDBCRealm
private void myMethod () {
JDBCRealm j =
  • Codota Iconnew JDBCRealm()
  • Smart code suggestions by Codota
}
origin: codefollower/Tomcat-Research

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName,
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  Container container = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  container.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
  String connectionName, String connectionPassword, String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
origin: tomcat/catalina

/**
 * Create a new JDBC Realm.
 *
 * @param parent MBean Name of the associated parent component
 *
 * @exception Exception if an MBean cannot be created or registered
 */
public String createJDBCRealm(String parent, String driverName, 
    String connectionName, String connectionPassword,
    String connectionURL)
  throws Exception {
  // Create a new JDBCRealm instance
  JDBCRealm realm = new JDBCRealm();
  realm.setDriverName(driverName);
  realm.setConnectionName(connectionName);
  realm.setConnectionPassword(connectionPassword);
  realm.setConnectionURL(connectionURL);
  // Add the new instance to its parent component
  ObjectName pname = new ObjectName(parent);
  ContainerBase containerBase = getParentContainerFromParent(pname);
  // Add the new instance to its parent component
  containerBase.setRealm(realm);
  // Return the corresponding MBean name
  ObjectName oname = realm.getObjectName();
  if (oname != null) {
    return (oname.toString());
  } else {
    return null;
  }   
}
org.apache.catalina.realmJDBCRealmgetObjectName

Popular methods of JDBCRealm

  • <init>
  • authenticate
    Attempt to authenticate the user with the provided credentials.
  • close
    Close the specified database connection.
  • credentials
    Return a PreparedStatement configured to perform the SELECT required to retrieve user credentials fo
  • getPassword
    Get the password for the specified user.
  • getRoles
    Return the roles associated with the given user name.
  • open
    Open (if necessary) and return a database connection for use by this Realm.
  • roles
    Return a PreparedStatement configured to perform the SELECT required to retrieve user roles for the
  • setConnectionName
    Set the username to use to connect to the database.
  • setConnectionPassword
    Set the password to use to connect to the database.
  • setConnectionURL
    Set the URL to use to connect to the database.
  • setDriverName
    Set the JDBC driver that will be used.
  • setConnectionURL,
  • setDriverName,
  • digest,
  • hasMessageDigest,
  • isRoleStoreDefined,
  • getCredentialHandler,
  • compareCredentials

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • 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
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now