package Ġorg . gob lin framework . example . embedded . interceptor Ċ Ċ import Ġorg . gob lin framework . web mvc . handler . RequestHandler Ċ import Ġorg . gob lin framework . web mvc . interceptor . Abstract Interceptor Ċ import Ġorg . gob lin framework . web mvc . servlet . G ob lin Servlet Request Ċ import Ġorg . gob lin framework . web mvc . servlet . G ob lin Servlet Response Ċ import Ġorg . slf 4 j . LoggerFactory Ċ Ċ class ĠManaged Log Interceptor : ĠAbstract Interceptor () Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Managed Log Interceptor :: class . java ) ĊĠ Ġ} ĊĊĠ Ġinit Ġ{ ĊĠĠĠ Ġset Include Patterns (" /** ") ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġpre Handle ( request : ĠG ob lin Servlet Request , Ġresponse : ĠG ob lin Servlet Response , Ġhandler : ĠRequest Handler ): ĠBoolean Ġ{ ĊĠĠĠ Ġlogger . info (" Managed Log Interceptor Ġpre - handle Ġrequest Ġ[ ${ request . servlet Request . request URI }] ") ĊĠĠĠ Ġreturn Ġtrue ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġpost Handle ( request : ĠG ob lin Servlet Request , Ġresponse : ĠG ob lin Servlet Response , Ġhandler : ĠRequest Handler ) Ġ{ ĊĠĠĠ Ġlogger . info (" Managed Log Interceptor Ġpost - handle Ġrequest Ġ[ ${ request . servlet Request . request URI }] ") ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġafter Completion ( request : ĠG ob lin Servlet Request , Ġresponse : ĠG ob lin Servlet Response , Ġhandler : ĠRequest Handler , Ġcause : ĠThrowable ?) Ġ{ ĊĠĠĠ Ġlogger . info (" Managed Log Interceptor Ġafter Ġcomplete Ġrequest Ġ[ ${ request . servlet Request . request URI }] ") ĊĠ Ġ} Ċ }