
"apiConfig": [ { "apiCode": "sac6872cb7daf0249e998f11f4b7686f548", "method": "POST", "strategy": [], "timeout": 300, "uri": "*" }, ReverseProxy setConnectionTimeout方法
22 lines
567 B
Java
22 lines
567 B
Java
package com.sf.vertx.handle;
|
|
|
|
import com.sf.vertx.enums.GatewayError;
|
|
import com.sf.vertx.exception.ServiceException;
|
|
|
|
import io.vertx.ext.web.RoutingContext;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Slf4j
|
|
public class BodyPreCheckHandlerImpl implements BodyPreCheckHandler {
|
|
|
|
@Override
|
|
public void handle(RoutingContext ctx) {
|
|
try {
|
|
} catch (Exception e) {
|
|
log.error("BodyPreCheckHandlerImpl:",e);
|
|
ctx.fail(new ServiceException(GatewayError.DEFAULT_SERVICE_ERROR));
|
|
return;
|
|
}
|
|
ctx.next();
|
|
}
|
|
} |