Examples of send()


Examples of org.apache.servicemix.components.util.ComponentSupport.send()

        transformer.executeChildTemplates(element, context.getContextNode(), context.getMode(), builder);
       
        out.setContent(new DOMSource(document));

        // now lets perform the invocation
        component.send(outExchange);
    }

    /**
     * Calls the service with the XML content included in the XML element and outputs the XML content
     */
 
View Full Code Here

Examples of org.apache.servicemix.jbi.nmr.flow.Flow.send()

            foundRoute = true;
            Flow flow = defaultFlowChooser.chooseFlow(flows, exchange);
            if (flow == null) {
                throw new MessagingException("Unable to choose a flow for exchange: " + exchange);
            }
            flow.send(exchange);
        }

        if (exchange.getRole() == Role.PROVIDER) {
            getSubscriptionManager().dispatchToSubscribers(exchange);
        }
View Full Code Here

Examples of org.apache.servicemix.nmr.api.Channel.send()

       
       
        org.apache.servicemix.nmr.api.Exchange messageExchange = control.createMock(org.apache.servicemix.nmr.api.Exchange.class);
        EasyMock.expect(messageExchange.getOut()).andReturn(normalizedMessage);
        message.put(org.apache.servicemix.nmr.api.Exchange.class, messageExchange);
        channel.send(messageExchange);
        EasyMock.replay(channel);
       
        NMRDestinationOutputStream jbiOS = new NMRDestinationOutputStream(message, channel);
       
        //Create array of more than what is in threshold in CachedOutputStream,
View Full Code Here

Examples of org.apache.servicemix.osworkflow.OSWorkflowEndpoint.send()

            try {
                NormalizedMessage msg = exchange.createMessage();
                msg.setContent(new StringSource(
                        "<example>Error Case Test passed!</example>"));
                exchange.setMessage(msg, "out");
                ep.send(exchange, false);
            } catch (Exception ex) {
                throw new WorkflowException(
                        "FailExampleFunction: Unable to answer request.", ex);
            }
        }
View Full Code Here

Examples of org.apache.servicemix.tck.SenderComponent.send()

        auditor.afterPropertiesSet();
       
        InOnly inonly = sender.createInOnlyExchange(ReceiverComponent.SERVICE, null, null);
        inonly.setInMessage(inonly.createMessage());
        inonly.getInMessage().setContent(new StringSource("<hello>world</hello>"));
        sender.send(inonly);
       
        int nbMessages = auditor.getExchangeCount();
        assertEquals(1, nbMessages);
        MessageExchange[] exchanges = auditor.getExchanges(0, 1);
        assertNotNull(exchanges);
View Full Code Here

Examples of org.apache.sling.api.servlets.HtmlResponse.send()

        // Specific status to help recognize this servlet in tests
        final int status = HttpServletResponse.SC_GATEWAY_TIMEOUT;
        hr.setStatus(status, getClass().getName() + ": GET always fails with status " + status);
        hr.setLocation("Location: some <script>");
        hr.setTitle(getClass().getName() + ": fake response to test <escaping>");
        hr.send(response, true);
    }
}
View Full Code Here

Examples of org.apache.sling.servlets.post.AbstractPostResponse.send()

                return;
            }
        }

        // create a html response and send if unsuccessful or no redirect
        response.send(httpResponse, isSetStatus(request));
    }

    /**
     * Creates an instance of a HtmlResponse.
     * @param req The request being serviced
View Full Code Here

Examples of org.apache.sling.servlets.post.PostResponse.send()

                return;
            }
        }

        // create a html response and send if unsuccessful or no redirect
        htmlResponse.send(response, isSetStatus(request));
    }

    /**
     * Redirects the HttpServletResponse, if redirectURL is not empty
     * @param htmlResponse
View Full Code Here

Examples of org.apache.soap.messaging.Message.send()

                }
            }
            // by default we maintain the session.
            spconn.setMaintainSession(true);
            msg.setSOAPTransport(spconn);
            msg.send(this.getUrl(), this.getSoapAction(), msgEnv);
            @SuppressWarnings("unchecked") // API uses raw types
            final Map<String, String> headers = spconn.getHeaders();
            result.setResponseHeaders(convertSoapHeaders(headers));

            if (this.getHeaderManager() != null) {
View Full Code Here

Examples of org.apache.soap.transport.http.SOAPHTTPConnection.send()

            StringWriter payloadSW = new StringWriter();
            callEnv.marshall(payloadSW, smr, reqCtx);
            reqCtx.setRootPart(payloadSW.toString(),
                               Constants.HEADERVAL_CONTENT_TYPE);

            st.send(url, "", null, null, smr, reqCtx);

            SOAPContext respCtx = st.getResponseSOAPContext();
            String payloadStr = Call.getEnvelopeString(st);
            Document respDoc =
              xdb.parse(new InputSource(new StringReader(payloadStr)));
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.