public class com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver implements org.xml.sax.EntityResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver
super_class: java.lang.Object
{
com.sun.tools.internal.ws.wscompile.WsimportOptions options;
descriptor: Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
flags: (0x0000)
com.sun.tools.internal.ws.wscompile.ErrorReceiver errorReceiver;
descriptor: Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
flags: (0x0000)
private java.net.URLConnection c;
descriptor: Ljava/net/URLConnection;
flags: (0x0002) ACC_PRIVATE
private boolean doReset;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(com.sun.tools.internal.ws.wscompile.WsimportOptions, com.sun.tools.internal.ws.wscompile.ErrorReceiver);
descriptor: (Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.c:Ljava/net/URLConnection;
2: aload 0
iconst_0
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.doReset:Z
3: aload 0
aload 1
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.options:Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
4: aload 0
aload 2
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.errorReceiver:Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/tools/internal/ws/wsdl/parser/MetadataFinder$WSEntityResolver;
0 6 1 options Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
0 6 2 errReceiver Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
MethodParameters:
Name Flags
options
errReceiver
public org.xml.sax.InputSource resolveEntity(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.options:Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
getfield com.sun.tools.internal.ws.wscompile.WsimportOptions.entityResolver:Lorg/xml/sax/EntityResolver;
ifnull 3
2: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.options:Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
getfield com.sun.tools.internal.ws.wscompile.WsimportOptions.entityResolver:Lorg/xml/sax/EntityResolver;
aconst_null
aload 2
invokeinterface org.xml.sax.EntityResolver.resolveEntity:(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
astore 3
3: StackMap locals: org.xml.sax.InputSource
StackMap stack:
aload 3
ifnonnull 54
4: new org.xml.sax.InputSource
dup
aload 2
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
astore 3
5: aconst_null
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: aload 3
invokevirtual org.xml.sax.InputSource.getSystemId:()Ljava/lang/String;
invokestatic com.sun.xml.internal.ws.util.JAXWSUtils.getFileOrURL:(Ljava/lang/String;)Ljava/net/URL;
astore 7
start local 7 8: aload 7
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 8
start local 8 9: StackMap locals: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver java.lang.String java.lang.String org.xml.sax.InputSource java.io.InputStream int top java.net.URL java.net.URLConnection
StackMap stack:
aload 8
instanceof javax.net.ssl.HttpsURLConnection
ifeq 12
10: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.options:Lcom/sun/tools/internal/ws/wscompile/WsimportOptions;
getfield com.sun.tools.internal.ws.wscompile.WsimportOptions.disableSSLHostnameVerification:Z
ifeq 12
11: aload 8
checkcast javax.net.ssl.HttpsURLConnection
new com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$HttpClientVerifier
dup
invokespecial com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$HttpClientVerifier.<init>:()V
invokevirtual javax.net.ssl.HttpsURLConnection.setHostnameVerifier:(Ljavax/net/ssl/HostnameVerifier;)V
12: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 13: aload 8
instanceof java.net.HttpURLConnection
ifeq 15
14: aload 8
checkcast java.net.HttpURLConnection
iconst_0
invokevirtual java.net.HttpURLConnection.setInstanceFollowRedirects:(Z)V
15: StackMap locals: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver java.lang.String java.lang.String org.xml.sax.InputSource java.io.InputStream int int java.net.URL java.net.URLConnection
StackMap stack:
aload 8
instanceof java.net.JarURLConnection
ifeq 20
16: aload 8
invokevirtual java.net.URLConnection.getUseCaches:()Z
ifeq 20
17: aload 0
iconst_1
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.doReset:Z
18: aload 8
iconst_0
invokevirtual java.net.URLConnection.setDefaultUseCaches:(Z)V
19: aload 0
aload 8
putfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.c:Ljava/net/URLConnection;
20: StackMap locals:
StackMap stack:
aload 8
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
astore 4
21: goto 34
StackMap locals:
StackMap stack: java.io.IOException
22: astore 9
start local 9 23: aload 8
instanceof java.net.HttpURLConnection
ifeq 33
24: aload 8
checkcast java.net.HttpURLConnection
astore 10
start local 10 25: aload 10
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
istore 11
start local 11 26: iload 11
sipush 401
if_icmpne 33
27: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.errorReceiver:Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
new org.xml.sax.SAXParseException
dup
aload 9
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
28: aload 2
getstatic com.sun.tools.internal.ws.wscompile.WsimportOptions.defaultAuthfile:Ljava/lang/String;
29: invokestatic com.sun.tools.internal.ws.resources.WscompileMessages.WSIMPORT_AUTH_INFO_NEEDED:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
30: aconst_null
aload 9
invokespecial org.xml.sax.SAXParseException.<init>:(Ljava/lang/String;Lorg/xml/sax/Locator;Ljava/lang/Exception;)V
31: invokevirtual com.sun.tools.internal.ws.wscompile.ErrorReceiver.error:(Lorg/xml/sax/SAXParseException;)V
32: new com.sun.tools.internal.ws.wscompile.AbortException
dup
invokespecial com.sun.tools.internal.ws.wscompile.AbortException.<init>:()V
athrow
end local 11 end local 10 33: StackMap locals: java.io.IOException
StackMap stack:
aload 9
athrow
end local 9 34: StackMap locals:
StackMap stack:
aload 8
instanceof java.net.HttpURLConnection
ifeq 52
35: aload 8
checkcast java.net.HttpURLConnection
astore 9
start local 9 36: aload 9
invokevirtual java.net.HttpURLConnection.getResponseCode:()I
istore 10
start local 10 37: iload 10
sipush 302
if_icmpeq 38
iload 10
sipush 303
if_icmpne 52
38: StackMap locals: java.net.HttpURLConnection int
StackMap stack:
aload 9
invokevirtual java.net.HttpURLConnection.getHeaderFields:()Ljava/util/Map;
ldc "Location"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 11
start local 11 39: aload 11
ifnull 52
aload 11
invokeinterface java.util.List.size:()I
ifle 52
40: new java.net.URL
dup
aload 7
aload 11
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
astore 12
start local 12 41: aload 12
aload 7
invokevirtual java.net.URL.equals:(Ljava/lang/Object;)Z
ifne 52
42: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.errorReceiver:Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
new org.xml.sax.SAXParseException
dup
iload 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 11
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokestatic com.sun.tools.internal.ws.resources.WscompileMessages.WSIMPORT_HTTP_REDIRECT:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
aconst_null
invokespecial org.xml.sax.SAXParseException.<init>:(Ljava/lang/String;Lorg/xml/sax/Locator;)V
invokevirtual com.sun.tools.internal.ws.wscompile.ErrorReceiver.info:(Lorg/xml/sax/SAXParseException;)V
43: aload 12
astore 7
44: aload 9
invokevirtual java.net.HttpURLConnection.disconnect:()V
45: iload 5
iconst_5
if_icmplt 48
46: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.errorReceiver:Lcom/sun/tools/internal/ws/wscompile/ErrorReceiver;
new org.xml.sax.SAXParseException
dup
invokestatic com.sun.tools.internal.ws.resources.WscompileMessages.WSIMPORT_MAX_REDIRECT_ATTEMPT:()Ljava/lang/String;
aconst_null
invokespecial org.xml.sax.SAXParseException.<init>:(Ljava/lang/String;Lorg/xml/sax/Locator;)V
invokevirtual com.sun.tools.internal.ws.wscompile.ErrorReceiver.error:(Lorg/xml/sax/SAXParseException;)V
47: new com.sun.tools.internal.ws.wscompile.AbortException
dup
invokespecial com.sun.tools.internal.ws.wscompile.AbortException.<init>:()V
athrow
48: StackMap locals: java.util.List java.net.URL
StackMap stack:
aload 7
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 8
49: aload 3
aload 7
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
invokevirtual org.xml.sax.InputSource.setSystemId:(Ljava/lang/String;)V
50: iinc 5 1
51: iconst_1
istore 6
end local 12 end local 11 end local 10 end local 9 52: StackMap locals: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver java.lang.String java.lang.String org.xml.sax.InputSource java.io.InputStream int int java.net.URL java.net.URLConnection
StackMap stack:
iload 6
ifne 9
53: aload 3
aload 4
invokevirtual org.xml.sax.InputSource.setByteStream:(Ljava/io/InputStream;)V
end local 8 end local 7 end local 6 end local 5 end local 4 54: StackMap locals: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver java.lang.String java.lang.String org.xml.sax.InputSource
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 55 0 this Lcom/sun/tools/internal/ws/wsdl/parser/MetadataFinder$WSEntityResolver;
0 55 1 publicId Ljava/lang/String;
0 55 2 systemId Ljava/lang/String;
1 55 3 inputSource Lorg/xml/sax/InputSource;
6 54 4 is Ljava/io/InputStream;
7 54 5 redirects I
13 54 6 redirect Z
8 54 7 url Ljava/net/URL;
9 54 8 conn Ljava/net/URLConnection;
23 34 9 e Ljava/io/IOException;
25 33 10 httpConn Ljava/net/HttpURLConnection;
26 33 11 code I
36 52 9 httpConn Ljava/net/HttpURLConnection;
37 52 10 code I
39 52 11 seeOther Ljava/util/List<Ljava/lang/String;>;
41 52 12 newurl Ljava/net/URL;
Exception table:
from to target type
20 21 22 Class java.io.IOException
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
MethodParameters:
Name Flags
publicId
systemId
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.doReset:Z
ifeq 2
1: aload 0
getfield com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.c:Ljava/net/URLConnection;
iconst_1
invokevirtual java.net.URLConnection.setDefaultUseCaches:(Z)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/internal/ws/wsdl/parser/MetadataFinder$WSEntityResolver;
Exceptions:
throws java.lang.Throwable
}
SourceFile: "MetadataFinder.java"
NestHost: com.sun.tools.internal.ws.wsdl.parser.MetadataFinder
InnerClasses:
private HttpClientVerifier = com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$HttpClientVerifier of com.sun.tools.internal.ws.wsdl.parser.MetadataFinder
public WSEntityResolver = com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver of com.sun.tools.internal.ws.wsdl.parser.MetadataFinder