1 6 7 package SOFA.SOFAnet.Search; 8 9 import java.util.List ; 10 11 16 public class SearchRequest 17 { 18 private SearchPattern searchPattern; 20 private boolean firstOnly; private String shareGroup; private int timeout; 25 private int errCode; 27 private List replies; 29 30 public SearchRequest() 31 { 32 firstOnly = true; 33 shareGroup = ""; 34 timeout = 5000; 35 errCode = -1; 36 replies = null; 37 } 38 39 public SearchPattern getSearchPattern() 40 { 41 return searchPattern; 42 } 43 44 public boolean getFirstOnly() 45 { 46 return firstOnly; 47 } 48 49 public String getShareGroup() 50 { 51 return shareGroup; 52 } 53 54 public int getTimeout() 55 { 56 return timeout; 57 } 58 59 public int getErrCode() 60 { 61 return errCode; 62 } 63 64 public List getReplies() 65 { 66 return replies; 67 } 68 69 public void setSearchPattern(SearchPattern searchPattern) 70 { 71 this.searchPattern = searchPattern; 72 } 73 74 public void setFirstOnly(boolean firstOnly) 75 { 76 this.firstOnly = firstOnly; 77 } 78 79 public void setShareGroup(String shareGroup) 80 { 81 this.shareGroup = shareGroup; 82 } 83 84 public void setTimeout(int timeout) 85 { 86 this.timeout = timeout; 87 } 88 89 public void setErrCode(int errCode) 90 { 91 this.errCode = errCode; 92 } 93 94 public void setReplies(List replies) 95 { 96 this.replies = replies; 97 } 98 } 99 | Popular Tags |