Package org.fcrepo.common.http

Examples of org.fcrepo.common.http.HttpInputStream


    }
*/

    @Test
    public void testGetDisseminationUserInput() throws Exception {
        HttpInputStream his =
                s_client.get("/get/demo:29/demo:27/convertImage?convertTo=gif", true);
        String actual = his.getContentType();
        his.close();
        assertEquals("image/gif", actual);
    }
View Full Code Here


    @Test
    public void testGetChainedDissemination() throws Exception {
        // test chained dissemination using local services
        // The object contains an E datastream that is a dissemination of the local SAXON service.
        // This datastream is input to another dissemination that uses the local FOP service.
        HttpInputStream his = client.get("/get/demo:26/demo:19/getPDF", false);
        String contentType = his.getContentType();
        his.close();
        assertEquals("application/pdf", contentType);
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.common.http.HttpInputStream

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.