Package org.apache.wink.test.mock

Examples of org.apache.wink.test.mock.MockHttpServletRequestWrapper.addHeader()


        // headers
        mockRequest.setMethod(WebDAVMethod.PROPFIND.name());
        mockRequest.setRequestURI(requestURI);
        mockRequest.setContentType(MediaType.APPLICATION_XML);
        if (depth >= 0) {
            mockRequest.addHeader(WebDAVHeaders.DEPTH, String.valueOf(depth));
        }
        // body
        StringWriter writer = new StringWriter();
        Propfind.marshal(propfind, writer);
        mockRequest.setContent(writer.toString().getBytes());
View Full Code Here


        // headers
        mockRequest.setMethod(WebDAVMethod.PROPFIND.name());
        mockRequest.setRequestURI(requestURI);
        mockRequest.setContentType(MediaType.APPLICATION_XML);
        if (depth >= 0) {
            mockRequest.addHeader(WebDAVHeaders.DEPTH, String.valueOf(depth));
        }
        // body
        StringWriter writer = new StringWriter();
        Propfind.marshal(propfind, writer);
        mockRequest.setContent(writer.toString().getBytes());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.