SerletResponse接口:
SerletResponse接口:getOutputStream:返回可以向客戶端發(fā)送二進制數(shù)據(jù)的輸出流對象ServletOutputStream
getWriter:返回可以向客戶端發(fā)送字符數(shù)據(jù)的PrintWriter對象
getCharacterEncoding:返回Servlet發(fā)送的響應(yīng)數(shù)據(jù)的字符編碼。
getContentType:返回Servlet發(fā)送的響應(yīng)數(shù)據(jù)的MIME類型。
setCharacterEncoding:設(shè)置Servlet發(fā)送的響應(yīng)數(shù)據(jù)的字符編碼
setContentType:設(shè)置Servlet發(fā)送的響應(yīng)數(shù)據(jù)的MIME類型。