Skip to content
Permalink
Browse files

Introduce produces attribute in @PostResource, @postjson, & @postxml

Issue: #18
  • Loading branch information
sbrannen committed Apr 6, 2016
1 parent 9bbb45d commit 0acc3939647545653b9f2d3543acfce0b809e3d3
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@

/**
* @author Kazuki Shimizu
* @author Sam Brannen
* @since 1.0
*/
@RequestMapping(method = POST)
@@ -58,4 +59,7 @@
@AliasFor(annotation = RequestMapping.class, attribute = "consumes")
String[] consumes() default {};

@AliasFor(annotation = RequestMapping.class, attribute = "produces")
String[] produces() default {};

}
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,4 +57,7 @@
@AliasFor(annotation = RequestMapping.class, attribute = "headers")
String[] headers() default {};

@AliasFor(annotation = RequestMapping.class, attribute = "produces")
String[] produces() default {};

}
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -57,4 +57,7 @@
@AliasFor(annotation = RequestMapping.class, attribute = "headers")
String[] headers() default {};

@AliasFor(annotation = RequestMapping.class, attribute = "produces")
String[] produces() default {};

}

0 comments on commit 0acc393

Please sign in to comment.
You can’t perform that action at this time.