247.4. 例子
247.4.1. 列出所有应用程序 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
// sending route from("direct:apps") .to("openshift:myClient?username=foo&password=secret&operation=list"); .to("log:apps");
// sending route
from("direct:apps")
.to("openshift:myClient?username=foo&password=secret&operation=list");
.to("log:apps");
在本例中,所有应用程序的信息返回为 pojo。如果您想要 json 响应,则设置 mode=json。