Examples of removeContent()


Examples of org.apache.cxf.message.Message.removeContent()

     */
    private void setFaultMessage(MessageContext mc, Exception exception) {
        Message msg = ((WrappedMessageContext)mc).getWrappedMessage();
        msg.setContent(Exception.class, exception);
        msg.removeContent(XMLStreamReader.class);
        msg.removeContent(Source.class);

        try {
            SOAPMessage soapMessage = null;

            SoapVersion version = null;
View Full Code Here

Examples of org.apache.cxf.message.Message.removeContent()

            }
            InputStream is = m.getContent(InputStream.class);
            if (is != null) {
                try {
                    is.close();
                    m.removeContent(InputStream.class);
                } catch (IOException ioex) {
                    //ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.cxf.message.Message.removeContent()

            }
            InputStream is = m.getContent(InputStream.class);
            if (is != null) {
                try {
                    is.close();
                    m.removeContent(InputStream.class);
                } catch (IOException ioex) {
                    //ignore
                }
            }
        }
View Full Code Here

Examples of org.apache.cxf.message.Message.removeContent()

     * fault message then it is replaced with a fault message
     */
    private void setFaultMessage(MessageContext mc, Exception exception) {
        Message msg = ((WrappedMessageContext)mc).getWrappedMessage();
        msg.setContent(Exception.class, exception);
        msg.removeContent(XMLStreamReader.class);
        msg.removeContent(Source.class);

        try {
            SOAPMessage soapMessage = null;

View Full Code Here

Examples of org.apache.cxf.message.MessageImpl.removeContent()

        out.flush();
        out.close();
       
        CachedOutputStream stream = message.get(CachedOutputStream.class);
        copy.setContent(InputStream.class, stream.getInputStream());
        copy.removeContent(CachedOutputStream.class);

        // Create a new incoming exchange and store the original exchange for the response
        ExchangeImpl ex = new ExchangeImpl();
        ex.setInMessage(copy);
        ex.put(IN_EXCHANGE, message.getExchange());
View Full Code Here

Examples of org.jdom.Document.removeContent()

        
        StringReader reader = new StringReader(xml);
        Document doc = getBuilder(false).build(reader);

        Element root = doc.getRootElement();
        doc.removeContent();
        doc.addContent(((Element)getRoot().clone()).addContent(root));
       
        Element div = doc.getRootElement().getChild("div", getNamespace("xhtml"));
        doc.getRootElement().removeContent();
        return div;
View Full Code Here

Examples of org.jdom.Document.removeContent()

        
        StringReader reader = new StringReader(xml);
        Document doc = getBuilder(true).build(reader);

        Element root = doc.getRootElement();
        doc.removeContent();
        doc.addContent(((Element)getRoot().clone()).addContent(root));
       
        Element div = doc.getRootElement().getChild("div", getNamespace("xhtml"));
        doc.getRootElement().removeContent();
        return div;
View Full Code Here

Examples of org.jdom.Element.removeContent()

    } else {
//      parameter l�schen
      if(tableIncludeParameter.getSelectionCount()>0) {       
        Element param = (Element)tableIncludeParameter.getSelection()[0].getData("param");
        Element params = ((Element)listOfElement.get(0)).getParentElement();
        params.removeContent(param);
        listOfElement = params.getChildren("param");
        tableIncludeParameter.remove(tableIncludeParameter.getSelectionIndex());
        includeParameterTabItem.setData("params", listOfElement);
      }
    }
View Full Code Here

Examples of org.jdom.Element.removeContent()

        _dom.setChanged(true);
        if(_dom.isDirectory() || _dom.isLifeElement()) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_job), SchedulerDom.MODIFY);
        return;
      }

      desc.removeContent();
      if (!(f == null || f.equals(""))) {
        setInclude(f);
      }
      desc.addContent(new CDATA(description));
      _dom.setChanged(true);
View Full Code Here

Examples of org.jdom.Element.removeContent()

            return;
        }
        Element tagElem = elem.getChild(tagName, elem.getNamespace());
        if (tagElem != null) {
            String updated = CoordELFunctions.evalAndWrap(eval, tagElem.getText());
            tagElem.removeContent();
            tagElem.addContent(updated);
        }
        else {
            LOG.warn(" Value NOT FOUND " + tagName);
        }
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.