Package org.apache.wink.webdav.model

Examples of org.apache.wink.webdav.model.Multistatus


        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // fill the multistatus object with the response
        addResponseToMultistatus(multistatus, propfind, entry, handler);

        // HTTP response
View Full Code Here


        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // root collection
        addResponseToMultistatus(multistatus, propfind, feed, provider);

        // sub-collections and entries
View Full Code Here

        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // fill the multistatus object with the response
        addResponseToMultistatus(multistatus, propfind, entry, handler);

        // HTTP response
View Full Code Here

        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // root collection
        addResponseToMultistatus(multistatus, propfind, feed, provider);

        // sub-collections and entries
View Full Code Here

        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // fill the multistatus object with the response
        addResponseToMultistatus(multistatus, propfind, entry, handler);

        // HTTP response
View Full Code Here

        } else {
            propfind = Propfind.unmarshal(new StringReader(propfindXml));
        }

        // make the response
        Multistatus multistatus = new Multistatus();

        // root collection
        addResponseToMultistatus(multistatus, propfind, feed, provider);

        // sub-collections and entries
View Full Code Here

        // we can't clear MediaType params due to UnsupportedOperationException on the collection, so...
        Assert.assertEquals(MediaType.valueOf(MediaType.APPLICATION_XML_TYPE.toString()), mediaType);
        // body
        String responseContent = response.getContentAsString();
        StringReader reader = new StringReader(responseContent);
        Multistatus multistatus = Multistatus.unmarshal(reader);

        return multistatus;
    }
View Full Code Here

            // request
            String path = WebDAVCollectionResource.PATH + "/" + i;
            Propfind propfind = new Propfind();
            propfind.setPropname(new Propname());
            Multistatus multistatus = propfind(propfind, path, -1);

            // responses - 1 response
            Map<String, Response> responses = multistatus.getResponsesAsMapByHref();
            Assert.assertEquals(1, responses.size());
            Response response = responses.get(path);
            Assert.assertNotNull(response);
            checkDocumentPropertyNames(response);
        }
View Full Code Here

            // request
            String path = WebDAVCollectionResource.PATH + "/" + i;
            String name = "title" + i;
            Propfind propfind = new Propfind();
            propfind.setAllprop(new Allprop());
            Multistatus multistatus = propfind(propfind, path, -1);

            // responses - 1 response
            Map<String, Response> responses = multistatus.getResponsesAsMapByHref();
            Assert.assertEquals(1, responses.size());
            Response response = responses.get(path);
            Assert.assertNotNull(response);
            checkDocumentProperties(response, name);
        }
View Full Code Here

            Propfind propfind = new Propfind();
            QName propertyName = new QName("blah");
            Prop prop = new Prop();
            prop.setProperty(propertyName);
            propfind.setProp(prop);
            Multistatus multistatus = propfind(propfind, path, 0);

            // 1 response
            Map<String, Response> responses = multistatus.getResponsesAsMapByHref();
            Assert.assertEquals(1, responses.size());
            Response response = responses.get(path);
            Assert.assertNotNull(response);
            Assert.assertEquals(1, response.getPropstat().size());
            Propstat propstat = response.getPropstat().get(0);
View Full Code Here

TOP

Related Classes of org.apache.wink.webdav.model.Multistatus

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.