Semiflexible polymer in the half plane and statistics of the integral of a Brownian curve