protected void writeResponse ( HttpServletResponse response , ApiResponse sresponse ) { response . setStatus ( sresponse . getCode ( ) ) ; for ( Entry < String , String > entry : sresponse . getHeaders ( ) ) { response . addHeader ( entry . getKey ( ) , entry . getValue ( ) ) ; } }
Writes the API response to the HTTP servlet response object .