Пример #1
0
 @Override
 public void onRpcRequest(
     RpcRequest req,
     RequestContext requestContext,
     Map<String, String> wireAttrs,
     NextFilter<RpcRequest, RpcResponse> nextFilter) {
   trace("onRpcRequest", req, wireAttrs, requestContext);
   nextFilter.onRequest(req, requestContext, wireAttrs);
 }
Пример #2
0
 @Override
 public void onRestResponse(
     RestResponse res,
     RequestContext requestContext,
     Map<String, String> wireAttrs,
     NextFilter<RestRequest, RestResponse> nextFilter) {
   trace("onRestResponse", res, wireAttrs, requestContext);
   nextFilter.onResponse(res, requestContext, wireAttrs);
 }
Пример #3
0
 @Override
 public void onRestError(
     Throwable ex,
     RequestContext requestContext,
     Map<String, String> wireAttrs,
     NextFilter<RestRequest, RestResponse> nextFilter) {
   warn("onRestError", ex, wireAttrs, requestContext);
   nextFilter.onError(ex, requestContext, wireAttrs);
 }
Пример #4
0
 @Override
 public void onRestRequest(
     RestRequest req,
     RequestContext requestContext,
     Map<String, String> wireAttrs,
     NextFilter<RestRequest, RestResponse> nextFilter) {
   trace("onRestRequest", req, wireAttrs, requestContext);
   requestContext.putLocalAttr(REQUEST_URI, req.getURI());
   requestContext.putLocalAttr(REQUEST_METHOD, req.getMethod());
   nextFilter.onRequest(req, requestContext, wireAttrs);
 }