package com.eactive.eai.adapter.http.dynamic.filter;

import java.util.Properties;

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

public interface HttpAdapterFilter {

	public static final String ERROR_PRE_FAIL = "E.PREFILTER_FAIL";
	public static final String ERROR_POST_FAIL = "E.POSTFILTER_FAIL";
	
	public Object doPreFilter(String adptGrpName, String adptName, Object message, Properties prop,
			HttpServletRequest request, HttpServletResponse response) throws Exception;

	public Object doPostFilter(String adptGrpName, String adptName, Object resultMessage, Properties prop,
			HttpServletRequest request, HttpServletResponse response) throws Exception;
}
