from Common import *

from Filter import Filter

class FilterSink(Filter):

	""" A Sink for the Chain of Filters which returns control to the
	Application so that it can find and run a servlet."""

	## Init ##

	def __init__(self, application):
		Filter.__init__(self)
		self._application = application

	def filter(self, transaction, next):
		self._application.runServletInTransaction(transaction)
		# Ignore next, since the chain is complete
		return
