a „oeŒ ã@s$dZGdd„dƒZGdd„dƒZdS)aƒSimple base-classes for extensions and filters. None of the filter and extension functions are considered 'optional' by the framework. These base-classes provide simple implementations for the Initialize and Terminate functions, allowing you to omit them, It is not necessary to use these base-classes - but if you don't, you must ensure each of the required methods are implemented. c@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) ÚSimpleExtensionz'Base class for a simple ISAPI extensioncCsdS©N©©Úselfrrú-C:\Program Files\Certbot\pkgs\isapi\simple.pyÚ__init__szSimpleExtension.__init__cCs|dur|j|_dS)z£Called by the ISAPI framework to get the extension version The default implementation uses the classes docstring to set the extension description.N)Ú__doc__Z ExtensionDesc)rÚvirrrÚGetExtensionVersionsz#SimpleExtension.GetExtensionVersioncCs tdƒ‚dS)z‡Called by the ISAPI framework for each extension request. sub-classes must provide an implementation for this method. ú-sub-classes should override HttpExtensionProcN©ÚNotImplementedError)rZ control_blockrrrÚHttpExtensionProcsz!SimpleExtension.HttpExtensionProccCsdS)z:Called by the ISAPI framework as the extension terminates.Nr©rÚstatusrrrÚTerminateExtension"sz"SimpleExtension.TerminateExtensionN)Ú__name__Ú __module__Ú __qualname__rrr rrrrrrr s  rc@s4eZdZdZdZdd„Zdd„Zdd„Zd d „ZdS) Ú SimpleFilterz&Base class for a a simple ISAPI filterNcCsdSrrrrrrr+szSimpleFilter.__init__cCs.|jdurtdƒ‚|dur*|j|_|j|_dS)a5Called by the ISAPI framework to get the extension version The default implementation uses the classes docstring to set the extension description, and uses the classes filter_flags attribute to set the ISAPI filter flags - you must specify filter_flags in your class. Nz!You must specify the filter flags)Ú filter_flagsÚ RuntimeErrorZFlagsrZ FilterDesc)rZfvrrrÚGetFilterVersion.s  zSimpleFilter.GetFilterVersioncCs tdƒ‚dS)z„Called by the ISAPI framework for each filter request. sub-classes must provide an implementation for this method. r Nr )rZfcrrrÚHttpFilterProc=szSimpleFilter.HttpFilterProccCsdS)z7Called by the ISAPI framework as the filter terminates.NrrrrrÚTerminateFilterDszSimpleFilter.TerminateFilter) rrrrrrrrrrrrrr's rN)rrrrrrrÚs