View Javadoc

1   package org.xvsm.lookup.gnutella.objects;
2   
3   import java.io.Serializable;
4   import java.net.SocketAddress;
5   
6   /***
7    * this class encapsulates a search string and the object, which belongs to the
8    * search string. Objects of this class are used to send the object to the peer,
9    * which searched for the object
10   * 
11   * @author Hannu-Daniel Goiss
12   */
13  public class GnutellaAnswer implements Serializable {
14  	private static final long serialVersionUID = -2423524541994010558L;
15  	private String searchString;
16  	private Object object;
17  
18  	public GnutellaAnswer(String searchString, Object object) {
19  		super();
20  		this.searchString = searchString;
21  		this.object = object;
22  	}
23  
24  	public String getSearchString() {
25  		return searchString;
26  	}
27  
28  	public void setSearchString(String searchString) {
29  		this.searchString = searchString;
30  	}
31  
32  	public Object getObject() {
33  		return object;
34  	}
35  
36  	public void setObject(Object object) {
37  		this.object = object;
38  	}
39  
40  }