/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package org.openhim.mediator.engine.messages;

public class SimpleMediatorResponse<T>  extends MediatorResponseMessage {
    private T requestObject;

    public SimpleMediatorResponse(MediatorRequestMessage originalRequest, T requestObject) {
        super(originalRequest);
        this.requestObject = requestObject;
    }

    public T getRequestObject() {
        return requestObject;
    }

    public static boolean isInstanceOf(Class requestObjectClass, Object o) {
        if (!(o instanceof SimpleMediatorResponse)) {
            return false;
        }

        return requestObjectClass.isInstance(((SimpleMediatorResponse) o).getRequestObject());
    }
}

@@ -546,29 +546,30 @@
 private T re
-quest
+sponse
 Object;%0A%0A   
@@ -643,21 +643,22 @@
 st, T re
-quest
+sponse
 Object) 
@@ -706,21 +706,22 @@
  this.re
-quest
+sponse
 Object =
@@ -723,21 +723,22 @@
 ect = re
-quest
+sponse
 Object;%0A
@@ -758,29 +758,30 @@
 blic T getRe
-quest
+sponse
 Object() %7B%0A 
@@ -792,29 +792,30 @@
    return re
-quest
+sponse
 Object;%0A    
@@ -1064,21 +1064,22 @@
 o).getRe
-quest
+sponse
 Object()

rename requestObject -> responseObject