Skip to main content
summaryrefslogtreecommitdiffstats
blob: 583626b809e5c96e16369f549c88cafcb60f0e77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2009 Frank Becker and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Frank Becker - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylyn.internal.bugzilla.core;

import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.eclipse.mylyn.tasks.core.RepositoryResponse;

/**
 * @author Frank Becker
 */
public class BugzillaRepositoryResponse extends RepositoryResponse {

	private Map<String, List<String>> responseData = new LinkedHashMap<String, List<String>>();

	public BugzillaRepositoryResponse(ResponseKind reposonseKind, String taskId) {
		super(reposonseKind, taskId);
	}

	public BugzillaRepositoryResponse() {
		// ignore
	}

	public Map<String, List<String>> getResponseData() {
		return responseData;
	}

	public void setResponseData(Map<String, List<String>> responseData) {
		this.responseData = responseData;
	}

	public void addResponseData(String name, String response) {
		List<String> responseList = responseData.get(name);
		if (responseList == null) {
			responseList = new LinkedList<String>();
			responseData.put(name, responseList);
		}
		responseList.add(response);
	}

}

Back to the top