2015-07-10 95 views
0

我正在嘗試爲modehape-bom-remote-client找到一些示例示例。在GitHub中有很多項目可以使用modehape-bom-embedded,但是我沒有找到任何示例或帶有modeshape-bom-remote-client的示例代碼。唯一可用的文檔是如何將其添加爲pom條目。Mode Mode Bom遠程客戶端示例

任何鏈接,我可以找到相同的。

回答

0

在Github上振形,你可以找到在單元測試中一些例子休息:

ModeShapeRestClient client = new ModeShapeRestClient(
    "http://localhost:8090/modeshape/repo/default", "test", "password"); 

Repositories repositories = client.getRepositories(); 

https://github.com/ModeShape/modeshape/blob/master/modeshape-jdbc/src/test/java/org/modeshape/jdbc/rest/ModeShapeRestClientTest.java

和JDBC驅動程序: https://github.com/ModeShape/modeshape/blob/master/modeshape-jdbc/src/test/java/org/modeshape/jdbc/JcrHttpDriverIntegrationTest.java