Protocol.java
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.protocol;
import com.adobe.xfa.protocol.AuthenticationHandler;
import com.adobe.xfa.ut.ExFull;
import java.io.InputStream;
import java.net.URLStreamHandler;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface Protocol {
public String scheme();
public InputStream get(String var1);
public void put(String var1, String var2);
public void put(InputStream var1, String var2);
public PostRsvp post(SimplePostData var1, String var2);
public PostRsvp post(List<? extends MultiPartDesc> var1, String var2);
public AuthenticationHandler getAuthenticationHandler();
public boolean isTrusted(String var1, TrustType var2, boolean var3);
public URLStreamHandler getURLStreamHandler();
public boolean isUrlEncoded(String var1);
public static class SimplePostData {
public final Map<String, String> headerMap = new HashMap<String, String>();
public final byte[] data;
public SimplePostData(byte[] data) {
this.data = data;
}
}
public static class MultiPartDesc {
public final SectionDataOption eSectionDataOption;
public final byte[] value;
public MultiPartDesc(SectionDataOption eSectionDataOption, byte[] value) {
this.eSectionDataOption = eSectionDataOption;
this.value = value;
}
}
public static class PostRsvp {
public final int nCode;
public final String sType;
public final byte[] data;
public final ExFull exception;
public PostRsvp(int nCode, String sType, byte[] data, ExFull exception) {
this.nCode = nCode;
this.sType = sType;
this.data = data;
this.exception = exception;
}
}
public static enum TrustType {
URL,
CROSS_DOMAIN,
DATA_INJECTION,
SCRIPT_INJECTION;
private TrustType() {
}
}
public static enum SectionDataOption {
SECTION_CONTENT_NAME,
SECTION_CONTENT_TYPE,
SECTION_CONTENT_FILE,
SECTION_CONTENT_VALUE,
SECTION_END;
private SectionDataOption() {
}
}
}