ipChnnelType = IpChannelType.getInstance(args[i + 1]); ipChnnelType = IpChannelType.getInstance(args[i + 1]); ipChnnelType = IpChannelType.getInstance(args[i + 1]);
ipChnnelType = IpChannelType.getInstance(args[i + 1]); case "port": port = Integer.valueOf(args[i + 1]); break; case "sockettype": ipChannelType = IpChannelType.getInstance(args[i + 1]); break; case "anonymconnect": acceptAnonymousConnections = Boolean.valueOf(args[i + 1]); ipChnnelType = IpChannelType.getInstance(args[i + 1]); ipChnnelType = IpChannelType.getInstance(args[i + 1]); case "peerport": peerPort = Integer.valueOf(args[i + 1]); break; case "sockettype": ipChannelType = IpChannelType.getInstance(args[i + 1]); break; case "host": hostAddress = args[i + 1]; case "peerport": peerPort = Integer.valueOf(args[i + 1]); break; case "sockettype": ipChannelType = IpChannelType.getInstance(args[i + 1]); break; case "servername": serverName = args[i + 1];
@SuppressWarnings("unchecked") @Override public void read(javolution.xml.XMLFormat.InputElement xml, ServerImpl server) throws XMLStreamException { server.name = xml.getAttribute(NAME, ""); server.started = xml.getAttribute(STARTED, false); server.hostAddress = xml.getAttribute(HOST_ADDRESS, ""); server.hostport = xml.getAttribute(HOST_PORT, 0); server.ipChannelType = IpChannelType.getInstance(xml.getAttribute(IPCHANNEL_TYPE, IpChannelType.SCTP.getCode())); if (server.ipChannelType == null) throw new XMLStreamException("Bad value for server.ipChannelType"); server.acceptAnonymousConnections = xml.getAttribute(ACCEPT_ANONYMOUS_CONNECTIONS, false); server.maxConcurrentConnectionsCount = xml.getAttribute(MAX_CONCURRENT_CONNECTIONS_COUNT, 0); int extraHostAddressesSize = xml.getAttribute(EXTRA_HOST_ADDRESS_SIZE, 0); server.extraHostAddresses = new String[extraHostAddressesSize]; for(int i=0;i<extraHostAddressesSize;i++){ server.extraHostAddresses[i] = xml.get(EXTRA_HOST_ADDRESS, String.class); } server.associations = xml.get(ASSOCIATIONS, FastList.class); }
@SuppressWarnings("unchecked") @Override public void read(javolution.xml.XMLFormat.InputElement xml, NettyAssociationImpl association) throws XMLStreamException { association.name = xml.getAttribute(NAME, ""); association.type = AssociationType.getAssociationType(xml.getAttribute(ASSOCIATION_TYPE, "")); association.hostAddress = xml.getAttribute(HOST_ADDRESS, ""); association.hostPort = xml.getAttribute(HOST_PORT, 0); association.peerAddress = xml.getAttribute(PEER_ADDRESS, ""); association.peerPort = xml.getAttribute(PEER_PORT, 0); association.serverName = xml.getAttribute(SERVER_NAME, ""); association.ipChannelType = IpChannelType .getInstance(xml.getAttribute(IPCHANNEL_TYPE, IpChannelType.SCTP.getCode())); if (association.ipChannelType == null) association.ipChannelType = IpChannelType.SCTP; int extraHostAddressesSize = xml.getAttribute(EXTRA_HOST_ADDRESS_SIZE, 0); association.extraHostAddresses = new String[extraHostAddressesSize]; for (int i = 0; i < extraHostAddressesSize; i++) { association.extraHostAddresses[i] = xml.get(EXTRA_HOST_ADDRESS, String.class); } }
@SuppressWarnings("unchecked") @Override public void read(javolution.xml.XMLFormat.InputElement xml, NettyServerImpl server) throws XMLStreamException { server.name = xml.getAttribute(NAME, ""); server.started = xml.getAttribute(STARTED, false); server.hostAddress = xml.getAttribute(HOST_ADDRESS, ""); server.hostport = xml.getAttribute(HOST_PORT, 0); server.ipChannelType = IpChannelType.getInstance(xml.getAttribute(IPCHANNEL_TYPE, IpChannelType.SCTP.getCode())); if (server.ipChannelType == null) throw new XMLStreamException("Bad value for server.ipChannelType"); server.acceptAnonymousConnections = xml.getAttribute(ACCEPT_ANONYMOUS_CONNECTIONS, false); server.maxConcurrentConnectionsCount = xml.getAttribute(MAX_CONCURRENT_CONNECTIONS_COUNT, 0); int extraHostAddressesSize = xml.getAttribute(EXTRA_HOST_ADDRESS_SIZE, 0); server.extraHostAddresses = new String[extraHostAddressesSize]; for (int i = 0; i < extraHostAddressesSize; i++) { server.extraHostAddresses[i] = xml.get(EXTRA_HOST_ADDRESS, String.class); } server.associations = xml.get(ASSOCIATIONS, FastList.class); }
@SuppressWarnings("unchecked") @Override public void read(javolution.xml.XMLFormat.InputElement xml, AssociationImpl association) throws XMLStreamException { association.name = xml.getAttribute(NAME, ""); association.type = AssociationType.getAssociationType(xml.getAttribute(ASSOCIATION_TYPE, "")); association.hostAddress = xml.getAttribute(HOST_ADDRESS, ""); association.hostPort = xml.getAttribute(HOST_PORT, 0); association.peerAddress = xml.getAttribute(PEER_ADDRESS, ""); association.peerPort = xml.getAttribute(PEER_PORT, 0); association.serverName = xml.getAttribute(SERVER_NAME, ""); association.ipChannelType = IpChannelType.getInstance(xml.getAttribute(IPCHANNEL_TYPE, IpChannelType.SCTP.getCode())); if (association.ipChannelType == null) association.ipChannelType = IpChannelType.SCTP; int extraHostAddressesSize = xml.getAttribute(EXTRA_HOST_ADDRESS_SIZE, 0); association.extraHostAddresses = new String[extraHostAddressesSize]; for (int i = 0; i < extraHostAddressesSize; i++) { association.extraHostAddresses[i] = xml.get(EXTRA_HOST_ADDRESS, String.class); } }