Mercurial > hg > Members > nobuyasu > TestNeo4j
view 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 source
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())); } }