ServiceResource.java
8.07 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.common.service.FormDataProviderRegistry
* com.adobe.forms.common.utils.URIUtils
* com.adobe.forms.rm.impl.ServiceResource$$anonfun
* com.adobe.forms.rm.impl.ServiceResource$$anonfun$source
* scala.Function0
* scala.MatchError
* scala.Option
* scala.ScalaObject
* scala.Some
* scala.collection.immutable.Map
* scala.reflect.ScalaSignature
* scala.runtime.AbstractFunction0
*/
package com.adobe.forms.rm.impl;
import com.adobe.forms.common.service.FormDataProviderRegistry;
import com.adobe.forms.common.utils.URIUtils;
import com.adobe.forms.logging.PerfLogger$;
import com.adobe.forms.rm.URIResource;
import com.adobe.forms.rm.impl.ServiceResource$;
import java.net.URI;
import scala.Function0;
import scala.MatchError;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.collection.immutable.Map;
import scala.reflect.ScalaSignature;
import scala.runtime.AbstractFunction0;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
@ScalaSignature(bytes="\u0006\u0001q4A!\u0001\u0002\u0001\u001b\ty1+\u001a:wS\u000e,'+Z:pkJ\u001cWM\u0003\u0002\u0004\t\u0005!\u0011.\u001c9m\u0015\t)a!\u0001\u0002s[*\u0011q\u0001C\u0001\u0006M>\u0014Xn\u001d\u0006\u0003\u0013)\tQ!\u00193pE\u0016T\u0011aC\u0001\u0004G>l7\u0001A\n\u0004\u00019\u0011\u0002CA\b\u0011\u001b\u0005!\u0011BA\t\u0005\u0005-)&+\u0013*fg>,(oY3\u0011\u0005M1R\"\u0001\u000b\u000b\u0003U\tQa]2bY\u0006L!a\u0006\u000b\u0003\u0017M\u001b\u0017\r\\1PE*,7\r\u001e\u0005\t3\u0001\u0011\t\u0011)A\u00055\u000591m\u001c8uK:$\bCA\n\u001c\u0013\taBC\u0001\u0004B]f\u0014VM\u001a\u0005\t=\u0001\u0011\t\u0011)A\u0005?\u000591m\u001c8uKb$\bcA\n!E%\u0011\u0011\u0005\u0006\u0002\u0007\u001fB$\u0018n\u001c8\u0011\u0005\r2cBA\n%\u0013\t)C#\u0001\u0004Qe\u0016$WMZ\u0005\u0003O!\u0012aa\u0015;sS:<'BA\u0013\u0015\u0011!Q\u0003A!A!\u0002\u0013Y\u0013aA7baB!1\u0005\f\u0012/\u0013\ti\u0003FA\u0002NCB\u0004\"aE\u0018\n\u0005A\"\"aA!os\")!\u0007\u0001C\u0001g\u00051A(\u001b8jiz\"B\u0001\u000e\u001c8qA\u0011Q\u0007A\u0007\u0002\u0005!)\u0011$\ra\u00015!9a$\rI\u0001\u0002\u0004y\u0002b\u0002\u00162!\u0003\u0005\ra\u000b\u0005\bu\u0001\u0011\r\u0011\"\u0003<\u0003\r)(/[\u000b\u0002yA\u0011QHQ\u0007\u0002})\u0011q\bQ\u0001\u0004]\u0016$(\"A!\u0002\t)\fg/Y\u0005\u0003\u0007z\u00121!\u0016*J\u0011\u0019)\u0005\u0001)A\u0005y\u0005!QO]5!\u0011\u001d9\u0005A1A\u0005\n!\u000b1\u0003Z1uCB\u0013xN^5eKJ\u001cVM\u001d<jG\u0016,\u0012!\u0013\t\u0003\u0015>k\u0011a\u0013\u0006\u0003\u00196\u000bqa]3sm&\u001cWM\u0003\u0002O\r\u000511m\\7n_:L!\u0001U&\u00031\u0019{'/\u001c#bi\u0006\u0004&o\u001c<jI\u0016\u0014(+Z4jgR\u0014\u0018\u0010\u0003\u0004S\u0001\u0001\u0006I!S\u0001\u0015I\u0006$\u0018\r\u0015:pm&$WM]*feZL7-\u001a\u0011\t\u0011Q\u0003\u0001R1A\u0005BU\u000baa]8ve\u000e,W#\u0001,\u0011\u0007M9\u0016,\u0003\u0002Y)\t)\u0011I\u001d:bsB\u00111CW\u0005\u00037R\u0011AAQ=uK\"AQ\f\u0001E\u0001B\u0003&a+A\u0004t_V\u00148-\u001a\u0011\b\u000f}\u0013\u0011\u0011!E\u0003A\u0006y1+\u001a:wS\u000e,'+Z:pkJ\u001cW\r\u0005\u00026C\u001a9\u0011AAA\u0001\u0012\u000b\u00117cA1d%A\u0011AmZ\u0007\u0002K*\u0011a\rQ\u0001\u0005Y\u0006tw-\u0003\u0002iK\n1qJ\u00196fGRDQAM1\u0005\u0002)$\u0012\u0001\u0019\u0005\bY\u0006\f\n\u0011\"\u0001n\u00039Ig.\u001b;%I\u00164\u0017-\u001e7uII*\u0012A\u001c\u0016\u0003?=\\\u0013\u0001\u001d\t\u0003cZl\u0011A\u001d\u0006\u0003gR\f\u0011\"\u001e8dQ\u0016\u001c7.\u001a3\u000b\u0005U$\u0012AC1o]>$\u0018\r^5p]&\u0011qO\u001d\u0002\u0012k:\u001c\u0007.Z2lK\u00124\u0016M]5b]\u000e,\u0007bB=b#\u0003%\tA_\u0001\u000fS:LG\u000f\n3fM\u0006,H\u000e\u001e\u00134+\u0005Y(FA\u0016p\u0001")
public class ServiceResource
extends URIResource
implements ScalaObject {
private final URI com$adobe$forms$rm$impl$ServiceResource$$uri;
private final FormDataProviderRegistry com$adobe$forms$rm$impl$ServiceResource$$dataProviderService;
private byte[] source;
public volatile int bitmap$0;
public static final Map init$default$3() {
return ServiceResource$.MODULE$.init$default$3();
}
public static final Option init$default$2() {
return ServiceResource$.MODULE$.init$default$2();
}
public final URI com$adobe$forms$rm$impl$ServiceResource$$uri() {
return this.com$adobe$forms$rm$impl$ServiceResource$$uri;
}
public final FormDataProviderRegistry com$adobe$forms$rm$impl$ServiceResource$$dataProviderService() {
return this.com$adobe$forms$rm$impl$ServiceResource$$dataProviderService;
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
@Override
public byte[] source() {
if ((this.bitmap$0 & 1) != 0) return this.source;
ServiceResource serviceResource = this;
synchronized (serviceResource) {
if ((this.bitmap$0 & 1) == 0) {
this.source = (byte[])PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
public static final long serialVersionUID;
public static {
long l = $anonfun$source$1.serialVersionUID = 0;
}
public final String apply() {
return "ServiceResource.source";
}
}, new scala.Serializable(this){
public static final long serialVersionUID;
private final ServiceResource $outer;
public static {
long l = $anonfun$source$2.serialVersionUID = 0;
}
public final byte[] apply() {
com.adobe.forms.common.service.DataOptions dataOptions = new com.adobe.forms.common.service.DataOptions();
dataOptions.setDataRef(this.$outer.com$adobe$forms$rm$impl$ServiceResource$$uri().toString());
com.adobe.forms.common.service.PrefillData data2 = this.$outer.com$adobe$forms$rm$impl$ServiceResource$$dataProviderService().getDataFromService(dataOptions);
return data2 == null ? (byte[])scala.Array$.MODULE$.apply((scala.collection.Seq)scala.collection.immutable.Nil$.MODULE$, (scala.reflect.ClassManifest)scala.reflect.Manifest$.MODULE$.Byte()) : (byte[])com.adobe.forms.rm.Resource$.MODULE$.using(data2.getInputStream(), new scala.Serializable(this){
public static final long serialVersionUID;
public static {
long l = com.adobe.forms.rm.impl.ServiceResource$$anonfun$source$2$$anonfun$apply$1.serialVersionUID = 0;
}
public final byte[] apply(java.io.InputStream stream) {
return com.adobe.forms.rm.Resource$.MODULE$.enrichInputStream(stream).asByteArray();
}
});
}
});
this.bitmap$0 |= 1;
}
return this.source;
}
}
public ServiceResource(Object content, Option<String> context, Map<String, Object> map) {
super(content, context, map);
this.com$adobe$forms$rm$impl$ServiceResource$$uri = URIUtils.getUri((String)this.absPath(), (boolean)false);
Option option = map.get((Object)"userData");
if (option instanceof Some) {
Some some = (Some)option;
Object object = some.x();
if (object instanceof Option) {
FormDataProviderRegistry formDataProviderRegistry;
Some some2;
Option option2 = (Option)object;
Option rsOpt = option2;
Option option3 = rsOpt;
this.com$adobe$forms$rm$impl$ServiceResource$$dataProviderService = option3 instanceof Some ? ((formDataProviderRegistry = (FormDataProviderRegistry)(some2 = (Some)option3).x()) != null ? formDataProviderRegistry : null) : null;
return;
}
throw new MatchError((Object)option);
}
throw new MatchError((Object)option);
}
}