We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7bf107 commit 2822e6bCopy full SHA for 2822e6b
src/main/java/com/github/dockerjava/api/model/ExposedPort.java
@@ -44,6 +44,10 @@ public static ExposedPort tcp(int port) {
44
return new ExposedPort("tcp", port);
45
}
46
47
+ public static ExposedPort udp(int port) {
48
+ return new ExposedPort("udp", port);
49
+ }
50
+
51
public static ExposedPort parse(String serialized) {
52
try {
53
String[] parts = serialized.split("/");
0 commit comments