Index: 3rdParty_sources/servlet-api/javax/servlet/ServletResponse.java
===================================================================
diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r188531e2b734df509672788d897e1030e4b1a24a
--- 3rdParty_sources/servlet-api/javax/servlet/ServletResponse.java (.../ServletResponse.java) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80)
+++ 3rdParty_sources/servlet-api/javax/servlet/ServletResponse.java (.../ServletResponse.java) (revision 188531e2b734df509672788d897e1030e4b1a24a)
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
- * Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997-2017 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
@@ -76,13 +76,19 @@
* ServletOutputStream
and manage the character sections
* manually.
*
- *
The charset for the MIME body response can be specified
- * explicitly using the {@link #setCharacterEncoding} and
- * {@link #setContentType} methods, or implicitly
- * using the {@link #setLocale} method.
- * Explicit specifications take precedence over
- * implicit specifications. If no charset is specified, ISO-8859-1 will be
- * used. The setCharacterEncoding
,
+ *
The charset for the MIME body response can be specified explicitly
+ * using any of the following techniques: per request, per web-app (using
+ * {@link ServletContext#setRequestCharacterEncoding}, deployment descriptor),
+ * and per container (for all web applications deployed in that container,
+ * using vendor specific configuration).
+ * If multiple of the preceding techniques have been employed, the priority is
+ * the order listed.
+ * For per request, the charset for the response can be specified explicitly
+ * using the {@link #setCharacterEncoding} and {@link #setContentType} methods,
+ * or implicitly using the {@link #setLocale} method.
+ * Explicit specifications take precedence over implicit specifications.
+ * If no charset is explicitly specified, ISO-8859-1 will be used.
+ * The setCharacterEncoding
,
* setContentType
, or setLocale
method must
* be called before getWriter
and before committing
* the response for the character encoding to be used.
@@ -103,12 +109,17 @@
/**
* Returns the name of the character encoding (MIME charset)
* used for the body sent in this response.
- * The character encoding may have been specified explicitly
- * using the {@link #setCharacterEncoding} or
- * {@link #setContentType} methods, or implicitly using the
- * {@link #setLocale} method. Explicit specifications take
- * precedence over implicit specifications. Calls made
- * to these methods after getWriter
has been
+ * The following methods for specifying the response character encoding are
+ * consulted, in decreasing order of priority: per request, perweb-app
+ * (using {@link ServletContext#setResponseCharacterEncoding}, deployment
+ * descriptor), and per container (for all web applications deployed in
+ * that container, using vendor specific configuration).
+ * The first one of these methods that yields a result is returned.
+ * Per-request, the charset for the response can be specified explicitly
+ * using the {@link setCharacterEncoding} and {@link setContentType}
+ * methods, or implicitly using the setLocale(java.util.Locale) method.
+ * Explicit specifications take precedence over implicit specifications.
+ * Calls made to these methods after getWriter
has been
* called or after the response has been committed have no
* effect on the character encoding. If no character encoding
* has been specified, ISO-8859-1
is returned.
@@ -205,9 +216,10 @@
/**
* Sets the character encoding (MIME charset) of the response
* being sent to the client, for example, to UTF-8.
- * If the character encoding has already been set by
- * {@link #setContentType} or {@link #setLocale},
- * this method overrides it.
+ * If the response character encoding has already been set by the
+ * {@link ServletContext#setResponseCharacterEncoding},
+ * deployment descriptor, or using the setContentType() or setLocale()
+ * methods, the value set in this method overrides any of those values.
* Calling {@link #setContentType} with the String
* of text/html
and calling
* this method with the String
of UTF-8
@@ -342,6 +354,9 @@
* @see #getBufferSize
* @see #isCommitted
* @see #reset
+
+ * @throws IOException if the act of flushing the buffer cannot be
+ * completed.
*
*/
public void flushBuffer() throws IOException;
@@ -444,6 +459,8 @@
* setLocale
after the response is committed
* have no effect. If no locale has been specified,
* the container's default locale is returned.
+ *
+ * @return the Locale for this response.
*
* @see #setLocale
*/