File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
spring-web/src/main/java/org/springframework/http/converter/json Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 41
41
* <a href="https://github.com/FasterXML/jackson-dataformat-xml/issues/355">FasterXML/jackson-dataformat-xml#355</a>.
42
42
*
43
43
* @author Rossen Stoyanchev
44
+ * @author Yanming Zhou
44
45
* @since 6.0.5
45
46
*/
46
47
@ JsonInclude (NON_EMPTY )
47
- @ JacksonXmlRootElement (localName = "problem" , namespace = "urn:ietf:rfc:7807" )
48
+ @ JacksonXmlRootElement (localName = "problem" , namespace = ProblemDetailJacksonXmlMixin . NAMESPACE )
48
49
public interface ProblemDetailJacksonXmlMixin {
49
50
50
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
51
+ String NAMESPACE = "urn:ietf:rfc:7807" ;
52
+
53
+ @ JacksonXmlProperty (namespace = NAMESPACE )
51
54
URI getType ();
52
55
53
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
56
+ @ JacksonXmlProperty (namespace = NAMESPACE )
54
57
String getTitle ();
55
58
56
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
59
+ @ JacksonXmlProperty (namespace = NAMESPACE )
57
60
int getStatus ();
58
61
59
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
62
+ @ JacksonXmlProperty (namespace = NAMESPACE )
60
63
String getDetail ();
61
64
62
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
65
+ @ JacksonXmlProperty (namespace = NAMESPACE )
63
66
URI getInstance ();
64
67
65
68
@ JsonAnySetter
66
69
void setProperty (String name , @ Nullable Object value );
67
70
68
71
@ JsonAnyGetter
69
- @ JacksonXmlProperty (namespace = "urn:ietf:rfc:7807" )
72
+ @ JacksonXmlProperty (namespace = NAMESPACE )
70
73
Map <String , Object > getProperties ();
71
74
72
75
}
You can’t perform that action at this time.
0 commit comments