ProcessingContextImpl.java
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.servlet.ServletOutputStream
* org.apache.sling.api.SlingHttpServletRequest
* org.apache.sling.api.SlingHttpServletResponse
* org.apache.sling.rewriter.ProcessingContext
*/
package com.adobe.cq.mcm.campaign.impl;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import javax.servlet.ServletOutputStream;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.rewriter.ProcessingContext;
public class ProcessingContextImpl
implements ProcessingContext {
private final SlingHttpServletRequest request;
private final SlingHttpServletResponse response;
private final String contentType;
public ProcessingContextImpl(SlingHttpServletRequest request, SlingHttpServletResponse response, String contentType) {
this.request = request;
this.response = response;
this.contentType = contentType;
}
public String getContentType() {
return this.contentType;
}
public SlingHttpServletRequest getRequest() {
return this.request;
}
public SlingHttpServletResponse getResponse() {
return this.response;
}
public PrintWriter getWriter() throws IOException {
return this.response.getWriter();
}
public OutputStream getOutputStream() throws IOException {
return this.response.getOutputStream();
}
}