private void initLocalRequests() { StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder; List<StartContainerRequestProto> requestList = p.getStartContainerRequestList(); this.requests = new ArrayList<StartContainerRequest>(); for (StartContainerRequestProto r : requestList) { this.requests.add(convertFromProtoFormat(r)); } }
@Override public ByteBuffer getKeyStore() { StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder; if(this.keyStore != null) { return this.keyStore; } if (!p.hasKeyStore()) { return null; } this.keyStore = convertFromProtoFormat(p.getKeyStore()); return this.keyStore; }
@Override public String getKeyStorePassword() { StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasKeyStorePassword()) { return null; } return p.getKeyStorePassword(); }
@Override public ByteBuffer getTrustStore() { StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.trustStore != null) { return this.trustStore; } if (!p.hasTrustStore()) { return null; } this.trustStore = convertFromProtoFormat(p.getTrustStore()); return this.trustStore; }
@Override public String getTrustStorePassword() { StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasTrustStorePassword()) { return null; } return p.getTrustStorePassword(); }