Examples of createFrom()


Examples of com.nexirius.util.XFile.createFrom()

        for (String fname = m_files.firstItem(); fname != null; fname = m_files.nextItem()) {
            XFile newfile = new XFile(targetDir, fname);

            newfile.mkdirs();
            newfile.delete();
            newfile.createFrom(new XFile(dirname, fname), false);
        }

        return go(targetDir, pat, rep, extension);
    }
View Full Code Here

Examples of com.nexirius.util.XFile.createFrom()

        if (!dbFile.exists()) {
            InputStream stream = new BufferedInputStream(dbFile.getClass().getClassLoader().getResourceAsStream(dbFileName));

            try {
                new XFile(dbDirName).mkdirs();
                dbFile.createFrom(stream);
            } catch (IOException e) {
                e.printStackTrace();
                DialogManager.error(e);
            }
        }
View Full Code Here

Examples of com.nexirius.util.XFile.createFrom()

        if (!dbFile.exists()) {
            InputStream stream = new BufferedInputStream(dbFile.getClass().getClassLoader().getResourceAsStream(dbFileName));

            try {
                new XFile(dbDirName).mkdirs();
                dbFile.createFrom(stream);
            } catch (IOException e) {
                throw new ErrorMessageException("Cannot initialize database", e, null);
            }
        }
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.BlockFactory.createFrom()

        Message message = null;
        if (mode.equals(Mode.PAYLOAD)) {
            try {
                MessageFactory mf =
                        (MessageFactory)FactoryRegistry.getFactory(MessageFactory.class);
                block = factory.createFrom(value, null, null);


                message = mf.create(proto);
                message.setBodyBlock(block);
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.BlockFactory.createFrom()

                // Block.  If the value contains attachments, you need to do more.
                // TODO For now the only value that contains Attachments is SOAPMessage
                if (value instanceof SOAPMessage) {
                    message = mf.createFrom((SOAPMessage)value);
                } else {
                    block = factory.createFrom(value, null, null);
                    message = mf.createFrom(block, null, proto);
                }
            } catch (Exception e) {
                throw ExceptionFactory.makeWebServiceException(e);
            }
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.BlockFactory.createFrom()

        ObjectFactory factory = new ObjectFactory();
        SendImage request = factory.createSendImage();
        request.setInput(imageDepot);
       
        BlockFactory blkFactory = (JAXBBlockFactory) FactoryRegistry.getFactory(JAXBBlockFactory.class);
        Block block = blkFactory.createFrom(request, context, null);
       
        MessageFactory msgFactory = (MessageFactory) FactoryRegistry.getFactory(MessageFactory.class);
        Message msg = msgFactory.create(Protocol.soap11);
       
        msg.setBodyBlock(block);
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.JAXBBlockFactory.createFrom()

            // on the binding information available.
            Protocol proto = Protocol.getProtocolForBinding(endpointDesc.getClientBindingID());

            // Create a block from the value
            elementQName = XMLRootElementUtil.getXmlRootElementQNameFromObject(value);
            Block block = factory.createFrom(value, context, elementQName);
            MessageFactory mf = (MessageFactory)FactoryRegistry.getFactory(MessageFactory.class);

            if (mode.equals(Mode.PAYLOAD)) {
                // Normal case
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.JAXBBlockFactory.createFrom()

            // Put the object into the message
            JAXBBlockFactory factory =
                    (JAXBBlockFactory)FactoryRegistry.getFactory(JAXBBlockFactory.class);
            JAXBBlockContext blockContext = new JAXBBlockContext(packages, packagesKey);
            blockContext.setWebServiceNamespace(ed.getTargetNamespace());
            Block block = factory.createFrom(object,
                                             blockContext,
                                             wrapperQName);
            m.setBodyBlock(block);

            return m;
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.JAXBBlockFactory.createFrom()

            // Put the object into the message
            JAXBBlockFactory factory =
                    (JAXBBlockFactory)FactoryRegistry.getFactory(JAXBBlockFactory.class);
            JAXBBlockContext blockContext = new JAXBBlockContext(packages, packagesKey);
            blockContext.setWebServiceNamespace(ed.getTargetNamespace());
            Block block = factory.createFrom(object,
                                             blockContext,
                                             wrapperQName);
            m.setBodyBlock(block);

            return m;
View Full Code Here

Examples of org.apache.axis2.jaxws.message.factory.JAXBBlockFactory.createFrom()

            // Put the object into the message
            JAXBBlockFactory factory =
                    (JAXBBlockFactory)FactoryRegistry.getFactory(JAXBBlockFactory.class);
            JAXBBlockContext blockContext = new JAXBBlockContext(packages, packagesKey);
            blockContext.setWebServiceNamespace(ed.getTargetNamespace());
            Block block = factory.createFrom(object,
                                             blockContext,
                                             wrapperQName)// The factory will get the qname from the value
            m.setBodyBlock(block);

            //  Now place the headers in the message
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.