@ GET @ Path ( "rawtext/{top}/{docname}" ) @ Produces ( MediaType . APPLICATION_XML ) public RawTextWrapper getRawText ( @ PathParam ( "top" ) String top , @ PathParam ( "docname" ) String docname ) { Subject user = SecurityUtils . getSubject ( ) ; user . checkPermission ( "query:raw_text:" + top ) ; RawTextWrapper result = new RawTextWrapper ( ) ; result . setTexts ( queryDao . getRawText ( top , docname ) ) ; return result ; }
Fetches the raw text from the text . tab file .