Mercurial > hg > Members > nobuyasu > TestNeo4j
diff src/begin/StartGraphDB.java @ 1:b5c58242b587 draft
add jersey jar
author | one |
---|---|
date | Sun, 15 Jul 2012 19:11:32 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/begin/StartGraphDB.java Sun Jul 15 19:11:32 2012 +0900 @@ -0,0 +1,19 @@ +package begin; + +import com.sun.jersey.api.client.Client; +import com.sun.jersey.api.client.ClientResponse; +import com.sun.jersey.api.client.WebResource; + +public class StartGraphDB { + + final static String SERVER_ROOT_URI = "http://localhost:7474/webadmin"; + + public static void main(String[] args) { + WebResource resource = Client.create().resource(SERVER_ROOT_URI); + ClientResponse response = resource.get(ClientResponse.class); + System.out.println(String.format("GET on [%s], status code [%d]", SERVER_ROOT_URI, response.getStatus())); + + + } + +}