Examples of indexOf()


Examples of org.apache.tomcat.lite.io.BBuffer.indexOf()

                httpCh.abort("Error normalizing url " +
                        getMsgBytes().url());
                return;
            }

            int urlStart = url.indexOf('/', firstSlash + 2);
            serverNameMB.recycle();
            serverNameMB.appendAscii(url.array(),
                    url.getStart() + firstSlash + 2, urlStart - firstSlash - 2);

            url.position(url.getStart() + urlStart);
View Full Code Here

Examples of org.apache.tomcat.lite.io.CBuffer.indexOf()

        http.expectation = false;
        MultiMap headers = http.getRequest().getMimeHeaders();

        CBuffer expect = headers.getHeader("expect");
        if ((expect != null)
                && (expect.indexOf("100-continue") != -1)) {
            http.expectation = true;

            // TODO: configure, use the callback or the servlet 'read'.
            net.getOut().append("HTTP/1.1 100 Continue\r\n\r\n");
            net.startSending();
View Full Code Here

Examples of org.apache.tomcat.util.buf.ByteChunk.indexOf()

        // Check for a full URI (including protocol://host:port/)
        ByteChunk uriBC = request.requestURI().getByteChunk();
        if (uriBC.startsWithIgnoreCase("http", 0)) {

            int pos = uriBC.indexOf("://", 0, 3, 4);
            int uriBCStart = uriBC.getStart();
            int slashPos = -1;
            if (pos != -1) {
                byte[] uriB = uriBC.getBytes();
                slashPos = uriBC.indexOf('/', pos + 3);
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.indexOf()

                return false;
            }
        }

        // Check for "/./"
        if (uriCC.indexOf("/./", 0, 3, 0) >= 0) {
            return false;
        }

        // Check for "/../"
        if (uriCC.indexOf("/../", 0, 4, 0) >= 0) {
View Full Code Here

Examples of org.apache.tomcat.util.buf.MessageBytes.indexOf()

        // Check if content is not already gzipped
        MessageBytes contentEncodingMB =
            response.getMimeHeaders().getValue("Content-Encoding");

        if ((contentEncodingMB != null)
            && (contentEncodingMB.indexOf("gzip") != -1)) {
            return false;
        }

        // If force mode, always compress (test purposes only)
        if (compressionLevel == 2) {
View Full Code Here

Examples of org.apache.uima.ruta.textruler.core.TextRulerRulePattern.indexOf()

      // can this happen ?
      return null;

    TextRulerRulePattern currentPattern = getPattern(slotIndex, patternIndex);
    while (currentPattern != null) {
      int startIndex = currentPattern.indexOf(item); // this is only >= 0
      // for the first
      // pattern...
      if (!goToLeft) // walk forward...
      {
        int startSearchFromIndex = startIndex + 1;
View Full Code Here

Examples of org.apache.wicket.util.string.AppendingStringBuffer.indexOf()

      url.append(params.getUrlDepth());
    }

    if (IActivePageBehaviorListener.INTERFACE.getName().equals(listenerName))
    {
      url.append(url.indexOf("?") > -1 ? "&" : "?").append(
        IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME).append("=true");
    }
    return url;
  }
View Full Code Here

Examples of org.apache.xalan.xsltc.util.IntegerArray.indexOf()

      while (values.hasMoreElements()) {
    final IntegerArray nodes =
        (IntegerArray) _index.get(values.nextElement());

    if (nodes != null && nodes.indexOf(node) >= 0) {
        return 1;
    }
      }
      return 0;
  }
View Full Code Here

Examples of org.apache.xml.utils.SuballocatedIntVector.indexOf()

                SuballocatedIntVector nsContext=findNamespaceContext(makeNodeIdentity(baseHandle));

            if(nsContext==null)
              return NULL;
            int i=1 + nsContext.indexOf(nodeHandle);
            if(i<=0 || i==nsContext.size())
              return NULL;

            return nsContext.elementAt(i);
          }
View Full Code Here

Examples of org.apache.xml.utils.XMLString.indexOf()

      // A partial form can be distinguished from an absolute form in that the
      // latter must have a colon and that colon must occur before any slash
      // characters. Systems not requiring partial forms should not use any
      // unencoded slashes in their naming schemes.  If they do, absolute URIs
      // will still work, but confusion may result.
      int indexOfColon = ref.indexOf(':');
      int indexOfSlash = ref.indexOf('/');

      if ((indexOfColon != -1) && (indexOfSlash != -1)
              && (indexOfColon < indexOfSlash))
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.