8000 add ISE javadoc for setTrailerFields · javaee/servlet-spec@76de60a · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jun 6, 2018. It is now read-only.

Commit 76de60a

Browse files
committed
add ISE javadoc for setTrailerFields
1 parent 9c60a8d commit 76de60a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/javax/servlet/http/HttpServletResponse.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@ public interface HttpServletResponse extends ServletResponse {
474474
*
475475
* @param supplier the supplier of trailer headers
476476
*
477+
* @exception IllegalStateException if it is invoked after the response has
478+
* has been committed,
479+
* or the trailer is not supported in the request, for instance,
480+
* the underlying protocol is HTTP 1.0, or the response is not
481+
* in chunked encoding in HTTP 1.1.
482+
*
477483
* @since Servlet 4.0
478484
*/
479485
default public void setTrailerFields(Supplier<Map<String, String>> supplier) {

0 commit comments

Comments
 (0)
0