Mercurial > hg > Members > nobuyasu > TestNeo4j
annotate src/begin/StartGraphDB.java @ 1:b5c58242b587 draft
add jersey jar
author | one |
---|---|
date | Sun, 15 Jul 2012 19:11:32 +0900 |
parents | |
children |
rev | line source |
---|---|
1 | 1 package begin; |
2 | |
3 import com.sun.jersey.api.client.Client; | |
4 import com.sun.jersey.api.client.ClientResponse; | |
5 import com.sun.jersey.api.client.WebResource; | |
6 | |
7 public class StartGraphDB { | |
8 | |
9 final static String SERVER_ROOT_URI = "http://localhost:7474/webadmin"; | |
10 | |
11 public static void main(String[] args) { | |
12 WebResource resource = Client.create().resource(SERVER_ROOT_URI); | |
13 ClientResponse response = resource.get(ClientResponse.class); | |
14 System.out.println(String.format("GET on [%s], status code [%d]", SERVER_ROOT_URI, response.getStatus())); | |
15 | |
16 | |
17 } | |
18 | |
19 } |