Package com.art.anette.common.network

Examples of com.art.anette.common.network.DataRequest


                    final Object obj = objects.get(0);
                    Request request;
                    if (obj instanceof Request) {
                        request = (Request) obj;
                    } else {
                        request = new DataRequest(obj);
                    }
                    NetworkControl.getInstance().send(request);
                    objects.remove(obj);
                    if (statusBar != null) {
                        SwingUtilities.invokeLater(new Runnable() {
View Full Code Here


        String className = packet.getClass().getName();
        className = className.replace("com.art.anette.common.network.", "");
        logger.info(String.format("%s: %s %s", prefix, className, packet.toString()));

        if (packet instanceof DataRequest) {
            DataRequest dataRequest = (DataRequest) packet;
            logger.info(String.format("%s: detail %s", prefix, prettyPrintObjectForLogging(dataRequest.getObject())));
        }
        if (packet instanceof DataResponse) {
            DataResponse dataResponse = (DataResponse) packet;
            for (int i = 0; i < dataResponse.getObjects().size(); i++) {
                Object o = dataResponse.getObjects().get(i);
View Full Code Here

TOP

Related Classes of com.art.anette.common.network.DataRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.