知识库--Parsing the Connection
来源:互联网 发布:matlab em算法 编辑:程序博客网 时间:2024/06/06 17:27
The parseConnection method obtains the Internet address from the socket and assigns it to the HttpRequestImpl object. It also checks if a proxy is used and assigns the socket to the request object. The parseConnection method is given following.
private void parseConnection(Socket socket) throws IOException, ServletException{ if(debug > 2){ log(" parseConnection: address=" + socket.getInetAddress() + ",port = " + connector.getPort()); } ((HttpRequestInput)request).setInet(socket.getInetAddress()); if(proxyPort != 0){ request.setServerPort(proxyPort); }else{ request.setServerPort(serverPort); } request.setSocket(socket); }
0 0
- 知识库--Parsing the Connection
- 知识库--Parsing the Request & Headers
- 知识库--parsing headers
- 知识库--parsing cookies
- 知识库--The Connector Interface
- 知识库--The HttpProcessor Class
- 知识库--The Pipeline Interface
- 知识库--The Simple Container Application
- 知识库--The LifecycleSupport (45)
- 知识库 --allocate the servlet(54)
- Parsing URLs with the DOM
- Parsing URLs with the DOM
- Error: Error parsing the sdk.
- Parsing URLs with the DOM!
- 知识库
- 知识库
- 知识库
- 知识库
- Hadoop安装配置
- 欧拉函数
- 《特别推荐》10套精美的免费网站后台管理系统模板
- javascript知识点总结
- html表单元素非空、正则校验
- 知识库--Parsing the Connection
- xenomai
- eclipse如何使用官方中文版
- Vue.js 和 MVVM 小细节
- 如何使用QEMU来编译打包armhf/arm64的snap包
- Qt 表格&列表数据驱动化(c++)
- 知识库--Parsing the Request & Headers
- openCV打开树莓派原装CSI摄像头
- 数据结构与算法笔记 lesson 15 递归