liubao68 commented on a change in pull request #727: [SCB-607] Accesslog
support invocation context item
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/727#discussion_r190804024
##########
File path:
common/common-rest/src/main/java/org/apache/servicecomb/common/rest/AbstractRestInvocation.java
##########
@@ -249,4 +265,21 @@ protected void onExecuteHttpServerFiltersFinish(Response
response, Throwable e)
invocation.onFinish(response);
}
}
+
+ public void setAfterCreateInvocationHandler(
+ AfterCreateInvocationHandler afterCreateInvocationHandler) {
+ this.afterCreateInvocationHandler = afterCreateInvocationHandler;
+ }
+
+ /**
+ * After the {@link AbstractRestInvocation#invocation} is instantiated, the
{@link AbstractRestInvocation#invocation}
+ * will be passed into {@link
AfterCreateInvocationHandler#handle(Invocation)} so that users can do something
with it.
+ */
+ public static interface AfterCreateInvocationHandler {
+ /**
+ * @see AfterCreateInvocationHandler
+ * @param invocation {@link AbstractRestInvocation#invocation}
Review comment:
This document refers itself, and can be deleted
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services