Spring Data Graph

org.springframework.data.neo4j.rest
Class RestRequest

java.lang.Object
  extended by org.springframework.data.neo4j.rest.RestRequest

public class RestRequest
extends Object


Field Summary
static int CONNECT_TIMEOUT
           
static int READ_TIMEOUT
           
 
Constructor Summary
RestRequest(URI baseUri)
           
RestRequest(URI baseUri, String username, String password)
           
 
Method Summary
 RequestResult delete(String path)
           
static String encode(Object value)
           
 RequestResult get(String path)
           
 RequestResult get(String path, String data)
           
 URI getUri()
           
 RequestResult post(String path, String data)
           
 void put(String path, String data)
           
 boolean statusIs(RequestResult requestResult, javax.ws.rs.core.Response.StatusType status)
           
 boolean statusOtherThan(RequestResult requestResult, javax.ws.rs.core.Response.StatusType status)
           
 Object toEntity(RequestResult requestResult)
           
 Map<?,?> toMap(RequestResult requestResult)
           
 RestRequest with(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_TIMEOUT

public static final int CONNECT_TIMEOUT

READ_TIMEOUT

public static final int READ_TIMEOUT
Constructor Detail

RestRequest

public RestRequest(URI baseUri)

RestRequest

public RestRequest(URI baseUri,
                   String username,
                   String password)
Method Detail

encode

public static String encode(Object value)

get

public RequestResult get(String path)

get

public RequestResult get(String path,
                         String data)

delete

public RequestResult delete(String path)

post

public RequestResult post(String path,
                          String data)

put

public void put(String path,
                String data)

toEntity

public Object toEntity(RequestResult requestResult)

toMap

public Map<?,?> toMap(RequestResult requestResult)

statusIs

public boolean statusIs(RequestResult requestResult,
                        javax.ws.rs.core.Response.StatusType status)

statusOtherThan

public boolean statusOtherThan(RequestResult requestResult,
                               javax.ws.rs.core.Response.StatusType status)

with

public RestRequest with(String uri)

getUri

public URI getUri()

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.