Package org.apache.jackrabbit.server.io

Examples of org.apache.jackrabbit.server.io.IOManager


        InputStream in = new ByteArrayInputStream(CONFIG_1.getBytes("UTF-8"));

        ResourceConfig config = new ResourceConfig(null);
        config.parse(in);

        IOManager ioMgr = config.getIOManager();
        assertNotNull(ioMgr);
        assertEquals("org.apache.jackrabbit.server.io.IOManagerImpl", ioMgr.getClass().getName());

        IOHandler[] handlers = ioMgr.getIOHandlers();
        assertNotNull(handlers);
        assertEquals(1, handlers.length);
        assertEquals("org.apache.jackrabbit.server.io.DefaultHandler", handlers[0].getName());
    }
View Full Code Here


        InputStream in = new ByteArrayInputStream(CONFIG_2.getBytes("UTF-8"));

        ResourceConfig config = new ResourceConfig(null);
        config.parse(in);

        IOManager ioMgr = config.getIOManager();
        assertNotNull(ioMgr);
        assertEquals("org.apache.jackrabbit.server.io.IOManagerImpl", ioMgr.getClass().getName());

        IOHandler[] handlers = ioMgr.getIOHandlers();
        assertNotNull(handlers);
        assertEquals(1, handlers.length);
        assertEquals("org.apache.jackrabbit.server.io.DefaultHandler", handlers[0].getName());
        DefaultHandler dh = (DefaultHandler) handlers[0];
        assertEquals("nt:unstructured", dh.getCollectionNodeType());
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.server.io.IOManager

Copyright © 2018 www.massapicom. 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.