Class ProxyProtocolDecoder

java.lang.Object
org.geysermc.geyser.network.netty.proxy.ProxyProtocolDecoder

public final class ProxyProtocolDecoder extends Object
Decodes an HAProxy proxy protocol header
See Also:
Proxy Protocol Specification, Netty implementation
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable io.netty.handler.codec.haproxy.HAProxyMessage
    decode​(io.netty.buffer.ByteBuf packet, int version)
     
    static io.netty.handler.codec.ProtocolDetectionResult<io.netty.handler.codec.haproxy.HAProxyProtocolVersion>
    detectProtocol​(io.netty.buffer.ByteBuf buffer)
    Returns the ProtocolDetectionResult for the given ByteBuf.
    static int
    findVersion​(io.netty.buffer.ByteBuf buffer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • decode

      public static @Nullable io.netty.handler.codec.haproxy.HAProxyMessage decode(io.netty.buffer.ByteBuf packet, int version)
    • findVersion

      public static int findVersion(io.netty.buffer.ByteBuf buffer)
    • detectProtocol

      public static io.netty.handler.codec.ProtocolDetectionResult<io.netty.handler.codec.haproxy.HAProxyProtocolVersion> detectProtocol(io.netty.buffer.ByteBuf buffer)
      Returns the ProtocolDetectionResult for the given ByteBuf.