Code Monkey home page Code Monkey logo

asyncweb2's People

Contributors

nikelius avatar

Stargazers

 avatar

asyncweb2's Issues

Code review request

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.