Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prove we're receiving webhook callbacks; serialize the body as Legacy…
… JMS ATOM.
- Loading branch information
Showing
6 changed files
with
94 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
fcrepo-webhooks/src/test/java/org/fcrepo/webhooks/TestEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.fcrepo.webhooks; | ||
|
||
import javax.ws.rs.POST; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.core.Response; | ||
|
||
import static javax.ws.rs.core.Response.ok; | ||
|
||
@Path("/dummy") | ||
public class TestEndpoint { | ||
|
||
public static String lastBody; | ||
|
||
@POST | ||
public Response dummyWebhookEndpoint(String body) { | ||
|
||
TestEndpoint.lastBody = body; | ||
return ok().build(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ | |
"providers" : [ | ||
{ "classname" : "servlet" } | ||
] | ||
} | ||
}, | ||
"node-types" : ["fedora-node-types.cnd"] | ||
} |