Codota Logo
ProxyMethod.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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 close() throws IOException {
  originalStream.close();
}
origin: inspectIT/inspectIT

@Override
@ProxyMethod
public void flush() throws IOException {
  originalStream.flush();
}
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(parameterTypes = { "java.lang.StringBuffer", "java.lang.String" })
public void appendToStringBuffer(Object sb, Object stringToAppend) {
  ((StringBuffer) sb).append((String) stringToAppend);
}
origin: inspectIT/inspectIT

@ProxyMethod(returnType = "java.lang.StringBuffer")
public Object createStringBuffer() {
  return new StringBuffer();
}
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, 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

@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

/**
 * 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

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now