Package org.fcrepo.server.types.gen

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


    @Test
    public void testGetDisseminationUserInput() throws Exception {
        MIMETypedStream diss = null;
        Parameters params = new Parameters();
        Property prop = new Property();
        prop.setName("convertTo");
        prop.setValue("gif");
        params.getParameter().add(prop);
        diss =
                apia.getDissemination("demo:29",
                                      "demo:27",
                                      "convertImage",
View Full Code Here


    System.out.println("SOAP Response: GetDissemination Object:demo:5 Method:getThumbnail succeeded.");
    System.out.println("SOAP Response: Dissemination results: BINARY DATA "+diss);   
   
    // test dissemination using resizeImage method with parameters       
    Property[] parms = new Property[4];
    Property p = new Property();
    p.setName("width");
    p.setValue("100");
    parms[0] = p;
    Property p2 = new Property();
    p2.setName("height");
    p2.setValue("100");
    parms[1] = p2;
    Property p3 = new Property();
    p3.setName("x");
    p3.setValue("100");
    parms[2] = p3;
    Property p4 = new Property();
    p4.setName("y");
    p4.setValue("100");
    parms[3] = p4;   
    diss = APIA.getDissemination("demo:29", "demo:27", "cropImage", parms, null);
    System.out.println("\nSOAP Request: getDissemination for method cropImage of demo object demo:29...");       
    System.out.println("SOAP Response: GetDissemination Object:demo:29 Method:cropImage succeeded.");
    System.out.println("SOAP Response: Dissemination results: BINARY DATA "+diss);
View Full Code Here

TOP

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

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.