getHeader and getFooter methods