@@ -0,0 +1,1390 @@
+package com.wangyin.ak47.example;%0A%0Aimport com.wangyin.ak47.common.Logger;%0Aimport com.wangyin.ak47.core.Request;%0Aimport com.wangyin.ak47.core.Response;%0Aimport com.wangyin.ak47.core.service.ForwardService;%0Aimport com.wangyin.ak47.core.Service;%0Aimport com.wangyin.ak47.core.stub.SimpleStub;%0Aimport com.wangyin.ak47.pipes.http.SimpleHttpPipe;%0Aimport com.wangyin.ak47.pipes.http.SimpleHttpRequest;%0Aimport com.wangyin.ak47.pipes.http.SimpleHttpResponse;%0A%0A%0Apublic class SimpleForwardExample %7B%0A    private static final Logger log = new Logger(SimpleForwardExample.class);%0A    %0A    public static void main(String args%5B%5D) throws Exception%7B%0A        SimpleHttpPipe ep = new SimpleHttpPipe();%0A        %0A        SimpleStub%3CSimpleHttpRequest, SimpleHttpResponse%3E stub = ep.createSimpleStub(8555);%0A        %0A        stub.addService(%22forward%22, new ForwardService%3CSimpleHttpRequest, SimpleHttpResponse%3E(ep, %0A                %22www.jd.com%22, 80));%0A        %0A        stub.addService(%22user%22, new Service%3CSimpleHttpRequest, SimpleHttpResponse%3E()%7B%0A%0A%0A            @Override%0A            public void doService(Request%3CSimpleHttpRequest%3E request,%0A                    Response%3CSimpleHttpResponse%3E response) throws Exception %7B%0A                log.info(%22q: %7B%7D%22, request.pojo());%0A                log.info(%22r: %7B%7D%22, response.pojo());%0A            %7D%0A        %7D);%0A        %0A        stub.start();%0A        stub.hold();%0A        %0A    %7D%0A%0A%7D%0A

add SimpleForwardExample