public abstract class org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter<T> extends org.springframework.http.converter.AbstractHttpMessageConverter<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter
super_class: org.springframework.http.converter.AbstractHttpMessageConverter
{
private final javax.xml.transform.TransformerFactory transformerFactory;
descriptor: Ljavax/xml/transform/TransformerFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
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.AbstractXmlHttpMessageConverter.transformerFactory:Ljavax/xml/transform/TransformerFactory;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/http/converter/xml/AbstractXmlHttpMessageConverter<TT;>;
public final T readInternal(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokeinterface org.springframework.http.HttpInputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
new javax.xml.transform.stream.StreamSource
dup
aload 2
invokeinterface org.springframework.http.HttpInputMessage.getBody:()Ljava/io/InputStream;
invokespecial javax.xml.transform.stream.StreamSource.<init>:(Ljava/io/InputStream;)V
invokevirtual org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter.readFromSource:(Ljava/lang/Class;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Source;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 3: aload 3
athrow
end local 3 4: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new org.springframework.http.converter.HttpMessageNotReadableException
dup
new java.lang.StringBuilder
dup
ldc "Could not unmarshal to ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: aload 3
aload 2
7: 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 8 0 this Lorg/springframework/http/converter/xml/AbstractXmlHttpMessageConverter<TT;>;
0 8 1 clazz Ljava/lang/Class<+TT;>;
0 8 2 inputMessage Lorg/springframework/http/HttpInputMessage;
3 4 3 ex Ljava/lang/Exception;
5 8 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.io.IOException
0 1 2 Class org.springframework.http.converter.HttpMessageConversionException
0 1 4 Class java.lang.Exception
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
protected final void writeInternal(T, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokeinterface org.springframework.http.HttpOutputMessage.getHeaders:()Lorg/springframework/http/HttpHeaders;
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
invokevirtual org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter.writeToResult:(Ljava/lang/Object;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Result;)V
1: goto 6
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 3: aload 3
athrow
end local 3 4: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new org.springframework.http.converter.HttpMessageNotWritableException
dup
new java.lang.StringBuilder
dup
ldc "Could not marshal ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.Exception.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
invokespecial org.springframework.http.converter.HttpMessageNotWritableException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/http/converter/xml/AbstractXmlHttpMessageConverter<TT;>;
0 7 1 t TT;
0 7 2 outputMessage Lorg/springframework/http/HttpOutputMessage;
3 4 3 ex Ljava/lang/Exception;
5 6 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.io.IOException
0 1 2 Class org.springframework.http.converter.HttpMessageConversionException
0 1 4 Class java.lang.Exception
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
Signature: (TT;Lorg/springframework/http/HttpOutputMessage;)V
MethodParameters:
Name Flags
t
outputMessage
protected void transform(javax.xml.transform.Source, javax.xml.transform.Result);
descriptor: (Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V
flags: (0x0004) ACC_PROTECTED
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.AbstractXmlHttpMessageConverter.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/AbstractXmlHttpMessageConverter<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 abstract T readFromSource(java.lang.Class<? extends T>, org.springframework.http.HttpHeaders, javax.xml.transform.Source);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Source;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<+TT;>;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Source;)TT;
MethodParameters:
Name Flags
clazz
headers
source
protected abstract void writeToResult(T, org.springframework.http.HttpHeaders, javax.xml.transform.Result);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Result;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
Signature: (TT;Lorg/springframework/http/HttpHeaders;Ljavax/xml/transform/Result;)V
MethodParameters:
Name Flags
t
headers
result
}
Signature: <T:Ljava/lang/Object;>Lorg/springframework/http/converter/AbstractHttpMessageConverter<TT;>;
SourceFile: "AbstractXmlHttpMessageConverter.java"