This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new 374ad21 REST refactoring.
374ad21 is described below
commit 374ad21b0e5afa97785f1c442ffa40812b637d38
Author: JamesBognar <[email protected]>
AuthorDate: Wed Mar 10 18:41:36 2021 -0500
REST refactoring.
---
.../apache/juneau/rest/processors/DefaultProcessor.java | 14 --------------
1 file changed, 14 deletions(-)
diff --git
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/processors/DefaultProcessor.java
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/processors/DefaultProcessor.java
index 568ea3c..972118e 100644
---
a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/processors/DefaultProcessor.java
+++
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/processors/DefaultProcessor.java
@@ -13,7 +13,6 @@
package org.apache.juneau.rest.processors;
import static org.apache.juneau.internal.StringUtils.*;
-import static org.apache.juneau.http.HttpHeaders.*;
import static org.apache.juneau.httppart.HttpPartType.*;
import static org.apache.juneau.internal.IOUtils.*;
@@ -170,19 +169,6 @@ public class DefaultProcessor implements ResponseProcessor
{
schema = rm.getSchema();
}
- if (o instanceof HttpEntity) {
- HttpEntity e = (HttpEntity)o;
-
res.header(e.getContentType()).header(e.getContentEncoding());
- long contentLength = e.getContentLength();
- if (contentLength >= 0)
- res.header(contentLength(contentLength));
- try (OutputStream os = res.getNegotiatedOutputStream())
{
- e.writeTo(os);
- os.flush();
- }
- return 1;
- }
-
if (sm != null) {
Serializer s = sm.getSerializer();
MediaType mediaType = res.getMediaType();