Package org.microproxy
Enum Class FlowRecord.Kind
- All Implemented Interfaces:
Serializable,Comparable<FlowRecord.Kind>,Constable
- Enclosing class:
FlowRecord
What kind of exchange or flow a record is about;
%MP_FLOW% renders its label().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn HTTP/1.x exchange (h1).An HTTP/2 stream's exchange (h2).An HTTP/3 stream's exchange (h3).A QUIC flow intercepted stream by stream (quic).A transparent QUIC flow whose datagrams were relayed untouched, or dropped (quic_relay).A SOCKS client's tunnel (socks).A raw TCP tunnel passed through the TCP hooks (tcp).ACONNECTtunnel, over HTTP/1, HTTP/2 or HTTP/3, or a transparent TLS connection (tunnel).A CONNECT-UDP (MASQUE) flow (udp).A WebSocket session, from its opening handshake to its close (websocket). -
Method Summary
Modifier and TypeMethodDescriptionbooleanisHttp()Returns whether this is an HTTP exchange rather than a tunnel or flow.label()Returns the short name an access log shows, such ash2ortunnel.static FlowRecord.KindReturns the enum constant of this class with the specified name.static FlowRecord.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HTTP1
An HTTP/1.x exchange (h1). -
HTTP2
An HTTP/2 stream's exchange (h2). -
HTTP3
An HTTP/3 stream's exchange (h3). -
TUNNEL
ACONNECTtunnel, over HTTP/1, HTTP/2 or HTTP/3, or a transparent TLS connection (tunnel). -
SOCKS
A SOCKS client's tunnel (socks). -
WEBSOCKET
A WebSocket session, from its opening handshake to its close (websocket). -
TCP
A raw TCP tunnel passed through the TCP hooks (tcp). -
UDP
A CONNECT-UDP (MASQUE) flow (udp). -
QUIC
A QUIC flow intercepted stream by stream (quic). -
QUIC_RELAY
A transparent QUIC flow whose datagrams were relayed untouched, or dropped (quic_relay).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
label
Returns the short name an access log shows, such ash2ortunnel.- Returns:
- the short name an access log shows, such as
h2ortunnel
-
isHttp
public boolean isHttp()Returns whether this is an HTTP exchange rather than a tunnel or flow.- Returns:
- whether this is an HTTP exchange rather than a tunnel or flow
-