From a7e7ea4a39a9cb23aaa1af79b0aabf2b32565a5e Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Tue, 14 Apr 2026 11:51:28 +0000 Subject: [PATCH] Hithomelabs/CFTunnels#114: Add JavaDoc to Protocol enum --- .../CFTunnels/Entity/Protocol.java | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hithomelabs/CFTunnels/Entity/Protocol.java b/src/main/java/com/hithomelabs/CFTunnels/Entity/Protocol.java index e927c47..0932524 100644 --- a/src/main/java/com/hithomelabs/CFTunnels/Entity/Protocol.java +++ b/src/main/java/com/hithomelabs/CFTunnels/Entity/Protocol.java @@ -1,8 +1,43 @@ package com.hithomelabs.CFTunnels.Entity; +/** + * Enum representing supported protocols for Cloudflare Tunnel ingress mappings. + * + *

Cloudflare Tunnel supports multiple protocols for routing traffic + * to your internal services. This enum defines the available options.

+ * + *

Supported Protocols:

+ * + * + * @see Mapping + */ public enum Protocol { + /** + * HTTP protocol for web services. + * Typically used with internal services running on port 80. + */ HTTP, + + /** + * HTTPS protocol for secure web services. + * Use this for services with TLS/SSL certificates. + */ HTTPS, + + /** + * Raw TCP protocol for non-HTTP services. + * Useful for databases, message queues, or custom protocols. + */ TCP, + + /** + * SSH protocol for secure shell access. + * Enables secure remote access to servers. + */ SSH -} +} \ No newline at end of file