All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qinsoft.qmemache.QMemcacheResponse Maven / Gradle / Ivy

There is a newer version: 1.0.1-beta1
Show newest version
package com.qinsoft.qmemache;

import java.nio.charset.Charset;

/**
 * QMemcache响应模型
 */
public class QMemcacheResponse {

    static class QMemcacheResponseItem{
        //参数
        private Object[]params;
        //数据
        private String bodyData;

        public Object[] getParams() {
            return params;
        }

        public void setParams(Object[] params) {
            this.params = params;
        }

        public String getBodyData() {
            return bodyData;
        }

        public void setBodyData(String bodyData) {
            this.bodyData = bodyData;
        }

        public QMemcacheResponseItem(Object[]params, String bodyData){
            this.params=params;
            this.bodyData=bodyData;
        }
    }

    private QMemcacheResponse []items;

    public QMemcacheResponse[] getItems() {
        return items;
    }

    public void setItems(QMemcacheResponse[] items) {
        this.items = items;
    }

    public QMemcacheResponse(QMemcacheResponse []items){
        this.items=items;
    }

    public static QMemcacheResponse decode(byte[] data, Charset charset){
        if(data==null)throw new NullPointerException("data");
        String content=new String(data,charset);
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy