Examples of toResult()


Examples of com.netflix.exhibitor.core.index.LogSearch.toResult()

        SearchResult    result;
        try
        {
            DateFormat      dateFormatter = new SimpleDateFormat(DATE_FORMAT_STR);
            SearchItem      item = logSearch.toResult(docId);
            if ( item == null )
            {
                return Response.status(Response.Status.NOT_FOUND).build();
            }
View Full Code Here

Examples of com.netflix.exhibitor.core.index.LogSearch.toResult()

            {
                if ( i < cachedSearch.getTotalHits() )
                {
                    ObjectNode      data = JsonNodeFactory.instance.objectNode();
                    int             docId = cachedSearch.getNthDocId(i);
                    SearchItem      item = logSearch.toResult(docId);
                   
                    data.put("DT_RowId", "index-query-result-" + docId);
                    data.put("0", getTypeName(EntryTypes.getFromId(item.getType())));
                    data.put("1", dateFormatter.format(item.getDate()));
                    data.put("2", trimPath(item.getPath()));
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toResult()

            Message responseMessage = exchange.getOut(Message.class);
            if (responseMessage != null) {
                Source responseBody = responseMessage.getBody(Source.class);
                WebServiceMessage response = messageContext.getResponse();
                XmlConverter xmlConverter = configuration.getXmlConverter();
                xmlConverter.toResult(responseBody, response.getPayloadResult());
            }
        }
    }

    private void populateExchangeFromMessageContext(MessageContext messageContext, Exchange exchange) {
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toResult()

            Message responseMessage = exchange.getOut(Message.class);
            if (responseMessage != null) {
                Source responseBody = responseMessage.getBody(Source.class);
                WebServiceMessage response = messageContext.getResponse();
                XmlConverter xmlConverter = configuration.getXmlConverter();
                xmlConverter.toResult(responseBody, response.getPayloadResult());
            }
        }
    }

    private void populateExchangeFromMessageContext(MessageContext messageContext, Exchange exchange) {
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toResult()

                WebServiceMessage response = messageContext.getResponse();

                configuration.getMessageFilter().filterConsumer(exchange, response);

                XmlConverter xmlConverter = configuration.getXmlConverter();
                xmlConverter.toResult(responseBody, response.getPayloadResult());
            }
        }
    }

    private void populateExchangeFromMessageContext(MessageContext messageContext, Exchange exchange) {
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toResult()

                WebServiceMessage response = messageContext.getResponse();

                configuration.getMessageFilter().filterConsumer(exchange, response);

                XmlConverter xmlConverter = configuration.getXmlConverter();
                xmlConverter.toResult(responseBody, response.getPayloadResult());
            }
        }
    }

    private void populateExchangeFromMessageContext(MessageContext messageContext, Exchange exchange) {
View Full Code Here

Examples of org.apache.camel.converter.jaxp.XmlConverter.toResult()

                WebServiceMessage response = messageContext.getResponse();
               
                configuration.getMessageFilter().filterConsumer(exchange, response);
               
                XmlConverter xmlConverter = configuration.getXmlConverter();
                xmlConverter.toResult(responseBody, response.getPayloadResult());
            }
        }
    }

    private void populateExchangeFromMessageContext(MessageContext messageContext, Exchange exchange) {
View Full Code Here

Examples of org.apache.oodt.xmlps.structs.CDEResult.toResult()

                                .getSelectElementSet()));

                if (res.getRows() == null
                        || (res.getRows() != null && res.getRows().size() == 0)) {
                }
                Result r = res.toResult();
                if (r != null) {
                    query.getResults().add(r);
                }
            } catch (SQLException e) {
                e.printStackTrace();
View Full Code Here

Examples of org.apache.servicemix.jbi.jaxp.SourceTransformer.toResult()

                    TeeInputStream tis = new TeeInputStream(original.getInputStream(), os);
                    exchange.getMessage("in").setContent(new StreamSource(tis));
                } else {
                    MessageUtil.enableContentRereadability(in);
                    SourceTransformer transformer = new SourceTransformer();
                    transformer.toResult(in.getContent(), new StreamResult(os));
                }
            }
        } catch (IOException e) {
            LOG.error(String.format("Error occurred while storing message %s", event.getExchange().getExchangeId()), e);
        } catch (TransformerException e) {
View Full Code Here

Examples of org.apache.servicemix.jbi.jaxp.SourceTransformer.toResult()

                    TeeInputStream tis = new TeeInputStream(original.getInputStream(), os);
                    exchange.getMessage("in").setContent(new StreamSource(tis));
                } else {
                    MessageUtil.enableContentRereadability(in);
                    SourceTransformer transformer = new SourceTransformer();
                    transformer.toResult(in.getContent(), new StreamResult(os));
                }
            }
        } catch (IOException e) {
            LOGGER.error("Error occured while storing message {}", event.getExchange().getExchangeId(), e);
        } catch (TransformerException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.