本文整理了Java中org.glassfish.tyrus.core.Utils.stringifyUpgradeRequest()
方法的一些代码示例,展示了Utils.stringifyUpgradeRequest()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.stringifyUpgradeRequest()
方法的具体详情如下:
包路径:org.glassfish.tyrus.core.Utils
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!