public TcpMatchRangesBuilder setTcpSourcePortEnd(PortNumber value) { if (value != null) { checkTcpSourcePortEndRange(value.getValue()); } this._tcpSourcePortEnd = value; return this; } /**
public CmtsNodeBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public UpdMatchRangesBuilder setUdpSourcePortStart(PortNumber value) { if (value != null) { checkUdpSourcePortStartRange(value.getValue()); } this._udpSourcePortStart = value; return this; } /**
public NetconfNorthboundTcpBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public RestConnectorImplBuilder setWebsocketPort(PortNumber value) { if (value != null) { checkWebsocketPortRange(value.getValue()); } this._websocketPort = value; return this; } /**
public CmtsRemovedBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public UpdMatchRangesBuilder setUdpDestinationPortStart(PortNumber value) { if (value != null) { checkUdpDestinationPortStartRange(value.getValue()); } this._udpDestinationPortStart = value; return this; } /**
public TcpMatchRangesBuilder setTcpDestinationPortEnd(PortNumber value) { if (value != null) { checkTcpDestinationPortEndRange(value.getValue()); } this._tcpDestinationPortEnd = value; return this; } /**
public NetconfNodeBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public LcafApplicationDataAddrBuilder setLocalPortHigh(PortNumber value) { if (value != null) { checkLocalPortHighRange(value.getValue()); } this._localPortHigh = value; return this; } /**
public LcafApplicationDataAddrBuilder setRemotePortHigh(PortNumber value) { if (value != null) { checkRemotePortHighRange(value.getValue()); } this._remotePortHigh = value; return this; } /**
public LcafApplicationDataAddrBuilder setRemotePortLow(PortNumber value) { if (value != null) { checkRemotePortLowRange(value.getValue()); } this._remotePortLow = value; return this; } /**
public UpdMatchRangesBuilder setUdpDestinationPortEnd(PortNumber value) { if (value != null) { checkUdpDestinationPortEndRange(value.getValue()); } this._udpDestinationPortEnd = value; return this; } /**
public SalNetconfConnectorBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public LcafApplicationDataAddrBuilder setLocalPortLow(PortNumber value) { if (value != null) { checkLocalPortLowRange(value.getValue()); } this._localPortLow = value; return this; } /**
public TransportAddressBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public CmtsAddedBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public static LispAddress transformToLispApplicationDataLCAFAddress( org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LispLcafAddress lispLcafAddress) { org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LcafApplicationDataAddress lcafApplicationDataAddress; lcafApplicationDataAddress = (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.control.plane.rev150314.LcafApplicationDataAddress) lispLcafAddress; return new LispApplicationDataLCAFAddress((byte) 0, lcafApplicationDataAddress.getProtocol().byteValue(), lcafApplicationDataAddress .getIpTos().intValue(), lcafApplicationDataAddress.getLocalPortLow().getValue().shortValue(), lcafApplicationDataAddress.getLocalPortHigh() .getValue().shortValue(), lcafApplicationDataAddress.getRemotePortLow().getValue().shortValue(), lcafApplicationDataAddress.getRemotePortHigh() .getValue().shortValue(), transformToLispAddress(LispAFIConvertor.toContainer(toAFIfromPrimitive(lcafApplicationDataAddress.getAddress() .getPrimitiveAddress())))); }
private InetSocketAddress getSocketAddress() { if(getAddress().getDomainName() != null) { return new InetSocketAddress(getAddress().getDomainName().getValue(), getPort().getValue()); } else { final IpAddress ipAddress = getAddress().getIpAddress(); final String ip = ipAddress.getIpv4Address() != null ? ipAddress.getIpv4Address().getValue() : ipAddress.getIpv6Address().getValue(); return new InetSocketAddress(ip, getPort().getValue()); } }
private InetSocketAddress getInetAddress() { try { final InetAddress inetAd = InetAddress.getByName(getBindingAddress().getIpv4Address() == null ? getBindingAddress().getIpv6Address().getValue() : getBindingAddress().getIpv4Address().getValue()); return new InetSocketAddress(inetAd, getPort().getValue()); } catch (final UnknownHostException e) { throw new IllegalArgumentException("Unable to bind netconf endpoint to address " + getBindingAddress(), e); } }