• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision86 (tree)
Time2015-08-23 13:58:25
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/framework/fwOnline/src/online/filter/helper/DuplicateBodyResponse.java (revision 85)
+++ trunk/framework/fwOnline/src/online/filter/helper/DuplicateBodyResponse.java (revision 86)
@@ -142,9 +142,9 @@
142142 */
143143 public void copyResponse(final HttpServletResponse response) {
144144 if (response != null) {
145+ this.dhr.copyResponse(response);
146+
145147 try {
146- this.dhr.copyResponse(response);
147-
148148 // キャラクタ配列ライタ
149149 if (this.charWriter != null) {
150150 response.getWriter().write(this.charWriter.toString());
--- trunk/framework/fwOnline/src/online/filter/helper/DuplicateHeaderResponse.java (revision 85)
+++ trunk/framework/fwOnline/src/online/filter/helper/DuplicateHeaderResponse.java (revision 86)
@@ -17,6 +17,8 @@
1717 import javax.servlet.http.Cookie;
1818 import javax.servlet.http.HttpServletResponse;
1919
20+import org.apache.logging.log4j.LogManager;
21+
2022 import core.util.MapUtil;
2123
2224 /**
@@ -392,9 +394,8 @@
392394 * レスポンス複製処理
393395 *
394396 * @param response 複製対象レスポンス
395- * @throws IOException IO例外
396397 */
397- public void copyResponse(final HttpServletResponse response) throws IOException {
398+ public void copyResponse(final HttpServletResponse response) {
398399 if (response == null) {
399400 return;
400401 }
@@ -407,19 +408,23 @@
407408 for (final Cookie cookie : this.cookieList) {
408409 response.addCookie(cookie);
409410 }
410- // エラーコード
411- if (this.errorCode != null) {
412- // エラーメッセージ
413- if (this.errorMsg != null) {
414- response.sendError(this.errorCode.intValue(), this.errorMsg);
415- } else {
416- response.sendError(this.errorCode.intValue());
411+ try {
412+ // エラーコード
413+ if (this.errorCode != null) {
414+ // エラーメッセージ
415+ if (this.errorMsg != null) {
416+ response.sendError(this.errorCode.intValue(), this.errorMsg);
417+ } else {
418+ response.sendError(this.errorCode.intValue());
419+ }
417420 }
421+ // リダイレクト先
422+ if (this.sendLocation != null) {
423+ response.sendRedirect(this.sendLocation);
424+ }
425+ } catch (final IOException ex) {
426+ LogManager.getLogger().info(ex.getMessage());
418427 }
419- // リダイレクト先
420- if (this.sendLocation != null) {
421- response.sendRedirect(this.sendLocation);
422- }
423428 // ステータスコード
424429 if (this.statusCode != null) {
425430 response.setStatus(this.statusCode.intValue());