|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.remote.Transport
public abstract class Transport
An object that specifies which URIs a specific ConnectionTarget
can handle,
and can create instances of that ConnectionTarget
. The contract for
extending this class is that each instance of the same extending class should
behave in the same way, they will be treated as equal by the framework.
Constructor Summary | |
---|---|
protected |
Transport(String... protocols)
Create a new Transport that supports the protocols
specified by the supplied protocol schema identifiers. |
Method Summary | |
---|---|
protected abstract ConnectionTarget |
create(URI resourceUri)
Create a RemoteSite that connects to a remote graph database resource on the specified URI. |
boolean |
equals(Object other)
|
protected abstract boolean |
handlesUri(URI resourceUri)
Determine if this remote site can handle the specified URI. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Transport(String... protocols)
Transport
that supports the protocols
specified by the supplied protocol schema identifiers. A protocol scheme
identifier consists of alphanumeric characters or any of the characters
"-.+". The first character of the scheme identifier is always an
alphabetic character.
protocols
- all the protocol scheme identifiers that this remote site
supports.
IllegalArgumentException
- if no protocols where specified.URI.getScheme()
Method Detail |
---|
protected abstract ConnectionTarget create(URI resourceUri)
resourceUri
- the URI of the remote graph database resource.
ConnectionTarget
, that connects to
the specified URI.protected abstract boolean handlesUri(URI resourceUri)
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.
resourceUri
- the URI of the remote graph database resource.
true
if this site can handle the specified URI.public final boolean equals(Object other)
equals
in class Object
public final int hashCode()
hashCode
in class Object
public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |