Commit d401e60a4728deaedcd829b5d461498598715cc3
- Diff rendering mode:
- inline
- side by side
spring-integration-http/src/main/java/org/springframework/integration/http/inbound/HttpRequestHandlingMessagingGateway.java
(3 / 3)
|   | |||
| 88 | 88 | * 'expectReply' property is true, it will also generate a response from the reply Message once received. That | |
| 89 | 89 | * response will be written by the {@link HttpMessageConverter}s. | |
| 90 | 90 | */ | |
| 91 | public final void handleRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse) | ||
| 91 | public void handleRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse) | ||
| 92 | 92 | throws ServletException, IOException { | |
| 93 | 93 | Object responseContent = null; | |
| 94 | 94 | try { | |
| … | … | ||
| 109 | 109 | } | |
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | private Object handleExceptionInternal(Exception e) throws IOException { | ||
| 112 | protected Object handleExceptionInternal(Exception e) throws IOException { | ||
| 113 | 113 | if (this.convertExceptions && isExpectReply()) { | |
| 114 | 114 | return e; | |
| 115 | 115 | } | |
| … | … | ||
| 127 | 127 | } | |
| 128 | 128 | ||
| 129 | 129 | @SuppressWarnings({"unchecked", "rawtypes"}) | |
| 130 | private void writeResponse(Object content, ServletServerHttpResponse response, List<MediaType> acceptTypes) throws IOException { | ||
| 130 | protected void writeResponse(Object content, ServletServerHttpResponse response, List<MediaType> acceptTypes) throws IOException { | ||
| 131 | 131 | if (CollectionUtils.isEmpty(acceptTypes)) { | |
| 132 | 132 | acceptTypes = Collections.singletonList(MediaType.ALL); | |
| 133 | 133 | } |
Comments
Add your comment
Please log in to comment



Add a new comment:
Login or create an account to post a comment