List<KeyValuePair> paraKVList = new ArrayList<KeyValuePair>();
for(Parameter para : action.getParamList()) {
paraKVList.add(new KeyValuePair(Util.getSimpleParaName(para.getType()), para.getValue()));
}
GaeaContext gaeaContext = new GaeaContext();
gaeaContext.setServerType(ServerType.HTTP);
gaeaContext.setServerHandler(this);
gaeaContext.setChannel(new GaeaChannel(e.getChannel()));
/**协议*/
Protocol protocol = new Protocol();
RequestProtocol request = new RequestProtocol();
request.setLookup(action.getLookup());
request.setMethodName(action.getMethodName());
request.setParaKVList(paraKVList);
protocol.setSdpEntity(request);
gaeaContext.getGaeaRequest().setProtocol(protocol);
/**HttpContext 上下文*/
com.bj58.spat.gaea.server.contract.http.HttpContext httpcontext = new com.bj58.spat.gaea.server.contract.http.HttpContext();
com.bj58.spat.gaea.server.contract.http.HttpRequest httpRequest = new com.bj58.spat.gaea.server.contract.http.HttpRequest();
httpRequest.setContent(httpContext.getContentBuffer());
httpRequest.setFromIP(httpContext.getFromIP());
httpRequest.setToIP(httpContext.getToIP());
httpRequest.setUri(httpContext.getUri());
httpRequest.setHeaders_(httpContext.getHeaders());
httpcontext.setRequest(httpRequest);
gaeaContext.setHttpContext(httpcontext);
HttpServer.invokerHandle.invoke(gaeaContext);
} catch (Throwable ex) {
logger.error("http request error!!!", ex);