weimingtom / asyncweb2 Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/asyncweb2
Automatically exported from code.google.com/p/asyncweb2
Branch name:
Purpose of code changes on this branch:
When reviewing my code changes, please focus on:
After the review, I'll merge this branch into:
/trunk
--------------------
(1)src_asyncweb_apache_mina1_0.rar 反编译
asyncweb-common-0.9.0-SNAPSHOT.jar(仅支持mina2.0m2)
(2)src_asyncweb_apache_mina1_1.rar 修改 org\apache\asyncweb\common
以便支持mina2.0m3+ (未完,在HttpVersion时处理Enum失败)
(3)src_asyncweb_apache_mina2_0.rar 获取 org\apache\mina\filter\codec\http
(4)src_asyncweb_apache_mina2_1.rar 修改(支持mina2.0m3+ )
。。。完成
修改DefaultCookie类,增加public DefaultCookie(String name, String
value)构造方法:
修改import,将org.apache.mina.common.IoBuffer用org.apache.mina.core.buffer.
IoBuffer替换;
修改import,将org.apache.mina.common.IoSession用org.apache.mina.core.sessio
n.IoSession替换;
修改import,将org.apache.mina.common.IoAcceptor用org.apache.mina.core.servi
ce.IoAcceptor替换;
(5)src_asyncweb_apache_mina2_2.rar 支持Play.Server.HttpHandler
修改:MutableHttpRequest接口,增加以下方法;
public abstract File getFileContent();
public abstract void setFileContent(File paramFile);
修改:DefaultHttpMessage抽象类,增加以下方法;
private File fileContent;
public File getFileContent() { return this.fileContent; }
public void setFileContent(File fileContent) { this.fileContent = fileContent; }
(6)src_asyncweb_apache_mina2_3.rar 支持 ContinuationSupport 操作
修改:MutableHttpRequest抽象类,增加以下方法:
public Object getAttribute(String name, Object defautValue);
public Object setAttribute(String name, Object newValue);
修改:DefaultHttpRequest抽象类,实现以下方法;
private Map<String, Object> attributes = new TreeMap<String, Object>();//Lius
Add
public Object getAttribute(String name, Object defautValue){
public Object setAttribute(String name, Object newValue){
修改:DefaultHttpMessage类,扩大访问权限(方便IHttp.Response继承
)
protected HttpVersion protocolVersion = HttpVersion.HTTP_1_1;
protected final Map<String, List<String>> headers = new TreeMap<String,
List<String>>(HttpHeaderNameComparator.INSTANCE);
protected final Set<Cookie> cookies = new
TreeSet<Cookie>(CookieComparator.INSTANCE);
protected transient IoBuffer content = IoBuffer.allocate(0);
--------------------
Original issue reported on code.google.com by [email protected]
on 9 May 2013 at 5:49
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.