Examples of BoxFileRequestObject


Examples of com.box.boxjavalibv2.requests.requestobjects.BoxFileRequestObject

    public void testUpdateFileInfo() throws Exception {
        final Map<String, Object> headers = new HashMap<String, Object>();
        // parameter type is String
        headers.put("CamelBox.fileId", testFileId);
        // parameter type is com.box.boxjavalibv2.requests.requestobjects.BoxFileRequestObject
        final BoxFileRequestObject requestObject = BoxFileRequestObject.getRequestObject();
        requestObject.setTags(new String[]{CAMEL_TEST_TAG});
        headers.put("CamelBox.fileRequest", requestObject);
        BoxFile result = requestBodyAndHeaders("direct://UPDATEFILEINFO", null, headers);

        assertNotNull("updateFileInfo result", result);
        LOG.debug("updateFileInfo: " + result);
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.