导航菜单

页面标题

页面副标题

Adobe Acrobat v15.3 - a.java 源代码

正在查看: Adobe Acrobat v15.3 应用的 a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.adobe.libs.services.a;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.message.BasicNameValuePair;

public class a {

    static final boolean f126a;
    private static a e;
    private String[] b = new String[d.values().length];
    private Map<c, e> c = new HashMap();
    private boolean d = false;

    static {
        f126a = !a.class.desiredAssertionStatus();
    }

    private a() {
        ArrayList arrayList = new ArrayList();
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_ROOT, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=2"));
        this.c.put(c.GET_SYSTEM_FOLDERS, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_USER_ME, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_FOLDERS_ID, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_SESSION_DOWNLOAD_TOKEN, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        this.c.put(c.GET_ASSETS_ID, new e(d.DOWNLOAD, com.adobe.libs.services.h.f.GET, false, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.POST_ASSETS, new e(d.UPLOAD, com.adobe.libs.services.h.f.POST, true, arrayList));
        arrayList.clear();
        this.c.put(c.PUT_ASSETS_ID, new e(d.UPLOAD, com.adobe.libs.services.h.f.PUT, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.POST_FOLDERS_ID, new e(d.API, com.adobe.libs.services.h.f.POST, true, arrayList));
        arrayList.clear();
        this.c.put(c.DELETE_ASSETS_ID, new e(d.API, com.adobe.libs.services.h.f.DELETE, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_ASSETS_ID_METADATA_KEY, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_USERS_ME_QUOTAS_STORAGE, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.POST_SEARCH, new e(d.API, com.adobe.libs.services.h.f.POST, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.PUT_ASSETS_ID_METADATA_KEY, new e(d.API, com.adobe.libs.services.h.f.PUT, true, arrayList));
        arrayList.clear();
        this.c.put(c.DELETE_FOLDERS_ID, new e(d.API, com.adobe.libs.services.h.f.DELETE, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.PUT_FOLDERS_ID_METADATA_KEY, new e(d.API, com.adobe.libs.services.h.f.PUT, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.POST_UNMANAGED, new e(d.UPLOAD, com.adobe.libs.services.h.f.POST, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_ROOTED, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.PUT_ROOTED, new e(d.API, com.adobe.libs.services.h.f.PUT, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        arrayList.add(new BasicNameValuePair("Content-Type", "application/vnd.adobe.skybox+json;version=1; charset=UTF-8"));
        this.c.put(c.PUT_SHARING, new e(d.API, com.adobe.libs.services.h.f.PUT, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_SHARING, new e(d.API, com.adobe.libs.services.h.f.GET, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_COHORTS, new e(d.USERS, com.adobe.libs.services.h.f.GET, false, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.SEND_LINK, new e(d.SEND, com.adobe.libs.services.h.f.POST, true, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.CONNECTOR_UI_HELPERS, new e(d.CONNECTORS_UI_HELPERS, com.adobe.libs.services.h.f.GET, false, arrayList));
        arrayList.clear();
        arrayList.add(new BasicNameValuePair("Accept", "application/vnd.adobe.skybox+json;version=1"));
        this.c.put(c.GET_USERS_ME_IDENTITY, new e(d.USERS, com.adobe.libs.services.h.f.GET, true, arrayList));
    }

    public static synchronized a a() {
        a aVar;
        synchronized (a.class) {
            if (e == null) {
                e = new a();
            }
            aVar = e;
        }
        return aVar;
    }

    public final String a(d dVar) {
        return this.b[dVar.ordinal()];
    }

    public final org.apache.http.client.methods.HttpRequestBase a(com.adobe.libs.services.a.c r10, java.lang.String... r11) {
        throw new UnsupportedOperationException("Method not decompiled: com.adobe.libs.services.a.a.a(com.adobe.libs.services.a.c, java.lang.String[]):org.apache.http.client.methods.HttpRequestBase");
    }

    public final a.c.c b(c cVar, String... strArr) {
        return com.adobe.libs.services.g.a(a(cVar, strArr), this.c.get(cVar).c);
    }

    public final void b() {
        HttpGet httpGet = new HttpGet("https://files.acrobat.com/api/base_uris");
        httpGet.addHeader("Accept", "application/vnd.adobe.skybox+json;version=1");
        httpGet.addHeader("x-api-client-id", com.adobe.libs.services.c.a.d());
        a.c.c a2 = com.adobe.libs.services.g.a(httpGet, com.adobe.libs.services.h.f.GET);
        try {
            String g = a2.g("ims");
            String g2 = a2.g("api");
            String g3 = a2.g("download");
            String g4 = a2.g("upload");
            String g5 = a2.g("users");
            String g6 = a2.g("send_api");
            String g7 = a2.g("ui_helpers");
            if (!com.adobe.libs.services.h.n.g(g) || !com.adobe.libs.services.h.n.g(g2) || !com.adobe.libs.services.h.n.g(g3) || !com.adobe.libs.services.h.n.g(g4) || !com.adobe.libs.services.h.n.g(g5) || !com.adobe.libs.services.h.n.g(g6) || !com.adobe.libs.services.h.n.g(g7)) {
                throw new IOException();
            }
            this.b[d.IMS.ordinal()] = g;
            this.b[d.API.ordinal()] = g2;
            this.b[d.DOWNLOAD.ordinal()] = g3;
            this.b[d.UPLOAD.ordinal()] = g4;
            this.b[d.USERS.ordinal()] = g5;
            this.b[d.SEND.ordinal()] = g6;
            this.b[d.CONNECTORS_UI_HELPERS.ordinal()] = g7;
            this.d = true;
        } catch (a.c.b e2) {
            throw new IOException();
        }
    }

    public final boolean c() {
        return this.d;
    }

    public final void d() {
        this.d = false;
    }
}