use of org.apache.servicecomb.core.invocation.InvocationCreator in project java-chassis by ServiceComb.
the class DefaultEdgeDispatcher method requestByFilter.
protected void requestByFilter(RoutingContext context, String microserviceName, String versionRule, String path) {
HttpServletRequestEx requestEx = new VertxServerRequestToHttpServletRequest(context);
HttpServletResponseEx responseEx = new VertxServerResponseToHttpServletResponse(context.response());
InvocationCreator creator = new EdgeInvocationCreator(context, requestEx, responseEx, microserviceName, versionRule, path);
new RestProducerInvocationFlow(creator, requestEx, responseEx).run();
}
use of org.apache.servicecomb.core.invocation.InvocationCreator in project java-chassis by ServiceComb.
the class HighwayServerConnection method onRequest.
protected void onRequest(long msgId, RequestHeader header, Buffer bodyBuffer) {
if (SCBEngine.getInstance().isFilterChainEnabled()) {
InvocationCreator creator = () -> createInvocation(msgId, header, bodyBuffer);
new HighwayProducerInvocationFlow(creator, this, msgId).run();
return;
}
HighwayServerInvoke invoke = new HighwayServerInvoke(endpoint);
if (invoke.init(this, msgId, header, bodyBuffer)) {
invoke.execute();
}
}
use of org.apache.servicecomb.core.invocation.InvocationCreator in project incubator-servicecomb-java-chassis by apache.
the class HighwayServerConnection method onRequest.
protected void onRequest(long msgId, RequestHeader header, Buffer bodyBuffer) {
if (SCBEngine.getInstance().isFilterChainEnabled()) {
InvocationCreator creator = () -> createInvocation(msgId, header, bodyBuffer);
new HighwayProducerInvocationFlow(creator, this, msgId).run();
return;
}
HighwayServerInvoke invoke = new HighwayServerInvoke(endpoint);
if (invoke.init(this, msgId, header, bodyBuffer)) {
invoke.execute();
}
}
Aggregations