首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

tomcat 七 源码分析-11 tomcat对http协议的实现

2012-09-13 
tomcat 7 源码分析-11 tomcat对http协议的实现tomcat 7 源码分析-11 tomcat对http协议的实现protected boo

tomcat 7 源码分析-11 tomcat对http协议的实现
tomcat 7 源码分析-11 tomcat对http协议的实现tomcat 七 源码分析-11 tomcat对http协议的实现

    tomcat 七 源码分析-11 tomcat对http协议的实现
      tomcat 七 源码分析-11 tomcat对http协议的实现
        protected boolean processSocket(Socket socket) throws IOException {InputStream inputsteam = socket.getInputStream();Request request = new Request();InternalInputBuffer inputBuffer = new InternalInputBuffer(request);inputBuffer.setInputStream(inputsteam); request.setInputBuffer(inputBuffer); inputBuffer.parseRequestLine(false); System.out.println("@@@protocol="+request.protocol().toString()); System.out.println("@@@method="+request.method().toString()); /*BufferedReader in = new BufferedReader(new InputStreamReader(inputsteam));String inputLine;while ((inputLine = in.readLine()) != null) { System.out.println(inputLine);}*/return true;}

        ?在浏览器输入:localhost:8080/,测试结果

热点排行