ProcessingContextWrapper.java
1.35 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.api.SlingHttpServletRequest
* org.apache.sling.api.SlingHttpServletResponse
* org.apache.sling.rewriter.ProcessingContext
*/
package com.day.cq.rewriter.processor.impl;
import com.day.cq.rewriter.processor.ProcessingContext;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
public class ProcessingContextWrapper
implements ProcessingContext {
private final org.apache.sling.rewriter.ProcessingContext delegatee;
public ProcessingContextWrapper(org.apache.sling.rewriter.ProcessingContext pc) {
this.delegatee = pc;
}
@Override
public String getContentType() {
return this.delegatee.getContentType();
}
@Override
public OutputStream getOutputStream() throws IOException {
return this.delegatee.getOutputStream();
}
@Override
public SlingHttpServletRequest getRequest() {
return this.delegatee.getRequest();
}
@Override
public SlingHttpServletResponse getResponse() {
return this.delegatee.getResponse();
}
@Override
public PrintWriter getWriter() throws IOException {
return this.delegatee.getWriter();
}
}