org.neo4j.remote.transports
Class LocalTransport
java.lang.Object
org.neo4j.remote.Transport
org.neo4j.remote.transports.LocalTransport
public final class LocalTransport
- extends Transport
A Transport
that creates LocalGraphDatabase
s.
- Author:
- Tobias Ivarsson
Method Summary |
protected ConnectionTarget |
create(URI resourceUri)
Create a RemoteSite that connects to a remote graph database resource on the
specified URI. |
protected boolean |
handlesUri(URI resourceUri)
Determine if this remote site can handle the specified URI. |
LocalTransport
public LocalTransport()
- Create a new
Transport
for the file:// protocol.
create
protected ConnectionTarget create(URI resourceUri)
- Description copied from class:
Transport
- Create a RemoteSite that connects to a remote graph database resource on the
specified URI. If login is required the supplied user name and password
are used.
- Specified by:
create
in class Transport
- Parameters:
resourceUri
- the URI of the remote graph database resource.
- Returns:
- an instance of the specific
ConnectionTarget
, that connects to
the specified URI.
handlesUri
protected boolean handlesUri(URI resourceUri)
- Description copied from class:
Transport
- Determine if this remote site can handle the specified URI. In it's most
simple implementation this method can just check if the URI starts with a
supported protocol scheme identifier or even simply always return
true
. A more advanced implementation might connect to the
resource on the specified URI to determine if it communicates in a way
supported by this remote site. A well behaving implementation returns
false
instead of throwing an exception.
- Specified by:
handlesUri
in class Transport
- Parameters:
resourceUri
- the URI of the remote graph database resource.
- Returns:
true
if this site can handle the specified URI.
Copyright © 2010 Neo4j. All Rights Reserved.