Package org.fcrepo.server.types.gen

Examples of org.fcrepo.server.types.gen.MIMETypedStream


    }   
   
    public static void getDatastreamDissemination() throws Exception {
       
        // test for DC datastream
        MIMETypedStream ds = null;
        ds = APIA.getDatastreamDissemination("demo:11", "DC", null);
        System.out.println("SOAP Request: getDatastreamDissemination for DC datastream of demo object demo:11...");       
        String dsXML = new String(ds.getStream(), "UTF-8");
        System.out.println("SOAP Response: GetDatastreamDissemination Object:demo:11 Datastream:DC succeeded.");
        System.out.println("SOAP Response: DC datastream contents: \n"+dsXML);
       
        // test for type X datastream        
        ds = APIA.getDatastreamDissemination("demo:11", "TECH1", null);
        System.out.println("\nSOAP Request: getDatastreamDissemination for TECH1 datastream of demo object demo:11...");       
        dsXML = new String(ds.getStream(), "UTF-8");
        System.out.println("SOAP Response: GetDatastreamDissemination Object:demo:11 Datastream:TECH1 succeeded.");
        System.out.println("SOAP Response: TECH1 datastream contents: \n"+dsXML);       

        // test for type E datastream            
        ds = APIA.getDatastreamDissemination("demo:11", "MRSID", null);   
View Full Code Here


    }

    public static void getDissemination() throws Exception {
   
    // test dissemination of the Default Disseminator
    MIMETypedStream diss = null;
    diss = APIA.getDissemination("demo:5", "fedora-system:3", "viewDublinCore", new Property[0], null);
    System.out.println("SOAP Request: getDissemination for method viewDublinCore of demo object demo:11...");   
    String dsXML = new String(diss.getStream(), "UTF-8");
    System.out.println("SOAP Response: GetDissemination Object:demo:11 Method:viewDublinCore succeeded.");
    System.out.println("SOAP Response: Dissemination results: \n"+dsXML);   
   
    // test dissemination of getThumb method with no parameters
    diss = APIA.getDissemination("demo:5", "demo:1", "getThumbnail", new Property[0], null);
View Full Code Here

TOP

Related Classes of org.fcrepo.server.types.gen.MIMETypedStream

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.