Repository: cxf Updated Branches: refs/heads/master 1e927cdfa -> 9fe4c04a1
CXF-5923: Create sample to demonstrate usage of search extension with Lucene and Tika. Integrated browser demo into the server package. Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/9fe4c04a Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/9fe4c04a Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/9fe4c04a Branch: refs/heads/master Commit: 9fe4c04a1c875b3e8f402268cd9dfe18431b5cc9 Parents: 1e927cd Author: reta <[email protected]> Authored: Sun Sep 21 10:49:27 2014 -0400 Committer: reta <[email protected]> Committed: Sun Sep 21 10:49:27 2014 -0400 ---------------------------------------------------------------------- distribution/src/main/release/samples/jax_rs/search/README.txt | 2 +- .../search/src/main/java/demo/jaxrs/search/server/Server.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/9fe4c04a/distribution/src/main/release/samples/jax_rs/search/README.txt ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/search/README.txt b/distribution/src/main/release/samples/jax_rs/search/README.txt index 4d3b830..863071b 100644 --- a/distribution/src/main/release/samples/jax_rs/search/README.txt +++ b/distribution/src/main/release/samples/jax_rs/search/README.txt @@ -5,7 +5,7 @@ The demo shows a basic usage of search extension with REST based Web Services us JAX-RS 2.0 (JSR-339). The REST server provides the following services: A RESTful catalog service is provided on URL http://localhost:9000/jaxrs/catalog -A web browser demo is available at: http://localhost:9000/browser +A web browser demo is available at: http://localhost:9000/catalog A HTTP GET request to URL http://localhost:9000/jaxrs/catalog returns all the documents currently stored and managed (in JSON format): http://git-wip-us.apache.org/repos/asf/cxf/blob/9fe4c04a/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java b/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java index 2cd62b8..0e2cf35 100644 --- a/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java +++ b/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Server.java @@ -61,7 +61,7 @@ public class Server { // Configuring all static web resource final ServletHolder staticHolder = new ServletHolder(new DefaultServlet()); final ServletContextHandler htmls = new ServletContextHandler(); - htmls.setContextPath("/browser"); + htmls.setContextPath("/catalog"); htmls.addServlet(staticHolder, "/*"); htmls.setResourceBase(getClass().getResource("/browser").toURI().toString());
