org.glassfish.tyrus.core.Utils.stringifyUpgradeRequest()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(87)

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

Utils.stringifyUpgradeRequest介绍

[英]Converts upgrade request to a HTTP-formatted string.
[中]将升级请求转换为HTTP格式的字符串。

代码示例

代码示例来源:origin: org.glassfish.tyrus/tyrus-client

private void logUpgradeRequest(UpgradeRequest upgradeRequest) {
  if (LOGGER.isLoggable(Level.FINE)) {
    debugContext.appendLogMessage(LOGGER, Level.FINE, DebugContext.Type.MESSAGE_OUT, "Sending handshake "
        + "request:\n" + Utils.stringifyUpgradeRequest(upgradeRequest));
  } else {
    if (logUpgradeMessages) {
      debugContext.appendStandardOutputMessage(DebugContext.Type.MESSAGE_OUT, "Sending handshake "
          + "request:\n" + Utils.stringifyUpgradeRequest(upgradeRequest));
    }
  }
}

代码示例来源:origin: eclipse-ee4j/tyrus

private void logUpgradeRequest(UpgradeRequest upgradeRequest) {
  if (LOGGER.isLoggable(Level.FINE)) {
    debugContext.appendLogMessage(LOGGER, Level.FINE, DebugContext.Type.MESSAGE_OUT, "Sending handshake "
        + "request:\n" + Utils.stringifyUpgradeRequest(upgradeRequest));
  } else {
    if (logUpgradeMessages) {
      debugContext.appendStandardOutputMessage(DebugContext.Type.MESSAGE_OUT, "Sending handshake "
          + "request:\n" + Utils.stringifyUpgradeRequest(upgradeRequest));
    }
  }
}

代码示例来源:origin: org.glassfish.tyrus/tyrus-core

"Received handshake request:\n" + Utils.stringifyUpgradeRequest(request));

代码示例来源:origin: eclipse-ee4j/tyrus

"Received handshake request:\n" + Utils.stringifyUpgradeRequest(request));

相关文章