# Copyright (C) 2005 Network Applied Communication Laboratory Co., Ltd. # # This file is part of Rast. # See the file COPYING for redistribution information. # class ExceptionPass SUPPORTED_VERSION = 1 MIME_TYPE = "unknown/x-rast-test-exception-pass" def invoke(filter, brigade, mime_type) next_brigade = Rast::Brigade.new next_brigade.insert_tail(Rast::TransientBucket.new("abcdef")) next_brigade.insert_tail(Rast::EOSBucket.new) filter.pass(next_brigade, "unknown/x-rast-test-unknown-mime-type") end end