Codota Logo
StreamedHtmlScriptInjector.abortInjectionPointSearch
Code IndexAdd Codota to your IDE (free)

How to use
abortInjectionPointSearch
method
in
rocks.inspectit.agent.java.eum.html.StreamedHtmlScriptInjector

Best Java code snippets using rocks.inspectit.agent.java.eum.html.StreamedHtmlScriptInjector.abortInjectionPointSearch (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
protected void abortInjectionPointSearch() {
  super.abortInjectionPointSearch();
  leftOver = NO_LEFTOVER_CHARACTER_BYTES;
  encodeBuffer = null; // NOPMD
  decodeBuffer = null; // NOPMD
}
origin: inspectIT/inspectIT

/**
 * Tries to find an opening body tag. Omitting both the head and the body tag is currently not
 * supported.
 */
private void scanForBodyTag() {
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "body")) {
    if (tokenParser.getParsedTokenType() != Token.START_TAG) {
      abortInjectionPointSearch();
      return;
    }
    // Perform injection after start of the head tag
    status = Status.INJECTION_POINT_FOUND;
  } else {
    // current token is not the head tag, we assume it must be the body tag (head is empty)
    abortInjectionPointSearch();
  }
}
origin: inspectIT/inspectIT

/**
 * Same as {@link #scanHtmlPreamble()}, however does not allow to ommit the preamble.
 */
private void scanRequiredXHtmlPreamble() {
  // Preamble checking based on the information on this page
  // http://wiki.selfhtml.org/wiki/HTML/Dokumentstruktur_und_Aufbau#HTML5
  // we also allow html without preamble, directly starting with the <html> tag
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "!DOCTYPE")) {
    // Doctypes are formated as opening tags
    if (tokenParser.getParsedTokenType() != Token.START_TAG) {
      abortInjectionPointSearch();
      return;
    }
    // we accept any doctype starting with "html"
    if (!CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagArguments(), 0, 4, "html", 0, 4)) {
      abortInjectionPointSearch();
      return;
    }
    // DOCTYPE okay, proceed with the next tag scanning for the html tag
    status = Status.SCAN_FOR_HTML_TAG;
  } else {
    // no preamble tag found, it however is required for xhtml
    abortInjectionPointSearch();
    return;
  }
}
origin: inspectIT/inspectIT

/**
 * Scans for an opening html tag, skipping preamble tags like or !DOCTYPE.
 */
private void scanHtmlPreamble() {
  // Preamble checking based on the information on this page
  // http://wiki.selfhtml.org/wiki/HTML/Dokumentstruktur_und_Aufbau#HTML5
  // we also allow html without preamble, directly starting with the <html> tag
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "!DOCTYPE")) {
    // Doctypes are formated as opening tags
    if (tokenParser.getParsedTokenType() != Token.START_TAG) {
      abortInjectionPointSearch();
      return;
    }
    // we accept any doctype starting with "html"
    if (!CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagArguments(), 0, 4, "html", 0, 4)) {
      abortInjectionPointSearch();
      return;
    }
    // DOCTYPE okay, proceed with the next tag scanning for the html tag
    status = Status.SCAN_FOR_HTML_TAG;
  } else {
    // no preamble tag found, we assume the html is starting immediately
    status = Status.SCAN_FOR_HTML_TAG;
    processToken();
  }
}
origin: inspectIT/inspectIT

/**
 * Tries to find an opening html tag.
 */
private void scanForHtmlTag() {
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "html")) {
    if (tokenParser.getParsedTokenType() != Token.START_TAG) {
      abortInjectionPointSearch();
      return;
    }
    status = Status.SCAN_FOR_HEAD_TAG;
  } else {
    // current token is not the html tag, we assume the document starts immediately with the
    // head
    status = Status.SCAN_FOR_HEAD_TAG;
    processToken();
  }
}
origin: inspectIT/inspectIT

/**
 * Tries to find an opening head tag. Omitting both the head and the body tag is currently not
 * supported.
 */
private void scanForHeadTag() {
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "head")) {
    if (tokenParser.getParsedTokenType() != Token.START_TAG) {
      abortInjectionPointSearch();
      return;
    }
    // Perform injection after start of the head tag
    status = Status.INJECTION_POINT_FOUND;
  } else {
    // current token is not the head tag, we assume it must be the body tag (head is empty)
    status = Status.SCAN_FOR_BODY_TAG;
    processToken();
  }
}
origin: inspectIT/inspectIT

/**
 * Scans for an opening <?xml .. ?> declaration in case the html is delivered as XML.
 */
private void scanXmlDeclaration() {
  // Preamble checking based on the information on this page
  if (CharSequenceUtils.checkEqualIgnoreCase(tokenParser.getTagType(), "?xml")) {
    // ?> is treated by the parser as a stand-alone tag
    if (tokenParser.getParsedTokenType() != Token.STANDALONE_TAG) {
      abortInjectionPointSearch();
      return;
    }
    // Xml header detected, now we require an html doctype to continue
    status = Status.SCAN_REQUIRED_XHTML_PREAMBLE;
  } else {
    // no xml tag found, therefore we are non-strict in requiring a doctype declaration
    status = Status.SCAN_HTML_PREAMBLE;
    processToken();
  }
}
origin: inspectIT/inspectIT

switch (tokenParsingResult) {
case FAILURE:
  abortInjectionPointSearch();
  return null;
case INCOMPLETE:
    abortInjectionPointSearch();
    return returnValue;
  } else if (status != Status.TERMINATED) {
rocks.inspectit.agent.java.eum.htmlStreamedHtmlScriptInjectorabortInjectionPointSearch

Javadoc

Aborts the search for an injection point.

Popular methods of StreamedHtmlScriptInjector

  • <init>
    Creates and initializes a new injector.
  • performInjection
    Tries to perform an injection on the given source code. The html file may be split arbitrarily by c
  • hasTerminated
  • processToken
    Processes the last token parsed by the #tokenParser. This method is called recursively by the token
  • scanForBodyTag
    Tries to find an opening body tag. Omitting both the head and the body tag is currently not supporte
  • scanForHeadTag
    Tries to find an opening head tag. Omitting both the head and the body tag is currently not supporte
  • scanForHtmlTag
    Tries to find an opening html tag.
  • scanHtmlPreamble
    Scans for an opening html tag, skipping preamble tags like or !DOCTYPE.
  • scanRequiredXHtmlPreamble
    Same as #scanHtmlPreamble(), however does not allow to ommit the preamble.
  • scanXmlDeclaration
    Scans for an opening declaration in case the html is delivered as XML.

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
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