org.glassfish.grizzly.http.util.Header.getLowerCase()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.glassfish.grizzly.http.util.Header.getLowerCase()方法的一些代码示例,展示了Header.getLowerCase()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.getLowerCase()方法的具体详情如下:
包路径:org.glassfish.grizzly.http.util.Header
类名称:Header
方法名:getLowerCase

Header.getLowerCase介绍

[英]Returns the lower-case String representation of this header.
[中]返回此标头的小写字符串表示形式。

代码示例

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http2

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http

private boolean isValidName(final Header name) {
  return (!marked || Arrays.binarySearch(INVALID_TRAILER_NAMES, name.getLowerCase()) < 0);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

/**
 * Add the HTTP mime header.
 *
 * @param header the mime {@link Header}.
 * @param value the mime header value.
 */
public final CompressedHeadersBuilder header(Header header, String value) {
  headers.put(header.getLowerCase(), value);
  return this;
}

代码示例来源:origin: javaee/grizzly

private boolean isValidName(final Header name) {
  return (!marked || Arrays.binarySearch(INVALID_TRAILER_NAMES, name.getLowerCase()) < 0);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: javaee/grizzly

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http2

private static void processNormalHeader(final HttpHeader httpHeader,
    final String name, final String value) {
  if (name.equals(Header.Host.getLowerCase())) {
    return;
  }
  final MimeHeaders mimeHeaders = httpHeader.getHeaders();
  final DataChunk valueChunk =
      mimeHeaders.addValue(name);
  validateHeaderCharacters(name, value);
  valueChunk.setString(value);
  finalizeKnownHeader(httpHeader, name, value);
}

相关文章