因为项目需要封装了其网络层,主要对其原来的模式进行改进,使用的回调的方式来进行网络的访问和返回结果的处理,还有就是在View层和网络层之间加了一个中间层,用来分配各种网络请求,这样就可以方便的调度和管理。
我就不拿原项目的代码来演示,自己写了一个demo,首先是最底层,处理最基本的Http协议,里面包含一个execute方法,用来Post或者Get获取数据,这里为了方便我只写了一个Get,可以根...
分类:
移动开发 时间:
2015-07-21 14:49:36
阅读次数:
200
firefox 40 + Adblock Plus 2.6.9.1 + Execute JS 0.2.4.1Adblock Plus 过滤规则里添加-----------------------------------------------------------6.cn##DIV.pk_top6...
分类:
其他好文 时间:
2015-07-20 12:44:07
阅读次数:
129
firefox 40 + Adblock Plus 2.6.9.1 + Execute JS 0.2.4.1Adblock Plus 过滤规则里添加-----------------------------------------------------------kugou.com##DIV#au...
分类:
其他好文 时间:
2015-07-20 10:49:27
阅读次数:
108
firefox 40 + Adblock Plus 2.6.9.1 + Execute JS 0.2.4.1Adblock Plus 过滤规则里添加-----------------------------------------------------------kuwo.cn##.topkuwo...
分类:
其他好文 时间:
2015-07-20 10:28:12
阅读次数:
155
maven打包成war时,报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web_nanchang: Error assembling WAR...
分类:
Web程序 时间:
2015-07-20 01:11:25
阅读次数:
170
一、直接实现Action接口或集成ActionSupport类(推荐)public class HelloAction implements Action{ @Override public String execute() throws Exception { Map reques...
1、创建HTTP客户端 CloseableHttpClient client = HttpClientBuilder.create().build();2、发送基本的GET请求 instance.execute(new HttpGet(“http://www.baidu.com”));3、获取H.....
分类:
Web程序 时间:
2015-07-19 21:24:37
阅读次数:
136
1. Client创建一个ConcreteCommand对象并指定他的Receiver对象2. 某个Invoker对象存储该ConcreteCommand对象3. 该Invoker通过调用Command对象的Execute操作来提交一个请求。若该命令是可撤销的,ConcreteCommand就在执行...
分类:
其他好文 时间:
2015-07-18 15:32:18
阅读次数:
98
BCB新建线程DeleteImgThread类,其会默认继承Thread类,然后在Execute函数中编写代码,void __fastcall DeleteImgThread::Execute()
{
//---- Place thread code here ----
while(!this->Terminated)
{
//删除.\RecvTmp中的图片...
分类:
编程语言 时间:
2015-07-17 21:05:19
阅读次数:
137
1.uses ActiveX;2.procedure HLCJ.Execute;begin CoInitialize(nil); //要使用的控件 CoUninitialize;end;
分类:
编程语言 时间:
2015-07-17 18:12:30
阅读次数:
103