현재 이 구성 요소는 기본적으로 데이터 쿼리를 지원하지 않습니다(나중에 추가될 수 있음). 이제 다음과 같이 HTTP 를 사용하여 issuer를 쿼리할 수 있습니다.
//define the route to perform a basic query
from("direct:query")
.recipientList(simple("http://localhost:8983/solr/select/?q=${body}"))
.convertBodyTo(String.class);
...
//query for an id of '1234' (url encoded)
String responseXml = (String) template.requestBody("direct:query", "id%3A1234");
//define the route to perform a basic query
from("direct:query")
.recipientList(simple("http://localhost:8983/solr/select/?q=${body}"))
.convertBodyTo(String.class);
...
//query for an id of '1234' (url encoded)
String responseXml = (String) template.requestBody("direct:query", "id%3A1234");
Copy to ClipboardCopied!Toggle word wrapToggle overflow