LocalTransport (Neo4j Apoc 1.1 API)
Keywords: org.neo4j.remote.transports.LocalTransport class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`LocalTransport()` Create a new `Transport` for the file:// protocol.

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.

Methods inherited from class org.neo4j.remote.Transport
`equals, hashCode, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### LocalTransport

    public LocalTransport()

  Create a new `Transport` for the file:// protocol.

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Neo4j. All Rights Reserved.