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

com.kingsoft.services.ResponseMessage Maven / Gradle / Ivy

There is a newer version: 0.9.91
Show newest version
package com.kingsoft.services;

import java.util.HashMap;
import java.util.Map;

public class ResponseMessage {

	private Map metadata;

	/** The result contained by this response */
	private T content;

	private long requestId;

	public ResponseMessage() {
		metadata = new HashMap();
	}

	public T getContent() {
		return content;
	}

	public void setContent(T content) {
		this.content = content;
	}

	public void setMetadata(Map metadata) {
		this.metadata.clear();
		this.metadata.putAll(metadata);
	}

	public void addMetadata(String name, String value) {
		this.metadata.put(name, value);
	}

	public Map getMetadata() {
		return metadata;
	}

	public long getRequestId() {
		return requestId;
	}

	public void setRequestId(long requestId) {
		this.requestId = requestId;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy