本文整理了Java中org.apache.camel.Body
类的一些代码示例,展示了Body
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body
类的具体详情如下:
包路径:org.apache.camel.Body
类名称:Body
暂无
代码示例来源:origin: vert-x3/vertx-examples
/**
* Accepts only release announce.
*/
public boolean isRelease(@Body SyndFeed feed) {
SyndEntry firstEntry = (SyndEntry) feed.getEntries().get(0);
return firstEntry.getTitle().toLowerCase().contains("release");
}
代码示例来源:origin: io.astefanutti.camel.cdi/simplecontextname
public String sayHello(@Body String message) {
return "Hello " + message + " user for example 1.";
}
}
代码示例来源:origin: camelinaction/camelinaction2
public void addItem(@Header("sessionId") String sessionId, @Body CartDto dto) {
LOG.info("addItem {} {}", sessionId, dto);
Set<CartDto> dtos = content.get(sessionId);
if (dtos == null) {
dtos = new LinkedHashSet<>();
content.put(sessionId, dtos);
}
dtos.add(dto);
}
代码示例来源:origin: camelinaction/camelinaction2
public void addItem(@Header("sessionId") String sessionId, @Body CartDto dto) {
LOG.info("addItem {} {}", sessionId, dto);
Set<CartDto> dtos = content.get(sessionId);
if (dtos == null) {
dtos = new LinkedHashSet<>();
content.put(sessionId, dtos);
}
dtos.add(dto);
}
代码示例来源:origin: apache/servicemix
public void deletePerson(@Body String id,Exchange exchange){
Person result = persons.remove(Integer.parseInt(id));
checkResult(id, exchange, result);
}
代码示例来源:origin: apache/servicemix
public void getPerson(@Body String id,Exchange exchange){
Person result = persons.get(Integer.parseInt(id));
checkResult(id, exchange, result);
}
代码示例来源:origin: OpenWiseSolutions/openhub-framework
@Handler
public void printGreeting(@Body AsyncHelloRequest req) {
Assert.notNull(req, "req must not be null");
String greeting = "Hello " + req.getName();
LOG.debug("Greeting: " + greeting);
}
}
代码示例来源:origin: camelinaction/camelinaction
public Document handleIncomingOrder(@Body Document xml,
@XPath("/order/@customerId") int customerId,
@Bean(ref = "guid", method = "generate") int orderId) {
Attr attr = xml.createAttribute("orderId");
attr.setValue("" + orderId);
Node node = xml.getElementsByTagName("order").item(0);
node.getAttributes().setNamedItem(attr);
return xml;
}
代码示例来源:origin: io.syndesis.integration/integration-runtime
@SuppressWarnings("PMD.UseLocaleWithCaseConversions")
public String myProcessor(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: apache/servicemix
@Handler
public Map getProcessVariables(@Body String body,
@Header(Exchange.FILE_NAME) String filename,
@Simple("${date:now:yyyy-MM-dd kk:mm:ss}") String timestamp) {
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("message", body);
variables.put("orderid", filename);
variables.put("timestamp", timestamp);
return variables;
}
}
代码示例来源:origin: io.syndesis/integration-component-proxy
@SuppressWarnings("PMD.UseLocaleWithCaseConversions")
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: org.ojbc.bundles.intermediaries/subscription-notification-service-intermediary-common
public String createCamelEmail(Exchange in, @Body ExpiringSubscriptionEmail expiringSubscriptionEmail)
{
in.getIn().setHeader("to", expiringSubscriptionEmail.getTo());
in.getIn().setHeader("subject", expiringSubscriptionEmail.getSubject());
return expiringSubscriptionEmail.getMessageBody();
}
代码示例来源:origin: io.syndesis.integration/integration-runtime
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis/camel-component-proxy
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis/camel-component-proxy
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis/camel-component-proxy
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis.integration/integration-runtime
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis.integration/integration-runtime
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis.integration/integration-runtime
public String process(@Body String body) {
return body.toUpperCase();
}
}
代码示例来源:origin: io.syndesis/camel-component-proxy
public String process(@Body String body) {
return body.toUpperCase();
}
}
内容来源于网络,如有侵权,请联系作者删除!