11package io .appium .java_client .remote ;
22
3+ import lombok .AccessLevel ;
4+ import lombok .Getter ;
5+ import lombok .experimental .Accessors ;
6+
37import javax .annotation .Nullable ;
48import java .net .MalformedURLException ;
59import java .net .URL ;
913
1014import static io .appium .java_client .internal .CapabilityHelpers .APPIUM_PREFIX ;
1115
12- // TODO: simplify with lombok as another PR
16+ @ Accessors
1317public class DirectConnect {
1418 private static final String DIRECT_CONNECT_PROTOCOL = "directConnectProtocol" ;
1519 private static final String DIRECT_CONNECT_PATH = "directConnectPath" ;
1620 private static final String DIRECT_CONNECT_HOST = "directConnectHost" ;
1721 private static final String DIRECT_CONNECT_PORT = "directConnectPort" ;
1822
19- private final String protocol ;
23+ @ Getter ( AccessLevel . PUBLIC ) private final String protocol ;
2024
21- private final String path ;
25+ @ Getter ( AccessLevel . PUBLIC ) private final String path ;
2226
23- private final String host ;
27+ @ Getter ( AccessLevel . PUBLIC ) private final String host ;
2428
25- private final String port ;
29+ @ Getter ( AccessLevel . PUBLIC ) private final String port ;
2630
2731 /**
2832 * Create a DirectConnect instance.
@@ -35,10 +39,6 @@ public DirectConnect(Map<String, ?> responseValue) {
3539 this .port = this .getDirectConnectValue (responseValue , DIRECT_CONNECT_PORT );
3640 }
3741
38- public String getProtocol () {
39- return protocol ;
40- }
41-
4242 @ Nullable
4343 private String getDirectConnectValue (Map <String , ?> responseValue , String key ) {
4444 Object directConnectPath = responseValue .get (APPIUM_PREFIX + key );
0 commit comments