/*
Copyright (c) 2002, Matthias Bauer, LIVINGLOGIC AG, BAYREUTH
All rights reserved.

Redistribution and use in source and binary forms, with or without 
modification, are permitted provided that the following conditions are 
met:

    1. Redistributions of source code must retain the above copyright 
       notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright 
       notice, this list of conditions and the following disclaimer in the 
       documentation and/or other materials provided with the distribution.
    3. The end-user documentation included with the redistribution, if
       any, must include the following acknowlegement:
       "This product includes software developed by 
        Matthias Bauer, LIVINGLOGIC AG, BAYREUTH 
        (http://www.livinglogic.de/)."
       Alternately, this acknowlegement may appear in the software itself,
       if and wherever such third-party acknowlegements normally appear.
    4. Neither the name of Matthias Bauer, nor the LIVINGLOGIC AG nor the 
       names of the other contributors may be used to endorse or promote 
       products derived from this software without specific prior written
       permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
POSSIBILITY OF SUCH DAMAGE.
*/

package es.ejie.frmk.presentacion.operacion;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.config.ForwardConfig;

/**
 * Defines all the methods a RequestProcessor subclass must define, so it can be
 * used in instances of WorkflowRequestProcessorLogic
 *
 * @author M. Bauer
 * @version 1.0
 */
public interface Q70AdaptadorLogicaOperacionDePresentacion 
{
	public ActionServlet getServlet();
	public void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward)
		throws IOException, ServletException;

	public HttpServletRequest processMultipart(HttpServletRequest request);

	public String processPath(HttpServletRequest request,HttpServletResponse response)
		throws IOException;

	public void processLocale(HttpServletRequest request, HttpServletResponse response);

	public void processContent(HttpServletRequest request, HttpServletResponse response);

	public void processNoCache(HttpServletRequest request, HttpServletResponse response);

	public boolean processPreprocess(HttpServletRequest request,HttpServletResponse response);

	public ActionMapping processMapping(HttpServletRequest request, HttpServletResponse response, String path)
		throws IOException;

	public boolean processRoles(HttpServletRequest request, HttpServletResponse response,
		ActionMapping mapping) throws IOException, ServletException;

	public ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping);

	public void processPopulate(HttpServletRequest request, HttpServletResponse response,
		ActionForm form, ActionMapping mapping) throws ServletException;

	public boolean processValidate(HttpServletRequest request, HttpServletResponse response,
		ActionForm form, ActionMapping mapping) throws IOException, ServletException;

	public boolean processForward(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
		throws IOException, ServletException;

	public boolean processInclude(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
		throws IOException, ServletException;

	public Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) 
		throws IOException; 

	public ActionForward processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action,
		ActionForm form, ActionMapping mapping) throws IOException, ServletException;
}

