public RequestCtx makeRequestCtx ( String request ) throws MelcoeXacmlException { RequestCtx reqCtx = null ; try { ByteArrayInputStream is = new ByteArrayInputStream ( request . getBytes ( ) ) ; reqCtx = BasicRequestCtx . getInstance ( is ) ; } catch ( ParsingException pe ) { throw new MelcoeXacmlException ( "Error parsing response." , pe ) ; } return reqCtx ; }
Converts a string based request to a RequestCtx obejct .