Update of HTTP Listener Configuration

Updates the configuration of an HTTP listener.

Syntax

void updateHTTPListenerConfiguration(String serverComponentID, ServerComponentVO serverComponent) throws SUPAdminException;

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples

  • Update
    supServerConf.refresh();
    ServerComponentVO scvo = supServerConf.getHTTPListenerConfigurations()
    		.iterator().next();
    ServerComponentVO scvo_new = new ServerComponentVO(scvo.getID(), scvo.getType());
    Map<String, String> properties = scvo.getProperties();
    properties.put("sup.socket.listener.port", "8000");
    properties.put("sup.socket.listener.enabled", "true");
    scvo_new.setProperties(properties);
    supServerConf.updateHTTPListenerConfiguration(scvo_new.getID(), scvo_new);
    supServerConf.commit();