Class OutputStreamSnippetInjectionHelper
java.lang.Object
io.opentelemetry.javaagent.instrumentation.servlet.snippet.OutputStreamSnippetInjectionHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleWrite(io.opentelemetry.javaagent.bootstrap.servlet.InjectionState state, OutputStream out, byte[] original, int off, int length) return true means this method performed the injection, return false means it didn't inject anything Servlet3OutputStreamWriteAdvice would skip the write method when the return value is true, and would write the original bytes when the return value is false.booleanhandleWrite(io.opentelemetry.javaagent.bootstrap.servlet.InjectionState state, OutputStream out, int b)
-
Constructor Details
-
OutputStreamSnippetInjectionHelper
-
-
Method Details
-
getSnippet
-
handleWrite
public boolean handleWrite(io.opentelemetry.javaagent.bootstrap.servlet.InjectionState state, OutputStream out, byte[] original, int off, int length) throws IOException return true means this method performed the injection, return false means it didn't inject anything Servlet3OutputStreamWriteAdvice would skip the write method when the return value is true, and would write the original bytes when the return value is false.- Throws:
IOException
-
handleWrite
public boolean handleWrite(io.opentelemetry.javaagent.bootstrap.servlet.InjectionState state, OutputStream out, int b) throws IOException - Throws:
IOException
-