Examples of BoxConfigBuilder


Examples of com.box.boxjavalibv2.BoxConfigBuilder

        BoxJSONParser jsonParser = new BoxJSONParser(new BoxResourceHub());
        return jsonParser.parseIntoBoxObjectQuietly(json, (Class<BoxObject>) cls);
    }

    public static IBoxConfig getConfig() {
        BoxConfigBuilder builder = new BoxConfigBuilder();
        return builder.build();
    }
View Full Code Here

Examples of com.box.boxjavalibv2.BoxConfigBuilder

     * @param clientSecret       client secret to use when authenticating with the API
     * @param redirectUrl        redirect URL to use with OAuth
     */
    @Override
    public void initializeAuthFlow(Object activity, String clientId, String clientSecret, String redirectUrl) {
        client = new BoxClient(clientId, clientSecret, null, null, (new BoxConfigBuilder()).build());
        initializeAuthFlow(activity, clientId, clientSecret, redirectUrl, client);
    }
View Full Code Here

Examples of com.box.boxjavalibv2.BoxConfigBuilder

    @Test
    public void testListenerCompleteDownload() throws IOException, BoxRestException {
        final TestInputStream stream = new TestInputStream();
        final StateKeepingFileTransferListener listener = new StateKeepingFileTransferListener();
        final BoxFileDownload testDownload = new BoxFileDownload(new BoxConfigBuilder().build(), new TestingDownloadRESTClient(stream), null);
        testDownload.setProgressListener(listener);
        new Thread() {

            public void run() {
                try {
View Full Code Here

Examples of com.box.boxjavalibv2.BoxConfigBuilder

    @Test
    public void testListenerCancelDownload() throws IOException, BoxRestException {
        final TestInputStream stream = new TestInputStream();
        final StateKeepingFileTransferListener listener = new StateKeepingFileTransferListener();
        final BoxFileDownload testDownload = new BoxFileDownload(new BoxConfigBuilder().build(), new TestingDownloadRESTClient(stream), null);
        testDownload.setProgressListener(listener);
        final FutureTask<Void> task = new FutureTask<Void>(new Callable<Void>() {

            @Override
            public Void call() throws Exception {
View Full Code Here

Examples of com.box.boxjavalibv2.BoxConfigBuilder

    @Test
    public void testListenerErrorDownload() throws IOException, BoxRestException {
        final TestInputStream stream = new TestInputStream();
        final StateKeepingFileTransferListener listener = new StateKeepingFileTransferListener();
        final BoxFileDownload testDownload = new BoxFileDownload(new BoxConfigBuilder().build(), new TestingDownloadRESTClient(stream), null);
        testDownload.setProgressListener(listener);
        new Thread() {

            public void run() {
                try {
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.