~ubuntu-branches/ubuntu/intrepid/tomcat5.5/intrepid

« back to all changes in this revision

Viewing changes to container/modules/groupcom/src/share/org/apache/catalina/tribes/tipis/Response.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-09-27 11:19:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060927111917-wov6fmkz3x6rsl68
Tags: 5.5.17-1ubuntu1
(Build-) depend on libmx4j-java (>= 3.0).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 1999,2004-2006 The Apache Software Foundation.
 
3
 * 
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 * 
 
8
 *      http://www.apache.org/licenses/LICENSE-2.0
 
9
 * 
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
package org.apache.catalina.tribes.tipis;
 
17
 
 
18
import java.io.Serializable;
 
19
 
 
20
import org.apache.catalina.tribes.Member;
 
21
 
 
22
/**
 
23
 * A response object holds a message from a responding partner.
 
24
 * @author Filip Hanik
 
25
 * @version 1.0
 
26
 */
 
27
public class Response {
 
28
    private Member source;
 
29
    private Serializable message;
 
30
    public Response() {
 
31
    }
 
32
    
 
33
    public Response(Member source, Serializable message) {
 
34
        this.source = source;
 
35
        this.message = message;
 
36
    }
 
37
 
 
38
    public void setSource(Member source) {
 
39
        this.source = source;
 
40
    }
 
41
 
 
42
    public void setMessage(Serializable message) {
 
43
        this.message = message;
 
44
    }
 
45
 
 
46
    public Member getSource() {
 
47
        return source;
 
48
    }
 
49
 
 
50
    public Serializable getMessage() {
 
51
        return message;
 
52
    }
 
53
}