ProcessingContextImpl.java 1.48 KB
/*
 * 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();
    }
}