-
- All Implemented Interfaces:
-
org.ice4j.socket.DatagramPacketFilter
public class HttpDemuxFilter implements DatagramPacketFilter
Implements a DatagramPacketFilter which allows demultiplexing HTTP(S) out of
MuxServerSocketChannel. Accepts HTTP, SSL v2, and TLS. Rejects Google TURN SSLTCP.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intREQUEST_METHOD_MAX_LENGTHpublic final static intTLS_MIN_LENGTH
-
Method Summary
Modifier and Type Method Description booleanaccept(DatagramPacket p)Determines whether a specific DatagramPacket looks like the beginning of HTTP(S) client communication. -
-
Method Detail
-
accept
boolean accept(DatagramPacket p)
Determines whether a specific DatagramPacket looks like the beginning of HTTP(S) client communication. Accepts HTTP, SSL v2, and TLS. Rejects Google TURN SSLTCP.
- Parameters:
p- theDatagramPacketto analyze
-
-
-
-