|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.remote.RemoteResponse.ResponseBuilder
public static final class RemoteResponse.ResponseBuilder
Factory for creating RemoteResponse objects.
| Constructor Summary | |
|---|---|
RemoteResponse.ResponseBuilder()
|
|
| Method Summary | ||
|---|---|---|
RemoteResponse<Boolean> |
buildBooleanResponse(boolean value)
Create a response for a boolean request. |
|
|
buildErrorResponse(Exception ex)
Create an error response for any request. |
|
RemoteResponse<IterableSpecification<NodeSpecification>> |
buildFinalNodeResponse(long size,
NodeSpecification... nodes)
Create a final response for a node iterator request. |
|
RemoteResponse<IterableSpecification<RelationshipSpecification>> |
buildFinalRelationshipResponse(RelationshipSpecification... relationships)
Create a final response for a relationship iterator request. |
|
RemoteResponse<IterableSpecification<String>> |
buildFinalStringResponse(String... strings)
Create a final response for a string iterator request. |
|
RemoteResponse<Integer> |
buildIntegerResponse(int value)
Create a response for an integer request. |
|
RemoteResponse<NodeSpecification> |
buildNodeResponse(long id)
Create a response for a node request. |
|
RemoteResponse<IterableSpecification<NodeSpecification>> |
buildPartialNodeResponse(int moreToken,
long size,
NodeSpecification... nodes)
Create a partial response for a node iterator request. |
|
RemoteResponse<IterableSpecification<RelationshipSpecification>> |
buildPartialRelationshipResponse(int moreToken,
RelationshipSpecification... relationships)
Create a partial response for a relationship iterator request. |
|
RemoteResponse<IterableSpecification<String>> |
buildPartialStringResponse(int moreToken,
String... strings)
Create a partial response for a string iterator request. |
|
RemoteResponse<Object> |
buildPropertyResponse(Object value)
Create a response for a property request. |
|
RemoteResponse<RelationshipSpecification> |
buildRelationshipResponse(long id,
String typeName,
long startNode,
long endNode)
Create a response for a relationship request. |
|
RemoteResponse<Void> |
buildVoidResponse()
Create a response for a void request. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteResponse.ResponseBuilder()
| Method Detail |
|---|
public RemoteResponse<NodeSpecification> buildNodeResponse(long id)
id - the id of the node.
public RemoteResponse<RelationshipSpecification> buildRelationshipResponse(long id,
String typeName,
long startNode,
long endNode)
id - the id of the relationship.typeName - the type name of the relationship.startNode - the node id of the relationship start node.endNode - the node id of the relationship end node.
public RemoteResponse<Object> buildPropertyResponse(Object value)
value - the value of the property.
public RemoteResponse<Boolean> buildBooleanResponse(boolean value)
value - the result.
public RemoteResponse<Integer> buildIntegerResponse(int value)
value - the result.
public RemoteResponse<IterableSpecification<String>> buildPartialStringResponse(int moreToken,
String... strings)
moreToken - the token used to get the further parts of the iterator.strings - the strings to return in this batch.
public RemoteResponse<IterableSpecification<String>> buildFinalStringResponse(String... strings)
strings - the strings to return in this batch.
public RemoteResponse<IterableSpecification<NodeSpecification>> buildPartialNodeResponse(int moreToken,
long size,
NodeSpecification... nodes)
moreToken - the token used to get the further parts of the iterator.size - the total size of the iterable or a negative number for unknown.nodes - the nodes to return in this batch.
public RemoteResponse<IterableSpecification<NodeSpecification>> buildFinalNodeResponse(long size,
NodeSpecification... nodes)
size - the total size of the iterable or a negative number for unknown.nodes - the nodes to return in this batch.
public RemoteResponse<IterableSpecification<RelationshipSpecification>> buildPartialRelationshipResponse(int moreToken,
RelationshipSpecification... relationships)
moreToken - the token used to get the further parts of the iterator.relationships - the relationships to return in this batch.
public RemoteResponse<IterableSpecification<RelationshipSpecification>> buildFinalRelationshipResponse(RelationshipSpecification... relationships)
relationships - the relationships to return in this batch.
public RemoteResponse<Void> buildVoidResponse()
public <T> RemoteResponse<T> buildErrorResponse(Exception ex)
T - the type of the original request.ex - the exception that occurred during the processing of the
request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||