?? httphandler.java
字號(hào):
package com.eshore.pubservice.http.handle;
import org.apache.mina.common.IoSession;
import com.eshore.pubservice.http.msg.HttpRequestHead;
import com.eshore.pubservice.http.msg.HttpRequestMsg;
import com.eshore.pubservice.nio.handle.IHandler;
import com.eshore.pubservice.nio.msg.IMsg;
/**
* Http 請(qǐng)求處理器.
*
* @author lishuisheng
*
*/
public class HttpHandler implements IHandler {
public void handle(IoSession session,IMsg msg) {
HttpRequestMsg message=(HttpRequestMsg)msg;
HttpRequestHead head=message.getHead();
System.out.println(head.toString());
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -