test
来源:互联网 发布:origin mac版 编辑:程序博客网 时间:2024/06/08 07:08
这编辑器是什么鬼?
package com.ai.jcpg.webview.servlet;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.commons.lang.StringUtils;import com.ai.jcpg.common.utils.CommonUtils;/** * Servlet implementation class SourceFileServlet */@WebServlet("/SourceFileServlet")public class SourceFileServlet extends HttpServlet {private static final long serialVersionUID = 1L;/** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {PrintWriter writer = response.getWriter();response.setCharacterEncoding("UTF-8");response.setContentType("text/html");String classPath = request.getParameter("classPath");String action = request.getParameter("action");if(StringUtils.equals(action, "getFileList")) {writer.write(CommonUtils.getSourceCodeFileList(classPath).toString());} else {CommonUtils.outputSourceFile(writer, classPath, request.getParameter("fileName"));}writer.flush();writer.close();}/** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {// TODO Auto-generated method stubdoGet(request, response);}}
0 0
- test
- test
- test
- test
- test
- test
- test
- Test
- test
- Test
- test
- test
- test
- test
- test
- test
- test
- Test
- Ubuntu系统操作命令笔记(持续更新...)
- Web项目下的WebRoot和WebContent
- TextView设置部分文字的颜色
- LoadRunner 11压测时碰到错误Error: missing newline in *:\*****\*.dat
- 交叉编译OPENSSH(一)
- test
- LeetCode 58 Length of Last Word题解
- Linux 常用 commands
- poj_3258 River Hopscotch(二分求最大化最小值)
- 【Centos7】安装mysql5.7.16.tar.gz
- 419. [LeetCode]Battleships in a Board
- 数组
- 交叉编译OPENSSH(二)
- android studio在Refresh gradle project卡死,附解决办法