private String get_asadmin() { final Protocol protocol = networkConfig().getProtocols().findProtocol(ADMIN_LISTENER_NAME); return protocol.getHttp().getDefaultVirtualServer(); }
final FilterChainBuilder filterChainBuilder) { if (protocol.getHttp() != null) { final Http http = protocol.getHttp(); configureHttpProtocol(habitat, networkListener, configureElement(habitat, networkListener, finderConfig, protocolFinder); final Protocol subProtocol = finderConfig.findProtocol(); if (subProtocol.getHttp() != null) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING,
private void updateHttp(final String maxTransactionTimeout) throws TransactionFailure { for (Protocol protocol : currentConfig.getNetworkConfig().getProtocols().getProtocol()) { final Http http = protocol.getHttp(); if (http != null) { ConfigSupport.apply(new SingleConfigCode<Http>() { @Override public Object run(Http param) { if (param != null) { param.setRequestTimeoutSeconds(maxTransactionTimeout); } return null; } }, http); } } }
if (ps != null) { for (Protocol p : ps.getProtocol()) { Http h = p.getHttp(); if (h != null && "__asadmin".equals(h.getDefaultVirtualServer())) {
if (protocol.getHttp() != null) { return protocol; } else if (protocol.getPortUnification() != null) {
if (protocol.getHttp() != null) { return protocol; } else if (protocol.getPortUnification() != null) {
String dvs = nl.findHttpProtocol().getHttp().getDefaultVirtualServer(); guiHosts = Collections.unmodifiableList(Arrays.asList(dvs));
private Http writeableHttpWithFileCacheChild(final Transaction t, final Protocol secAdminListenerProtocol_w) throws TransactionFailure { /* * Because of the calling context, the secAdminListenerProtocol is already * writeable -- it was just created moments ago and has not yet * been committed. */ Http http_w; Http http = secAdminListenerProtocol_w.getHttp(); if (http == null) { http_w = secAdminListenerProtocol_w.createChild(Http.class); secAdminListenerProtocol_w.setHttp(http_w); } else { http_w = t.enroll(http); } http_w.setDefaultVirtualServer(ASADMIN_VIRTUAL_SERVER_NAME); http_w.setEncodedSlashEnabled("true"); final FileCache cache = http_w.createChild(FileCache.class); // cache.setEnabled("false"); http_w.setFileCache(cache); return http_w; }