public class Neo4jClient
extends java.lang.Object
This will create a new client to use for an application. You should only need one instance of this class to service a whole application. Once instantiated this class can be considered thread safe.
| Constructor and Description |
|---|
Neo4jClient(java.lang.String url)
Create a new Client.
|
Neo4jClient(java.lang.String url,
java.lang.String userName,
java.lang.String password)
Create a new Client for a protected Neo4J Instance.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Create a new Connection or retrieve the existing one on the currently executing Thread.
|
public Neo4jClient(java.lang.String url)
url - The URL to connect this client to. This constructor is generally used for DMZ installations and testing
purposes.public Neo4jClient(java.lang.String url,
java.lang.String userName,
java.lang.String password)
url - THe URL to connect this client to.userName - The username for authentication purposes to this Neo4J Installation.password - The password for authentication purposes to this Neo4J Installation.public Connection getConnection()