public Object run(Protocol param) { param.setSecurityEnabled("false"); param.setSsl(null); return null; } }, protocol);
@Override public Object run(Protocols param) throws TransactionFailure { Protocol newProtocol = param.createChild(Protocol.class); newProtocol.setName(name); newProtocol.setSecurityEnabled("true"); param.getProtocol().add(newProtocol); return newProtocol; } }, habitat.<Protocols>getService(Protocols.class));
public Object run(Protocol param) throws TransactionFailure { Ssl newSsl = param.createChild(Ssl.class); param.setSecurityEnabled("true"); command.populateSslElement(newSsl); param.setSsl(newSsl); return newSsl; } }, protocol);
String val = parser.getAttributeValue(i); if (attr.equals("security-enabled")) { p.setSecurityEnabled(val);
private Protocol writableProtocol(final String protocolName, final boolean isSecure) throws TransactionFailure { Protocol p_w = namedProtocols_w.get(protocolName); if (p_w == null) { /* * Try to find an existing entry for this protocol. */ final Protocol p_r = findProtocol(protocolName); if (p_r == null) { final Protocols ps_w = writableProtocols(); if (ps_w == null) { return null; } p_w = ps_w.createChild(Protocol.class); p_w.setName(protocolName); ps_w.getProtocol().add(p_w); } else { p_w = t.enroll(p_r); } namedProtocols_w.put(protocolName, p_w); } p_w.setSecurityEnabled(Boolean.toString(isSecure)); return p_w; }