public class org.springframework.http.converter.xml.SourceHttpMessageConverter<T extends javax.xml.transform.Source> extends org.springframework.http.converter.AbstractHttpMessageConverter<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.converter.xml.SourceHttpMessageConverter
super_class: org.springframework.http.converter.AbstractHttpMessageConverter
{
private static final org.xml.sax.EntityResolver NO_OP_ENTITY_RESOLVER;
descriptor: Lorg/xml/sax/EntityResolver;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final javax.xml.stream.XMLResolver NO_OP_XML_RESOLVER;
descriptor: Ljavax/xml/stream/XMLResolver;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Set<java.lang.Class<?>> SUPPORTED_CLASSES;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Class<*>;>;
private final javax.xml.transform.TransformerFactory transformerFactory;
descriptor: Ljavax/xml/transform/TransformerFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean supportDtd;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean processExternalEntities;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokedynamic resolveEntity()Lorg/xml/sax/EntityResolver;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
org/springframework/http/converter/xml/SourceHttpMessageConverter.lambda$0(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource; (6)
(Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
1: putstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.NO_OP_ENTITY_RESOLVER:Lorg/xml/sax/EntityResolver;
2: invokedynamic resolveEntity()Ljavax/xml/stream/XMLResolver;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
org/springframework/http/converter/xml/SourceHttpMessageConverter.lambda$1(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; (6)
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
3: putstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.NO_OP_XML_RESOLVER:Ljavax/xml/stream/XMLResolver;
4: new java.util.HashSet
dup
bipush 8
invokespecial java.util.HashSet.<init>:(I)V
putstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
5: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
ldc Ljavax/xml/transform/dom/DOMSource;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
ldc Ljavax/xml/transform/sax/SAXSource;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
ldc Ljavax/xml/transform/stax/StAXSource;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
8: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
ldc Ljavax/xml/transform/stream/StreamSource;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
9: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
ldc Ljavax/xml/transform/Source;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
iconst_3
anewarray org.springframework.http.MediaType
dup
iconst_0
getstatic org.springframework.http.MediaType.APPLICATION_XML:Lorg/springframework/http/MediaType;
aastore
dup
iconst_1
getstatic org.springframework.http.MediaType.TEXT_XML:Lorg/springframework/http/MediaType;
aastore
dup
iconst_2
new org.springframework.http.MediaType
dup
ldc "application"
ldc "*+xml"
invokespecial org.springframework.http.MediaType.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
invokespecial org.springframework.http.converter.AbstractHttpMessageConverter.<init>:([Lorg/springframework/http/MediaType;)V
1: aload 0
invokestatic javax.xml.transform.TransformerFactory.newInstance:()Ljavax/xml/transform/TransformerFactory;
putfield org.springframework.http.converter.xml.SourceHttpMessageConverter.transformerFactory:Ljavax/xml/transform/TransformerFactory;
2: aload 0
iconst_0
putfield org.springframework.http.converter.xml.SourceHttpMessageConverter.supportDtd:Z
3: aload 0
iconst_0
putfield org.springframework.http.converter.xml.SourceHttpMessageConverter.processExternalEntities:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
public void setSupportDtd(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.http.converter.xml.SourceHttpMessageConverter.supportDtd:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 2 1 supportDtd Z
MethodParameters:
Name Flags
supportDtd
public boolean isSupportDtd();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.converter.xml.SourceHttpMessageConverter.supportDtd:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
public void setProcessExternalEntities(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.http.converter.xml.SourceHttpMessageConverter.processExternalEntities:Z
1: iload 1
ifeq 3
2: aload 0
iconst_1
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.setSupportDtd:(Z)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 4 1 processExternalEntities Z
MethodParameters:
Name Flags
processExternalEntities
public boolean isProcessExternalEntities();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.http.converter.xml.SourceHttpMessageConverter.processExternalEntities:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
public boolean supports(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.SUPPORTED_CLASSES:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 1 1 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
protected T readInternal(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/Source;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.springframework.http.HttpInputMessage.getBody:()Ljava/io/InputStream;
astore 3
start local 3 1: ldc Ljavax/xml/transform/dom/DOMSource;
aload 1
if_acmpne 3
2: aload 0
aload 3
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.readDOMSource:(Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/dom/DOMSource;
areturn
3: StackMap locals: java.io.InputStream
StackMap stack:
ldc Ljavax/xml/transform/sax/SAXSource;
aload 1
if_acmpne 5
4: aload 0
aload 3
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.readSAXSource:(Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/sax/SAXSource;
areturn
5: StackMap locals:
StackMap stack:
ldc Ljavax/xml/transform/stax/StAXSource;
aload 1
if_acmpne 7
6: aload 0
aload 3
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.readStAXSource:(Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/Source;
areturn
7: StackMap locals:
StackMap stack:
ldc Ljavax/xml/transform/stream/StreamSource;
aload 1
if_acmpeq 8
ldc Ljavax/xml/transform/Source;
aload 1
if_acmpne 9
8: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.readStreamSource:(Ljava/io/InputStream;)Ljavax/xml/transform/stream/StreamSource;
areturn
9: StackMap locals:
StackMap stack:
new org.springframework.http.converter.HttpMessageNotReadableException
dup
new java.lang.StringBuilder
dup
ldc "Could not read class ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: ldc "]. Only DOMSource, SAXSource, StAXSource, and StreamSource are supported."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
11: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 12 1 clazz Ljava/lang/Class<+TT;>;
0 12 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 12 3 body Ljava/io/InputStream;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
Signature: (Ljava/lang/Class<+TT;>;Lorg/springframework/http/HttpInputMessage;)TT;
MethodParameters:
Name Flags
clazz
inputMessage
private javax.xml.transform.dom.DOMSource readDOMSource(java.io.InputStream, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/dom/DOMSource;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: invokestatic javax.xml.parsers.DocumentBuilderFactory.newInstance:()Ljavax/xml/parsers/DocumentBuilderFactory;
astore 3
start local 3 1: aload 3
iconst_1
invokevirtual javax.xml.parsers.DocumentBuilderFactory.setNamespaceAware:(Z)V
2: aload 3
3: ldc "http://apache.org/xml/features/disallow-doctype-decl"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isSupportDtd:()Z
ifeq 4
iconst_0
goto 5
StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage javax.xml.parsers.DocumentBuilderFactory
StackMap stack: javax.xml.parsers.DocumentBuilderFactory java.lang.String
4: iconst_1
5: StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage javax.xml.parsers.DocumentBuilderFactory
StackMap stack: javax.xml.parsers.DocumentBuilderFactory java.lang.String int
invokevirtual javax.xml.parsers.DocumentBuilderFactory.setFeature:(Ljava/lang/String;Z)V
6: aload 3
7: ldc "http://xml.org/sax/features/external-general-entities"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
8: invokevirtual javax.xml.parsers.DocumentBuilderFactory.setFeature:(Ljava/lang/String;Z)V
9: aload 3
invokevirtual javax.xml.parsers.DocumentBuilderFactory.newDocumentBuilder:()Ljavax/xml/parsers/DocumentBuilder;
astore 4
start local 4 10: aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
ifne 12
11: aload 4
getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.NO_OP_ENTITY_RESOLVER:Lorg/xml/sax/EntityResolver;
invokevirtual javax.xml.parsers.DocumentBuilder.setEntityResolver:(Lorg/xml/sax/EntityResolver;)V
12: StackMap locals: javax.xml.parsers.DocumentBuilder
StackMap stack:
aload 4
aload 1
invokevirtual javax.xml.parsers.DocumentBuilder.parse:(Ljava/io/InputStream;)Lorg/w3c/dom/Document;
astore 5
start local 5 13: new javax.xml.transform.dom.DOMSource
dup
aload 5
invokespecial javax.xml.transform.dom.DOMSource.<init>:(Lorg/w3c/dom/Node;)V
14: areturn
end local 5 end local 4 end local 3 15: StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage
StackMap stack: java.lang.NullPointerException
astore 3
start local 3 16: aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isSupportDtd:()Z
ifne 20
17: new org.springframework.http.converter.HttpMessageNotReadableException
dup
ldc "NPE while unmarshalling: This can happen due to the presence of DTD declarations which are disabled."
18: aload 3
aload 2
19: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
20: StackMap locals: java.lang.NullPointerException
StackMap stack:
aload 3
athrow
end local 3 21: StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage
StackMap stack: javax.xml.parsers.ParserConfigurationException
astore 3
start local 3 22: new org.springframework.http.converter.HttpMessageNotReadableException
dup
23: new java.lang.StringBuilder
dup
ldc "Could not set feature: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual javax.xml.parsers.ParserConfigurationException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
aload 2
24: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 3 25: StackMap locals:
StackMap stack: org.xml.sax.SAXException
astore 3
start local 3 26: new org.springframework.http.converter.HttpMessageNotReadableException
dup
27: new java.lang.StringBuilder
dup
ldc "Could not parse document: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.xml.sax.SAXException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
aload 2
28: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 29 1 body Ljava/io/InputStream;
0 29 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 15 3 documentBuilderFactory Ljavax/xml/parsers/DocumentBuilderFactory;
10 15 4 documentBuilder Ljavax/xml/parsers/DocumentBuilder;
13 15 5 document Lorg/w3c/dom/Document;
16 21 3 ex Ljava/lang/NullPointerException;
22 25 3 ex Ljavax/xml/parsers/ParserConfigurationException;
26 29 3 ex Lorg/xml/sax/SAXException;
Exception table:
from to target type
0 14 15 Class java.lang.NullPointerException
0 14 21 Class javax.xml.parsers.ParserConfigurationException
0 14 25 Class org.xml.sax.SAXException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
body
inputMessage
private javax.xml.transform.sax.SAXSource readSAXSource(java.io.InputStream, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/sax/SAXSource;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.xml.sax.helpers.XMLReaderFactory.createXMLReader:()Lorg/xml/sax/XMLReader;
astore 3
start local 3 1: aload 3
ldc "http://apache.org/xml/features/disallow-doctype-decl"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isSupportDtd:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage org.xml.sax.XMLReader
StackMap stack: org.xml.sax.XMLReader java.lang.String
2: iconst_1
StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage org.xml.sax.XMLReader
StackMap stack: org.xml.sax.XMLReader java.lang.String int
3: invokeinterface org.xml.sax.XMLReader.setFeature:(Ljava/lang/String;Z)V
4: aload 3
ldc "http://xml.org/sax/features/external-general-entities"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
invokeinterface org.xml.sax.XMLReader.setFeature:(Ljava/lang/String;Z)V
5: aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
ifne 7
6: aload 3
getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.NO_OP_ENTITY_RESOLVER:Lorg/xml/sax/EntityResolver;
invokeinterface org.xml.sax.XMLReader.setEntityResolver:(Lorg/xml/sax/EntityResolver;)V
7: StackMap locals:
StackMap stack:
aload 1
invokestatic org.springframework.util.StreamUtils.copyToByteArray:(Ljava/io/InputStream;)[B
astore 4
start local 4 8: new javax.xml.transform.sax.SAXSource
dup
aload 3
new org.xml.sax.InputSource
dup
new java.io.ByteArrayInputStream
dup
aload 4
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokespecial org.xml.sax.InputSource.<init>:(Ljava/io/InputStream;)V
invokespecial javax.xml.transform.sax.SAXSource.<init>:(Lorg/xml/sax/XMLReader;Lorg/xml/sax/InputSource;)V
9: areturn
end local 4 end local 3 10: StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage
StackMap stack: org.xml.sax.SAXException
astore 3
start local 3 11: new org.springframework.http.converter.HttpMessageNotReadableException
dup
12: new java.lang.StringBuilder
dup
ldc "Could not parse document: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.xml.sax.SAXException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
aload 2
13: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 14 1 body Ljava/io/InputStream;
0 14 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 10 3 xmlReader Lorg/xml/sax/XMLReader;
8 10 4 bytes [B
11 14 3 ex Lorg/xml/sax/SAXException;
Exception table:
from to target type
0 9 10 Class org.xml.sax.SAXException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
body
inputMessage
private javax.xml.transform.Source readStAXSource(java.io.InputStream, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/io/InputStream;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/Source;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: invokestatic javax.xml.stream.XMLInputFactory.newInstance:()Ljavax/xml/stream/XMLInputFactory;
astore 3
start local 3 1: aload 3
ldc "javax.xml.stream.supportDTD"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isSupportDtd:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual javax.xml.stream.XMLInputFactory.setProperty:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 3
ldc "javax.xml.stream.isSupportingExternalEntities"
aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual javax.xml.stream.XMLInputFactory.setProperty:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 0
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.isProcessExternalEntities:()Z
ifne 5
4: aload 3
getstatic org.springframework.http.converter.xml.SourceHttpMessageConverter.NO_OP_XML_RESOLVER:Ljavax/xml/stream/XMLResolver;
invokevirtual javax.xml.stream.XMLInputFactory.setXMLResolver:(Ljavax/xml/stream/XMLResolver;)V
5: StackMap locals: javax.xml.stream.XMLInputFactory
StackMap stack:
aload 3
aload 1
invokevirtual javax.xml.stream.XMLInputFactory.createXMLStreamReader:(Ljava/io/InputStream;)Ljavax/xml/stream/XMLStreamReader;
astore 4
start local 4 6: new javax.xml.transform.stax.StAXSource
dup
aload 4
invokespecial javax.xml.transform.stax.StAXSource.<init>:(Ljavax/xml/stream/XMLStreamReader;)V
7: areturn
end local 4 end local 3 8: StackMap locals: org.springframework.http.converter.xml.SourceHttpMessageConverter java.io.InputStream org.springframework.http.HttpInputMessage
StackMap stack: javax.xml.stream.XMLStreamException
astore 3
start local 3 9: new org.springframework.http.converter.HttpMessageNotReadableException
dup
10: new java.lang.StringBuilder
dup
ldc "Could not parse document: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual javax.xml.stream.XMLStreamException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
aload 2
11: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/springframework/http/HttpInputMessage;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 12 1 body Ljava/io/InputStream;
0 12 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 8 3 inputFactory Ljavax/xml/stream/XMLInputFactory;
6 8 4 streamReader Ljavax/xml/stream/XMLStreamReader;
9 12 3 ex Ljavax/xml/stream/XMLStreamException;
Exception table:
from to target type
0 7 8 Class javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
body
inputMessage
private javax.xml.transform.stream.StreamSource readStreamSource(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljavax/xml/transform/stream/StreamSource;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StreamUtils.copyToByteArray:(Ljava/io/InputStream;)[B
astore 2
start local 2 1: new javax.xml.transform.stream.StreamSource
dup
new java.io.ByteArrayInputStream
dup
aload 2
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokespecial javax.xml.transform.stream.StreamSource.<init>:(Ljava/io/InputStream;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 2 1 body Ljava/io/InputStream;
1 2 2 bytes [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
body
protected java.lang.Long getContentLength(T, org.springframework.http.MediaType);
descriptor: (Ljavax/xml/transform/Source;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof javax.xml.transform.dom.DOMSource
ifeq 6
1: new org.springframework.http.converter.xml.SourceHttpMessageConverter$CountingOutputStream
dup
invokespecial org.springframework.http.converter.xml.SourceHttpMessageConverter$CountingOutputStream.<init>:()V
astore 3
start local 3 2: aload 0
aload 1
new javax.xml.transform.stream.StreamResult
dup
aload 3
invokespecial javax.xml.transform.stream.StreamResult.<init>:(Ljava/io/OutputStream;)V
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.transform:(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
3: aload 3
getfield org.springframework.http.converter.xml.SourceHttpMessageConverter$CountingOutputStream.count:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
4: areturn
end local 3 5: StackMap locals:
StackMap stack: javax.xml.transform.TransformerException
pop
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 7 1 t TT;
0 7 2 contentType Lorg/springframework/http/MediaType;
2 5 3 os Lorg/springframework/http/converter/xml/SourceHttpMessageConverter$CountingOutputStream;
Exception table:
from to target type
1 4 5 Class javax.xml.transform.TransformerException
Signature: (TT;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
t
contentType
protected void writeInternal(T, org.springframework.http.HttpOutputMessage);
descriptor: (Ljavax/xml/transform/Source;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new javax.xml.transform.stream.StreamResult
dup
aload 2
invokeinterface org.springframework.http.HttpOutputMessage.getBody:()Ljava/io/OutputStream;
invokespecial javax.xml.transform.stream.StreamResult.<init>:(Ljava/io/OutputStream;)V
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.transform:(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
end local 3 2: goto 5
3: StackMap locals:
StackMap stack: javax.xml.transform.TransformerException
astore 3
start local 3 4: new org.springframework.http.converter.HttpMessageNotWritableException
dup
new java.lang.StringBuilder
dup
ldc "Could not transform ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] to output message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.springframework.http.converter.HttpMessageNotWritableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 6 1 t TT;
0 6 2 outputMessage Lorg/springframework/http/HttpOutputMessage;
1 2 3 result Ljavax/xml/transform/Result;
4 5 3 ex Ljavax/xml/transform/TransformerException;
Exception table:
from to target type
0 2 3 Class javax.xml.transform.TransformerException
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
Signature: (TT;Lorg/springframework/http/HttpOutputMessage;)V
MethodParameters:
Name Flags
t
outputMessage
private void transform(javax.xml.transform.Source, javax.xml.transform.Result);
descriptor: (Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.converter.xml.SourceHttpMessageConverter.transformerFactory:Ljavax/xml/transform/TransformerFactory;
invokevirtual javax.xml.transform.TransformerFactory.newTransformer:()Ljavax/xml/transform/Transformer;
aload 1
aload 2
invokevirtual javax.xml.transform.Transformer.transform:(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/xml/SourceHttpMessageConverter<TT;>;
0 2 1 source Ljavax/xml/transform/Source;
0 2 2 result Ljavax/xml/transform/Result;
Exceptions:
throws javax.xml.transform.TransformerException
MethodParameters:
Name Flags
source
result
protected java.lang.Object readInternal(java.lang.Class, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.lang.Class
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.readInternal:(Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljavax/xml/transform/Source;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
protected java.lang.Long getContentLength(java.lang.Object, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast javax.xml.transform.Source
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.getContentLength:(Ljavax/xml/transform/Source;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
protected void writeInternal(java.lang.Object, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast javax.xml.transform.Source
aload 2
invokevirtual org.springframework.http.converter.xml.SourceHttpMessageConverter.writeInternal:(Ljavax/xml/transform/Source;Lorg/springframework/http/HttpOutputMessage;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
private static org.xml.sax.InputSource lambda$0(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/xml/sax/InputSource;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new org.xml.sax.InputSource
dup
new java.io.StringReader
dup
ldc ""
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial org.xml.sax.InputSource.<init>:(Ljava/io/Reader;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 publicId Ljava/lang/String;
0 1 1 systemId Ljava/lang/String;
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
private static java.lang.Object lambda$1(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic org.springframework.util.StreamUtils.emptyInput:()Ljava/io/InputStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 publicID Ljava/lang/String;
0 1 1 systemID Ljava/lang/String;
0 1 2 base Ljava/lang/String;
0 1 3 ns Ljava/lang/String;
Exceptions:
throws javax.xml.stream.XMLStreamException
}
Signature: <T::Ljavax/xml/transform/Source;>Lorg/springframework/http/converter/AbstractHttpMessageConverter<TT;>;
SourceFile: "SourceHttpMessageConverter.java"
NestMembers:
org.springframework.http.converter.xml.SourceHttpMessageConverter$CountingOutputStream
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private CountingOutputStream = org.springframework.http.converter.xml.SourceHttpMessageConverter$CountingOutputStream of org.springframework.http.converter.xml.SourceHttpMessageConverter