APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.internal.net.http.hpack

public final Class HPACK

extends Object
Class Inheritance
Imports
jdk.internal.net.http.common.Utils, jdk.internal.net.http.hpack.HPACK.Logger.Level, java.nio.ByteBuffer, java.util.Map, .ResourceBundle, java.util.function.Supplier

Internal utilities and stuff.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
public static class
HPACK.Logger

The purpose of this logger is to provide means of diagnosing issues _in the HPACK implementation_.

private static class

Field Summary

Modifier and TypeField and Description
private static final HPACK.RootLogger
private static final Map<String, HPACK.Logger.Level>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
bytesForBits(int n)

public static HPACK.Logger
public static int
read(ByteBuffer source, long buffer, int bufferLen, HPACK.BufferUpdateConsumer consumer)

public static int
write(long buffer, int bufferLen, HPACK.BufferUpdateConsumer consumer, ByteBuffer destination)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final HPACK.RootLogger LOGGER
logLevelsback to summary
private static final Map<String, HPACK.Logger.Level> logLevels

Constructor Detail

HPACKback to summary
private HPACK()

Method Detail

bytesForBitsback to summary
pack-priv static int bytesForBits(int n)
getLoggerback to summary
public static HPACK.Logger getLogger()
readback to summary
public static int read(ByteBuffer source, long buffer, int bufferLen, HPACK.BufferUpdateConsumer consumer)
Annotations
@SuppressWarnings:fallthrough
writeback to summary
public static int write(long buffer, int bufferLen, HPACK.BufferUpdateConsumer consumer, ByteBuffer destination)
Annotations
@SuppressWarnings:fallthrough
jdk.internal.net.http.hpack back to summary

pack-priv Interface HPACK.BufferUpdateConsumer

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void
accept(long data, int len)

Method Detail

acceptback to summary
public void accept(long data, int len)
jdk.internal.net.http.hpack back to summary

public Class HPACK.Logger

extends Object
implements Logger
Class Inheritance
All Implemented Interfaces
java.lang.System.Logger
Known Direct Subclasses
jdk.internal.net.http.hpack.HPACK.RootLogger

The purpose of this logger is to provide means of diagnosing issues _in the HPACK implementation_. It's not a general purpose logger.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
HPACK.Logger.Level

Log detail level.

Field Summary

Modifier and TypeField and Description
private final HPACK.Logger.Level
private final System.Logger
private final String
private final String

Constructor Summary

AccessConstructor and Description
private
Logger(String path, String name, HPACK.Logger.Level level)

private
Logger(String p, String name, HPACK.Logger.Level level, System.Logger logger)

Method Summary

Modifier and TypeMethod and Description
public final String
getName()

Implements java.lang.System.Logger.getName.

Returns the name of this logger.

public boolean
isLoggable(System.Logger.Level level)

Implements java.lang.System.Logger.isLoggable.

Checks if a message of the given level would be logged by this logger.

public boolean
public void
log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown)

Implements java.lang.System.Logger.log.

Logs a localized message associated with a given throwable.

public void
log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params)

Implements java.lang.System.Logger.log.

Logs a message with resource bundle and an optional list of parameters.

public void
public HPACK.Logger
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

levelback to summary
private final HPACK.Logger.Level level
loggerback to summary
private final System.Logger logger
nameback to summary
private final String name
pathback to summary
private final String path

Constructor Detail

Loggerback to summary
private Logger(String path, String name, HPACK.Logger.Level level)
Loggerback to summary
private Logger(String p, String name, HPACK.Logger.Level level, System.Logger logger)

Method Detail

getNameback to summary
public final String getName()

Implements java.lang.System.Logger.getName.

Doc from java.lang.System.Logger.getName.

Returns the name of this logger.

isLoggableback to summary
public boolean isLoggable(System.Logger.Level level)

Implements java.lang.System.Logger.isLoggable.

Doc from java.lang.System.Logger.isLoggable.

Checks if a message of the given level would be logged by this logger.

Annotations
@Override
isLoggableback to summary
public boolean isLoggable(HPACK.Logger.Level level)
logback to summary
public void log(System.Logger.Level level, ResourceBundle bundle, String msg, Throwable thrown)

Implements java.lang.System.Logger.log.

Doc from java.lang.System.Logger.log.

Logs a localized message associated with a given throwable. If the given resource bundle is non-null, the msg string is localized using the given resource bundle. Otherwise the msg string is not localized.

Annotations
@Override
logback to summary
public void log(System.Logger.Level level, ResourceBundle bundle, String format, Object... params)

Implements java.lang.System.Logger.log.

Doc from java.lang.System.Logger.log.

Logs a message with resource bundle and an optional list of parameters. If the given resource bundle is non-null, the format string is localized using the given resource bundle. Otherwise the format string is not localized.

Annotations
@Override
logback to summary
public void log(HPACK.Logger.Level level, Supplier<String> s)
subLoggerback to summary
public HPACK.Logger subLogger(String name)
jdk.internal.net.http.hpack back to summary

public final Enum HPACK.Logger.Level

extends Enum<HPACK.Logger.Level>
Class Inheritance

Log detail level.

Field Summary

Modifier and TypeField and Description
public static final HPACK.Logger.Level
private final int
public static final HPACK.Logger.Level
public static final HPACK.Logger.Level
pack-priv final System.Logger.Level

Constructor Summary

AccessConstructor and Description
private
Level(int i, System.Logger.Level system)

Method Summary

Modifier and TypeMethod and Description
public final boolean
public static HPACK.Logger.Level
public static HPACK.Logger.Level[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXTRAback to summary
public static final HPACK.Logger.Level EXTRA
levelback to summary
private final int level
NONEback to summary
public static final HPACK.Logger.Level NONE
NORMALback to summary
public static final HPACK.Logger.Level NORMAL
systemLevelback to summary
pack-priv final System.Logger.Level systemLevel

Constructor Detail

Levelback to summary
private Level(int i, System.Logger.Level system)

Method Detail

impliesback to summary
public final boolean implies(HPACK.Logger.Level other)
valueOfback to summary
public static HPACK.Logger.Level valueOf(String name)
valuesback to summary
public static HPACK.Logger.Level[] values()
jdk.internal.net.http.hpack back to summary

private final Class HPACK.RootLogger

extends Logger
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from jdk.internal.net.http.hpack.HPACK.Logger:
getNameisLoggableisLoggablelogloglogsubLogger

Constructor Detail

RootLoggerback to summary
protected RootLogger(HPACK.Logger.Level level)