Package net.hasor.rsf.protocol.message

Examples of net.hasor.rsf.protocol.message.RequestMsg.addOption()


        request.setTargetMethod("sayHello");//String item, int index
        request.setSerializeType("Hessian");
        //
        request.addParameter("java.lang.String", de.encode("你好..."));
        //
        request.addOption("sync", "true");
        //
        return request;
    }
    public static void main(String[] args) throws Exception {
        Client client = new Client();
View Full Code Here


        request.setTargetMethod("sayHello");//String item, int index
        request.setSerializeType("Hessian");
        //
        request.addParameter("java.lang.String", de.encode("你好..."));
        //
        request.addOption("sync", "true");
        //
        sendCount++;
        return request;
    }
}
View Full Code Here

        short[] oValues = block.getOptionValues();
        for (int i = 0; i < oTypes.length; i++) {
            String optKey = getString(block, oTypes[i]);
            String optVar = getString(block, oValues[i]);
            //
            reqMetaData.addOption(optKey, optVar);
        }
        return reqMetaData;
    };
    /**将{@link ResponseSocketBlock}转换为{@link ResponseMsg }消息。*/
    public static ResponseMsg responseToMessage(ResponseSocketBlock block) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.