Tabnine Logo
ByteChunk.equalsIgnoreCaseLowerCase
Code IndexAdd Tabnine to your IDE (free)

How to use
equalsIgnoreCaseLowerCase
method
in
org.glassfish.grizzly.http.util.ByteChunk

Best Java code snippets using org.glassfish.grizzly.http.util.ByteChunk.equalsIgnoreCaseLowerCase (Showing top 20 results out of 315)

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: org.glassfish.grizzly/grizzly-http

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: org.glassfish.grizzly/grizzly-websockets-server

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: org.glassfish.grizzly/grizzly-http-server-core

public boolean equalsIgnoreCaseLowerCase(byte[] cmpTo) {
  return equalsIgnoreCaseLowerCase(buff, start, end, cmpTo);
}

origin: javaee/grizzly

private static void finalizeKnownHeaderNames(final HttpHeader httpHeader,
    final HeaderParsingState parsingState, final byte[] input,
    final int start, final int end) {
  
  final int size = end - start;
  if (size == Header.ContentLength.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.ContentLength.getLowerCaseBytes())) {
      parsingState.isContentLengthHeader = true;
    }
  } else if (size == Header.TransferEncoding.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.TransferEncoding.getLowerCaseBytes())) {
      parsingState.isTransferEncodingHeader = true;
    }
  } else if (size == Header.Upgrade.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Upgrade.getLowerCaseBytes())) {
      parsingState.isUpgradeHeader = true;
    }
  } else if (size == Header.Expect.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Expect.getLowerCaseBytes())) {
      ((HttpRequestPacket) httpHeader).requiresAcknowledgement(true);
    }
  }
}
origin: javaee/grizzly

private static void finalizeKnownHeaderNames(final HttpHeader httpHeader,
    final HeaderParsingState parsingState, final byte[] input,
    final int start, final int end) {
  
  final int size = end - start;
  if (size == Header.ContentLength.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.ContentLength.getLowerCaseBytes())) {
      parsingState.isContentLengthHeader = true;
    }
  } else if (size == Header.TransferEncoding.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.TransferEncoding.getLowerCaseBytes())) {
      parsingState.isTransferEncodingHeader = true;
    }
  } else if (size == Header.Upgrade.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Upgrade.getLowerCaseBytes())) {
      parsingState.isUpgradeHeader = true;
    }
  } else if (size == Header.Expect.getLowerCaseBytes().length) {
    if (ByteChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Expect.getLowerCaseBytes())) {
      ((HttpRequestPacket) httpHeader).requiresAcknowledgement(true);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: javaee/grizzly

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: javaee/grizzly

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: javaee/grizzly

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: javaee/grizzly

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

origin: javaee/grizzly

/**
 * Compares the data chunk to the specified byte array representing
 * lower-case ASCII characters.
 *
 * @param b the <code>byte[]</code> to compare
 *
 * @return true if the comparison succeeded, false otherwise
 *
 * @since 2.1.2
 */
public final boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  switch (type) {
    case Bytes:
      return byteChunk.equalsIgnoreCaseLowerCase(b);
    case Buffer:
      return bufferChunk.equalsIgnoreCaseLowerCase(b);
    case String:
      return equalsIgnoreCaseLowerCase(stringValue, b);
    case Chars:
      return charChunk.equalsIgnoreCaseLowerCase(b);
    default:
      return false;
  }
}

org.glassfish.grizzly.http.utilByteChunkequalsIgnoreCaseLowerCase

Javadoc

Compares the buffer chunk to the specified byte array representing lower-case ASCII characters.

Popular methods of ByteChunk

  • getBuffer
    Returns the message bytes.
  • getEnd
  • getStart
    Returns the start offset of the bytes. For output this is the end of the buffer.
  • <init>
  • append
    Add data to the buffer
  • getBytes
    Returns the message bytes.
  • getLength
    Returns the length of the bytes. XXX need to clean this up
  • indexOf
  • setBytes
    Sets the message bytes to the specified sub-array of bytes.
  • setEnd
  • toString
  • allocate
  • toString,
  • allocate,
  • canGrow,
  • delete,
  • equals,
  • equalsIgnoreCase,
  • flushBuffer,
  • getCharset,
  • getInt

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JFileChooser (javax.swing)
  • Best plugins for Eclipse
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