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

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

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

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

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: org.glassfish.grizzly/grizzly-http

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: javaee/grizzly

/**
 * Compares the buffer 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 boolean equalsIgnoreCaseLowerCase(final byte[] b) {
  return equalsIgnoreCaseLowerCase(buffer, start, end, b);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

private static void finalizeKnownHeaderNames(final HttpHeader httpHeader,
    final HeaderParsingState parsingState, final Buffer input,
    final int start, final int end) {
  
  final int size = end - start;
  if (size == Header.ContentLength.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.ContentLength.getLowerCaseBytes())) {
      parsingState.isContentLengthHeader = true;
    }
  } else if (size == Header.TransferEncoding.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.TransferEncoding.getLowerCaseBytes())) {
      parsingState.isTransferEncodingHeader = true;
    }
  } else if (size == Header.Upgrade.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Upgrade.getLowerCaseBytes())) {
      parsingState.isUpgradeHeader = true;
    }
  } else if (size == Header.Expect.getLowerCaseBytes().length) {
    if (BufferChunk.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 Buffer input,
    final int start, final int end) {
  
  final int size = end - start;
  if (size == Header.ContentLength.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.ContentLength.getLowerCaseBytes())) {
      parsingState.isContentLengthHeader = true;
    }
  } else if (size == Header.TransferEncoding.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.TransferEncoding.getLowerCaseBytes())) {
      parsingState.isTransferEncodingHeader = true;
    }
  } else if (size == Header.Upgrade.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Upgrade.getLowerCaseBytes())) {
      parsingState.isUpgradeHeader = true;
    }
  } else if (size == Header.Expect.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Expect.getLowerCaseBytes())) {
      ((HttpRequestPacket) httpHeader).requiresAcknowledgement(true);
    }
  }
}
origin: org.glassfish.grizzly/grizzly-http-server-core

private static void finalizeKnownHeaderNames(final HttpHeader httpHeader,
    final HeaderParsingState parsingState, final Buffer input,
    final int start, final int end) {
  
  final int size = end - start;
  if (size == Header.ContentLength.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.ContentLength.getLowerCaseBytes())) {
      parsingState.isContentLengthHeader = true;
    }
  } else if (size == Header.TransferEncoding.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.TransferEncoding.getLowerCaseBytes())) {
      parsingState.isTransferEncodingHeader = true;
    }
  } else if (size == Header.Upgrade.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Upgrade.getLowerCaseBytes())) {
      parsingState.isUpgradeHeader = true;
    }
  } else if (size == Header.Expect.getLowerCaseBytes().length) {
    if (BufferChunk.equalsIgnoreCaseLowerCase(input, start, end,
        Header.Expect.getLowerCaseBytes())) {
      ((HttpRequestPacket) httpHeader).requiresAcknowledgement(true);
    }
  }
}
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: 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: 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: 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;
  }
}

org.glassfish.grizzly.http.utilBufferChunkequalsIgnoreCaseLowerCase

Javadoc

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

Popular methods of BufferChunk

  • getBuffer
  • getEnd
  • getStart
  • <init>
  • allocate
  • append
  • delete
  • equals
    Compares the message Buffer to the specified char array.
  • equalsIgnoreCase
    Compares the message Buffer to the specified char array ignoring case considerations.
  • getLength
  • hash
  • indexOf
  • hash,
  • indexOf,
  • isNull,
  • notifyDirectUpdate,
  • recycle,
  • reset,
  • resetStringCache,
  • setBufferChunk,
  • setEnd

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Collectors (java.util.stream)
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook extensions
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