A Lawrence District Court officer charged with raping a female detainee in the courthouse on three occasions has pleaded not guilty in Salem Superior Court.