view src/begin/StartGraphDB.java @ 27:4c0b10bb5192 draft default tip

print ./resource/wikiPageRank.log
author one
date Mon, 03 Sep 2012 16:25:28 +0900
parents b5c58242b587
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()));

		
	}
	
}