Mercurial > hg > Members > nobuyasu > TestNeo4j
changeset 1:b5c58242b587 draft
add jersey jar
author | one |
---|---|
date | Sun, 15 Jul 2012 19:11:32 +0900 |
parents | fdabe4f7cb70 |
children | 667546c44b36 |
files | .classpath lib/asm-3.1.jar lib/jackson-core-asl-1.9.2.jar lib/jackson-jaxrs-1.9.2.jar lib/jackson-mapper-asl-1.9.2.jar lib/jackson-xc-1.9.2.jar lib/jersey-client-1.12.jar lib/jersey-core-1.12.jar lib/jersey-json-1.12.jar lib/jersey-server-1.12.jar lib/jersey-servlet-1.12.jar lib/jettison-1.1.jar lib/jsr311-api-1.1.1.jar src/begin/StartGraphDB.java |
diffstat | 14 files changed, 44 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.classpath Sun Jul 15 16:54:34 2012 +0900 +++ b/.classpath Sun Jul 15 19:11:32 2012 +0900 @@ -2,5 +2,30 @@ <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="lib/geronimo-jta_1.1_spec-1.1.1.jar"/> + <classpathentry kind="lib" path="lib/lucene-core-3.5.0.jar"/> + <classpathentry kind="lib" path="lib/neo4j-cypher-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-graph-algo-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-graph-matching-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-jmx-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-kernel-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-lucene-index-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-shell-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/neo4j-udc-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar"/> + <classpathentry kind="lib" path="lib/scala-library-2.9.1-1.jar"/> + <classpathentry kind="lib" path="lib/server-api-1.8.M06.jar"/> + <classpathentry kind="lib" path="lib/asm-3.1.jar"/> + <classpathentry kind="lib" path="lib/jackson-core-asl-1.9.2.jar"/> + <classpathentry kind="lib" path="lib/jackson-jaxrs-1.9.2.jar"/> + <classpathentry kind="lib" path="lib/jackson-mapper-asl-1.9.2.jar"/> + <classpathentry kind="lib" path="lib/jackson-xc-1.9.2.jar"/> + <classpathentry kind="lib" path="lib/jersey-client-1.12.jar"/> + <classpathentry kind="lib" path="lib/jersey-core-1.12.jar"/> + <classpathentry kind="lib" path="lib/jersey-json-1.12.jar"/> + <classpathentry kind="lib" path="lib/jersey-server-1.12.jar"/> + <classpathentry kind="lib" path="lib/jersey-servlet-1.12.jar"/> + <classpathentry kind="lib" path="lib/jettison-1.1.jar"/> + <classpathentry kind="lib" path="lib/jsr311-api-1.1.1.jar"/> <classpathentry kind="output" path="bin"/> </classpath>
--- /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())); + + + } + +}