public class org.springframework.http.converter.ObjectToStringHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.http.converter.ObjectToStringHttpMessageConverter
super_class: org.springframework.http.converter.AbstractHttpMessageConverter
{
private final org.springframework.core.convert.ConversionService conversionService;
descriptor: Lorg/springframework/core/convert/ConversionService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.http.converter.StringHttpMessageConverter stringHttpMessageConverter;
descriptor: Lorg/springframework/http/converter/StringHttpMessageConverter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.springframework.core.convert.ConversionService);
descriptor: (Lorg/springframework/core/convert/ConversionService;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.springframework.http.converter.StringHttpMessageConverter.DEFAULT_CHARSET:Ljava/nio/charset/Charset;
invokespecial org.springframework.http.converter.ObjectToStringHttpMessageConverter.<init>:(Lorg/springframework/core/convert/ConversionService;Ljava/nio/charset/Charset;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 2 1 conversionService Lorg/springframework/core/convert/ConversionService;
MethodParameters:
Name Flags
conversionService
public void <init>(org.springframework.core.convert.ConversionService, java.nio.charset.Charset);
descriptor: (Lorg/springframework/core/convert/ConversionService;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
iconst_1
anewarray org.springframework.http.MediaType
dup
iconst_0
getstatic org.springframework.http.MediaType.TEXT_PLAIN:Lorg/springframework/http/MediaType;
aastore
invokespecial org.springframework.http.converter.AbstractHttpMessageConverter.<init>:(Ljava/nio/charset/Charset;[Lorg/springframework/http/MediaType;)V
1: aload 1
ldc "ConversionService is required"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
3: aload 0
new org.springframework.http.converter.StringHttpMessageConverter
dup
aload 2
invokespecial org.springframework.http.converter.StringHttpMessageConverter.<init>:(Ljava/nio/charset/Charset;)V
putfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.stringHttpMessageConverter:Lorg/springframework/http/converter/StringHttpMessageConverter;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 5 1 conversionService Lorg/springframework/core/convert/ConversionService;
0 5 2 defaultCharset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
conversionService
defaultCharset
public void setWriteAcceptCharset(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
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.stringHttpMessageConverter:Lorg/springframework/http/converter/StringHttpMessageConverter;
iload 1
invokevirtual org.springframework.http.converter.StringHttpMessageConverter.setWriteAcceptCharset:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 2 1 writeAcceptCharset Z
MethodParameters:
Name Flags
writeAcceptCharset
public boolean canRead(java.lang.Class<?>, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.springframework.http.converter.ObjectToStringHttpMessageConverter.canRead:(Lorg/springframework/http/MediaType;)Z
ifeq 1
aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
ldc Ljava/lang/String;
aload 1
invokeinterface org.springframework.core.convert.ConversionService.canConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 2 1 clazz Ljava/lang/Class<*>;
0 2 2 mediaType Lorg/springframework/http/MediaType;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/MediaType;)Z
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
clazz
mediaType
public boolean canWrite(java.lang.Class<?>, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/MediaType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.springframework.http.converter.ObjectToStringHttpMessageConverter.canWrite:(Lorg/springframework/http/MediaType;)Z
ifeq 1
aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
aload 1
ldc Ljava/lang/String;
invokeinterface org.springframework.core.convert.ConversionService.canConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 2 1 clazz Ljava/lang/Class<*>;
0 2 2 mediaType Lorg/springframework/http/MediaType;
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/MediaType;)Z
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
clazz
mediaType
protected boolean supports(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 1 1 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
protected readInternal(java.lang.Class<?>, org.springframework.http.HttpInputMessage);
descriptor: (Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.stringHttpMessageConverter:Lorg/springframework/http/converter/StringHttpMessageConverter;
ldc Ljava/lang/String;
aload 2
invokevirtual org.springframework.http.converter.StringHttpMessageConverter.readInternal:(Ljava/lang/Class;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
aload 3
aload 1
invokeinterface org.springframework.core.convert.ConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
astore 4
start local 4 2: aload 4
ifnonnull 7
3: new org.springframework.http.converter.HttpMessageNotReadableException
dup
4: new java.lang.StringBuilder
dup
ldc "Unexpected null conversion result for '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: aload 2
6: invokespecial org.springframework.http.converter.HttpMessageNotReadableException.<init>:(Ljava/lang/String;Lorg/springframework/http/HttpInputMessage;)V
athrow
7: StackMap locals: java.lang.String java.lang.Object
StackMap stack:
aload 4
areturn
end local 4 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/ObjectToStringHttpMessageConverter;
0 8 1 clazz Ljava/lang/Class<*>;
0 8 2 inputMessage Lorg/springframework/http/HttpInputMessage;
1 8 3 value Ljava/lang/String;
2 8 4 result Ljava/lang/Object;
Exceptions:
throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
Signature: (Ljava/lang/Class<*>;Lorg/springframework/http/HttpInputMessage;)Ljava/lang/Object;
MethodParameters:
Name Flags
clazz
inputMessage
protected void writeInternal(java.lang.Object, org.springframework.http.HttpOutputMessage);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/HttpOutputMessage;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
aload 1
ldc Ljava/lang/String;
invokeinterface org.springframework.core.convert.ConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.stringHttpMessageConverter:Lorg/springframework/http/converter/StringHttpMessageConverter;
aload 3
aload 2
invokevirtual org.springframework.http.converter.StringHttpMessageConverter.writeInternal:(Ljava/lang/String;Lorg/springframework/http/HttpOutputMessage;)V
3: StackMap locals: java.lang.String
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 4 1 obj Ljava/lang/Object;
0 4 2 outputMessage Lorg/springframework/http/HttpOutputMessage;
1 4 3 value Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
obj
outputMessage
protected java.lang.Long getContentLength(java.lang.Object, org.springframework.http.MediaType);
descriptor: (Ljava/lang/Object;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.conversionService:Lorg/springframework/core/convert/ConversionService;
aload 1
ldc Ljava/lang/String;
invokeinterface org.springframework.core.convert.ConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 1: aload 3
ifnonnull 3
2: lconst_0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.springframework.http.converter.ObjectToStringHttpMessageConverter.stringHttpMessageConverter:Lorg/springframework/http/converter/StringHttpMessageConverter;
aload 3
aload 2
invokevirtual org.springframework.http.converter.StringHttpMessageConverter.getContentLength:(Ljava/lang/String;Lorg/springframework/http/MediaType;)Ljava/lang/Long;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/http/converter/ObjectToStringHttpMessageConverter;
0 4 1 obj Ljava/lang/Object;
0 4 2 contentType Lorg/springframework/http/MediaType;
1 4 3 value Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
obj
contentType
}
Signature: Lorg/springframework/http/converter/AbstractHttpMessageConverter<Ljava/lang/Object;>;
SourceFile: "ObjectToStringHttpMessageConverter.java"