Examples of toStringWithConsume()


Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

            secretResolver = SecretResolverFactory.create(documentElement, true);          
            Stack<String> nameStack = new Stack<String>();
            readChildElements(documentElement, nameStack);
            isInitialized = true;
            isLoadedConfigurationPreserved = false;
            documentXML = documentElement.toStringWithConsume();
        } catch (XMLStreamException e) {
            log.fatal("Problem in parsing the configuration file ", e);
            throw new ServerConfigurationException(e);
        }
    }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

            } else if (type == SmooksMediator.TYPES.XML) {
                OMElement element = PayloadHelper.getXMLPayload(synCtx.getEnvelope());

                if (element != null) {
                    try {
                        return new ByteArrayInputStream(element.toStringWithConsume().getBytes());
                    } catch (XMLStreamException e) {
                        handleException("Error while serializing the input", synLog);
                    }
                }
            }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

                    wsdlElement = (OMElement) wsdNode;
                } else {
                    throw new CSGException("Invalid instance type detected when parsing the WSDL '"
                            + wsdlLocation + "'. Required OMElement type!");
                }
                privateServiceMetaData.setInLineWSDL(wsdlElement.toStringWithConsume());
            }

            if(hasInOutOperations(service)){
                privateServiceMetaData.setHasInOutMEP(true);
            }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

            issuer.setAudienceRestrictionCondition(request.getRealm());
            issuer.setConfig(getSAMLTokenIssuerConfig(MessageContext.getCurrentMessageContext()
                    .getAxisService()));
            rstr = issuer.issuePassiveRSTR(rahasData);
            reponseToken = new ResponseToken();
            reponseToken.setResults(rstr.toStringWithConsume());

        } catch (Exception e) {
            throw new TrustException("errorWhileProcessingAttributeRequest",e);
        }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

            issuer.setAudienceRestrictionCondition(request.getRealm());
            issuer.setConfig(getSAMLTokenIssuerConfig(MessageContext.getCurrentMessageContext()
                    .getAxisService()));
            rstr = issuer.issuePassiveRSTR(rahasData);
            reponseToken = new ResponseToken();
            reponseToken.setResults(rstr.toStringWithConsume());

        } catch (Exception e) {
            throw new TrustException("errorWhileProcessingSigninRequest",e);
        }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

        ExecutionContext execContext = invocationContext.getExecutionContext();
        OMElement omSecurityContextHeader = execContext.getSecurityContextHeader();

        ContextHeaderDocument document = null;
        try {
            document = ContextHeaderDocument.Factory.parse(omSecurityContextHeader.toStringWithConsume());
        } catch (XMLStreamException e) {
            e.printStackTrace();
        } catch (XmlException e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

        if (topicEl != null) {
            if (topicEl.getChildElements().hasNext()) {
                OMElement widgetTopicOMEl = (OMElement) topicEl.getChildElements().next();
                String widgetTopicString = null;
                try {
                    widgetTopicString = widgetTopicOMEl.toStringWithConsume();
                } catch (XMLStreamException e) {
                    // TODO add with throws                                                                                                                  Ms
                    e.printStackTrace();
                }
                String[] topicSubstrings = widgetTopicString.split(":");
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

        OMElement omSecurityContextHeader = context.getExecutionContext().getSecurityContextHeader();

        ContextHeaderDocument document = null;
        try {
            if (omSecurityContextHeader != null) {
                document = ContextHeaderDocument.Factory.parse(omSecurityContextHeader.toStringWithConsume());
            }
        } catch (XMLStreamException e) {
            e.printStackTrace();
        } catch (XmlException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

                assertNotNull(env.getBody());
                assertNotNull(env.getBody().getChildrenWithLocalName("c"));

                OMElement element = (OMElement) env.getBody().getChildrenWithLocalName("c").next();

                String text = element.toStringWithConsume();

                assertTrue("round trip of message failed" + " - due to invalid messege content",
                        text.indexOf(new Long(value).toString()) > 0);

                Thread.sleep(5000);
View Full Code Here

Examples of org.apache.axiom.om.OMElement.toStringWithConsume()

                assertNotNull(env.getBody());
                assertNotNull(env.getBody().getChildrenWithLocalName("c"));

                OMElement element = (OMElement) env.getBody().getChildrenWithLocalName("c").next();

                String text = element.toStringWithConsume();

                assertTrue("round trip of message failed" + " - due to invalid messege content",
                        text.indexOf(new Long(value).toString()) > 0);

                Thread.sleep(5000);
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.