aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject [06/50] [abbrv] aries-jax-rs-whiteboard git commit: Update example to affect standalone service
Date Thu, 24 Nov 2016 10:53:10 GMT
Update example to affect standalone service


Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/c369d16a
Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/c369d16a
Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/c369d16a

Branch: refs/heads/master
Commit: c369d16af0a3d7861467d972d81a06b5ea7ea8d2
Parents: ccba122
Author: Carlos Sierra <carlos.sierra@liferay.com>
Authored: Tue Oct 11 19:04:06 2016 +0200
Committer: Carlos Sierra <carlos.sierra@liferay.com>
Committed: Tue Oct 11 19:04:06 2016 +0200

----------------------------------------------------------------------
 .../main/java/com/liferay/portal/rest/example/ExampleAddon.java | 2 +-
 .../java/com/liferay/portal/rest/example/ExampleFilter.java     | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/c369d16a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleAddon.java
----------------------------------------------------------------------
diff --git a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleAddon.java
b/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleAddon.java
index 206aebc..5431e76 100644
--- a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleAddon.java
+++ b/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleAddon.java
@@ -28,7 +28,7 @@ import javax.ws.rs.core.UriInfo;
  */
 @Component(
 	immediate = true,
-	property = "osgi.jaxrs.resource.base=/example-addon",
+	property = "osgi.jaxrs.resource.base=/examples/example-addon",
 	service = ExampleAddon.class
 )
 public class ExampleAddon {

http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/c369d16a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleFilter.java
----------------------------------------------------------------------
diff --git a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleFilter.java
b/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleFilter.java
index f5fdde3..c2e89ac 100644
--- a/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleFilter.java
+++ b/example-jaxrs-application/src/main/java/com/liferay/portal/rest/example/ExampleFilter.java
@@ -26,7 +26,10 @@ import java.io.IOException;
  */
 @Component(
 	immediate = true,
-	property = "jaxrs.application.select=(component.name=com.liferay.portal.rest.example.ExampleApplication)"
+	property = {
+		"jaxrs.application.select=(component.name=com.liferay.portal.rest.example.ExampleApplication)",
+		"osgi.jaxrs.filter.base=/examples"
+	}
 )
 @Provider
 public class ExampleFilter implements ContainerRequestFilter {


Mime
View raw message