private static void validateConfig(NetworkConfig config) { for (final NetworkListener listener : config.getNetworkListeners().getNetworkListener()) { listener.findHttpProtocol(); } }
public static Protocol findProtocol(ProtocolFinder finder) { String name = finder.getProtocol(); final NetworkConfig networkConfig = finder.getParent().getParent().getParent().getParent(); return networkConfig.findProtocol(name); }
public static String findHttpProtocolName(NetworkListener listener) { final Protocol httpProtocol = findHttpProtocol(listener); if (httpProtocol != null) { return httpProtocol.getName(); } return null; }
static public List<NetworkListener> findNetworkListeners(Transport transport) { NetworkListeners networkListeners = transport.getParent().getParent().getNetworkListeners(); List<NetworkListener> refs = new ArrayList<NetworkListener>(); for (NetworkListener listener : networkListeners.getNetworkListener()) { if (listener.getTransport().equals(transport.getName())) { refs.add(listener); } } return refs; }
public Object run(Protocols param) throws TransactionFailure { final Protocol protocol = param.createChild(Protocol.class); param.getProtocol().add(protocol); protocol.setName(ASADMIN_LISTENER); Http http = protocol.createChild(Http.class); http.setFileCache(http.createChild(FileCache.class)); protocol.setHttp(http); http.setDefaultVirtualServer(ASADMIN_VIRTUAL_SERVER); http.setMaxConnections("250"); return protocol; } }, protocols);
public static NetworkListener getNetworkListener(NetworkConfig config, String name) { if (name != null) { for (final NetworkListener listener : config.getNetworkListeners().getNetworkListener()) { if (listener.getName().equals(name)) { return listener; } } } return null; } }
private String get_asadmin() { final Protocol protocol = networkConfig().getProtocols().findProtocol(ADMIN_LISTENER_NAME); return protocol.getHttp().getDefaultVirtualServer(); }
public static Transport findTransport(NetworkListener listener) { List<Transport> list = listener.getParent().getParent().getTransports().getTransport(); for (Transport transport : list) { if (listener.getTransport().equals(transport.getName())) { return transport; } } return null; }
public static Protocol findProtocol(NetworkConfig config, String name) { for (final Protocol protocol : config.getProtocols().getProtocol()) { if (protocol.getName().equals(name)) { return protocol; } } return null; }
public static Protocol findProtocol(NetworkListener listener) { return listener.getParent().getParent().findProtocol(listener.getProtocol()); }
public Object run(Protocol param) { param.setSecurityEnabled("false"); param.setSsl(null); return null; } }, protocol);
@Override public Object run(Http http) throws PropertyVetoException, TransactionFailure { http.setEncodedSlashEnabled("true"); return null; } }
public static NetworkListener getNetworkListener(NetworkConfig config, String name) { if (name != null) { for (final NetworkListener listener : config.getNetworkListeners().getNetworkListener()) { if (listener.getName().equals(name)) { return listener; } } } return null; } }
private static void validateConfig(NetworkConfig config) { for (final NetworkListener listener : config.getNetworkListeners().getNetworkListener()) { listener.findHttpProtocol(); } }
public static Transport findTransport(NetworkListener listener) { List<Transport> list = listener.getParent().getParent().getTransports().getTransport(); for (Transport transport : list) { if (listener.getTransport().equals(transport.getName())) { return transport; } } return null; }
public static Protocol findProtocol(NetworkConfig config, String name) { for (final Protocol protocol : config.getProtocols().getProtocol()) { if (protocol.getName().equals(name)) { return protocol; } } return null; }
public static Protocol findProtocol(ProtocolFinder finder) { String name = finder.getProtocol(); final NetworkConfig networkConfig = finder.getParent().getParent().getParent().getParent(); return networkConfig.findProtocol(name); }
public static Protocol findProtocol(NetworkListener listener) { return listener.getParent().getParent().findProtocol(listener.getProtocol()); }
public static String findHttpProtocolName(NetworkListener listener) { final Protocol httpProtocol = findHttpProtocol(listener); if (httpProtocol != null) { return httpProtocol.getName(); } return null; }