com.day.cq.rewriter.processor.ProcessingContext Maven / Gradle / Ivy
/*
* Copyright 1997-2008 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Day.
*/
package com.day.cq.rewriter.processor;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
/**
* The context for a processor invocation.
* @deprecated Use the Apache Sling Rewriter Module (org.apache.sling.rewriter.ProcessingContext)
*/
@Deprecated
public interface ProcessingContext {
SlingHttpServletRequest getRequest();
SlingHttpServletResponse getResponse();
/**
* The content type of the response.
* @return content type
*/
String getContentType();
/**
* The writer.
* @return print writer
* @throws IOException {@link IOException}
*/
PrintWriter getWriter() throws IOException;
/**
* The output stream.
* @return output stream
* @throws IOException {@link IOException}
*/
OutputStream getOutputStream() throws IOException;
}