Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }