@Override public ServiceAnnouncement get() { if (httpServerInfo.getHttpUri() != null) { builder.addProperty("http", httpServerInfo.getHttpUri().toString()); builder.addProperty("http-external", httpServerInfo.getHttpExternalUri().toString()); } if (httpServerInfo.getHttpsUri() != null) { builder.addProperty("https", httpServerInfo.getHttpsUri().toString()); builder.addProperty("https-external", httpServerInfo.getHttpsExternalUri().toString()); } return builder.build(); } }
@Override public ServiceAnnouncement get() { if (httpServerInfo.getHttpUri() != null) { builder.addProperty("http", httpServerInfo.getHttpUri().toString()); builder.addProperty("http-external", httpServerInfo.getHttpExternalUri().toString()); } if (httpServerInfo.getHttpsUri() != null) { builder.addProperty("https", httpServerInfo.getHttpsUri().toString()); builder.addProperty("https-external", httpServerInfo.getHttpsExternalUri().toString()); } return builder.build(); } }
@Override public ServiceAnnouncement get() { if (httpServerInfo.getHttpUri() != null) { builder.addProperty("http", httpServerInfo.getHttpUri().toString()); builder.addProperty("http-external", httpServerInfo.getHttpExternalUri().toString()); } if (httpServerInfo.getHttpsUri() != null) { builder.addProperty("https", httpServerInfo.getHttpsUri().toString()); builder.addProperty("https-external", httpServerInfo.getHttpsExternalUri().toString()); } return builder.build(); } }
private static ServiceAnnouncement createHttpAnnouncement(AnnouncementHttpServerInfo httpServerInfo, String announcement) { ServiceAnnouncementBuilder builder = serviceAnnouncement(announcement); if (httpServerInfo.getHttpUri() != null) { builder.addProperty("http", httpServerInfo.getHttpUri().toString()); builder.addProperty("http-external", httpServerInfo.getHttpExternalUri().toString()); } if (httpServerInfo.getHttpsUri() != null) { builder.addProperty("https", httpServerInfo.getHttpsUri().toString()); builder.addProperty("https-external", httpServerInfo.getHttpsExternalUri().toString()); } return builder.build(); } }
private static ServiceAnnouncement createHttpAnnouncement(AnnouncementHttpServerInfo httpServerInfo, String announcement) { ServiceAnnouncementBuilder builder = serviceAnnouncement(announcement); if (httpServerInfo.getHttpUri() != null) { builder.addProperty("http", httpServerInfo.getHttpUri().toString()); builder.addProperty("http-external", httpServerInfo.getHttpExternalUri().toString()); } if (httpServerInfo.getHttpsUri() != null) { builder.addProperty("https", httpServerInfo.getHttpsUri().toString()); builder.addProperty("https-external", httpServerInfo.getHttpsExternalUri().toString()); } return builder.build(); } }