Tabnine Logo
ProxyMethod.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
rocks.inspectit.agent.java.proxy.ProxyMethod
constructor

Best Java code snippets using rocks.inspectit.agent.java.proxy.ProxyMethod.<init> (Showing top 20 results out of 315)

origin: inspectIT/inspectIT

/**
 * See {@link #setContentLength(int)} for the reasons for proxying.
 *
 * @param len
 *            parameter of the proxied method
 */
@ProxyMethod
public void setContentLengthLong(final long len) {
  contentLengthHeaderModifications.add(new Runnable() {
    @Override
    public void run() {
      wrappedResponse.setContentLengthLong(len);
    }
  });
}
origin: inspectIT/inspectIT

/**
 * Proxy method for isReady method of the OutputStream.
 *
 * @return the ready state
 */
@ProxyMethod(isOptional = true)
public boolean isReady() {
  return originalStream.isReady();
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void flush() throws IOException {
  originalStream.flush();
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void close() throws IOException {
  originalStream.close();
}
origin: inspectIT/inspectIT

/**
 * Proxy method for setting the write listener.
 *
 * @param listener
 *            write listener which should get set.
 */
@ProxyMethod(parameterTypes = { "javax.servlet.WriteListener" }, isOptional = true)
public void setWriteListener(Object listener) {
  originalStream.setWriteListener(listener);
}
origin: inspectIT/inspectIT

@ProxyMethod(methodName = "doubleInt")
public int doubleInt_renamed(int a) {
  return 2 * a;
}
origin: inspectIT/inspectIT

@ProxyMethod
public String sayHello() {
  return "Hello!";
}
origin: inspectIT/inspectIT

@ProxyMethod(returnType = "java.lang.StringBuffer")
public Object createStringBuffer() {
  return new StringBuffer();
}
origin: inspectIT/inspectIT

@ProxyMethod(parameterTypes = { "java.lang.StringBuffer", "java.lang.String" })
public void appendToStringBuffer(Object sb, Object stringToAppend) {
  ((StringBuffer) sb).append((String) stringToAppend);
}
origin: inspectIT/inspectIT

@ProxyMethod
public void throwException() throws FileNotFoundException {
  throw new FileNotFoundException("testtext");
}
origin: inspectIT/inspectIT

/**
 * Request committed event. This is earliest place we can start a span.
 *
 * @throws IOException
 *             IOException
 */
@ProxyMethod()
public void onRequestCommitted() throws IOException {
  spanStore.startSpan();
  if (null != originalListener) {
    WHttpEventListenerWrapper.ON_REQUEST_COMMITED.call(originalListener);
  }
}
origin: inspectIT/inspectIT

/**
 * Connection failed.
 *
 * @param ex
 *            Throwable
 */
@ProxyMethod(parameterTypes = "java.lang.Throwable")
public void onConnectionFailed(Throwable ex) {
  handleThrowable(ex);
  if (null != originalListener) {
    WHttpEventListenerWrapper.ON_CONNECTION_FAILED.call(originalListener, ex);
  }
}
origin: inspectIT/inspectIT

/**
 * Exception occurred.
 *
 * @param ex
 *            Throwable
 */
@ProxyMethod(parameterTypes = "java.lang.Throwable")
public void onException(Throwable ex) {
  handleThrowable(ex);
  if (null != originalListener) {
    WHttpEventListenerWrapper.ON_EXCEPTION.call(originalListener, ex);
  }
}
origin: inspectIT/inspectIT

/**
 * Proxy method for print method of the OutputStream.
 *
 * @param arg0
 *            value which should get printed
 * @throws IOException
 *             signals that an I/O exception in some sort happened
 */
@ProxyMethod
public void print(String arg0) throws IOException {
  String newValue = injector.performInjection(String.valueOf(arg0));
  if (newValue == null) {
    originalStream.print(arg0);
  } else {
    originalStream.print(newValue);
  }
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void write(int b) throws IOException {
  byte[] newValue = injector.performInjection(new byte[] { (byte) b });
  if (newValue == null) {
    originalStream.write(b);
  } else {
    originalStream.write(newValue);
  }
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void write(byte[] b) throws IOException {
  byte[] newValue = injector.performInjection(b);
  if (newValue == null) {
    originalStream.write(b);
  } else {
    originalStream.write(newValue);
  }
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void write(byte[] b, int off, int len) throws IOException {
  byte[] newValue = injector.performInjection(b, off, len);
  if (newValue == null) {
    originalStream.write(b, off, len);
  } else {
    originalStream.write(newValue);
  }
}
origin: inspectIT/inspectIT

/**
 * Response complete event. We can finish span here.
 *
 * @throws IOException
 *             IOException
 */
@ProxyMethod
public void onResponseComplete() throws IOException {
  spanStore.finishSpan(new HttpResponseAdapter(this));
  if (null != originalListener) {
    WHttpEventListenerWrapper.ON_RESPONSE_COMPLETE.call(originalListener);
  }
}
origin: inspectIT/inspectIT

/**
 * Proxy method for println method of the OutputStream.
 *
 * @param s
 *            value which should get printed with an following line termination.
 * @throws IOException
 *             signals that an I/O exception in some sort happened
 */
@ProxyMethod
public void println(String s) throws IOException {
  String newValue = injector.performInjection(s + NL);
  if (newValue == null) {
    originalStream.println(s);
  } else {
    originalStream.print(newValue);
  }
}
origin: inspectIT/inspectIT

/**
 * Proxy method for println method of the OutputStream. Terminates the line.
 *
 * @throws IOException
 *             signals that an I/O exception in some sort happened
 */
@ProxyMethod
public void println() throws IOException {
  String newValue = injector.performInjection(NL);
  if (newValue == null) {
    originalStream.println();
  } else {
    originalStream.print(newValue);
  }
}
rocks.inspectit.agent.java.proxyProxyMethod<init>

Popular methods of ProxyMethod

  • isOptional
  • methodName
  • parameterTypes
  • returnType

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now