Author: ron.sigal(a)jboss.com
Date: 2009-01-17 23:22:42 -0500 (Sat, 17 Jan 2009)
New Revision: 4831
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/web/WebServerInvoker.java
Log:
JBREM-1079: createNewInvocationRequest() creates a CreatedInvocationRequest for lease
queries.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/web/WebServerInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/web/WebServerInvoker.java 2009-01-18
04:20:28 UTC (rev 4830)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/web/WebServerInvoker.java 2009-01-18
04:22:42 UTC (rev 4831)
@@ -131,11 +131,11 @@
if(isLeasQuery)
{
addLeaseInfo(responseMap);
- request = new InvocationRequest(sessionId, subSystem, "$PING$", null,
responseMap, null);
+ request = new CreatedInvocationRequest(sessionId, subSystem, "$PING$",
null, responseMap, null);
}
else
{
- request = new InvocationRequest(sessionId, subSystem, payload, metadata, null,
null);
+ request = new CreatedInvocationRequest(sessionId, subSystem, payload, metadata,
null, null);
}
request.setReturnPayload(responseMap);
return request;
@@ -233,4 +233,11 @@
}
}
+ static protected class CreatedInvocationRequest extends InvocationRequest
+ {
+ public CreatedInvocationRequest(String sessionId, String subsystem, Object arg, Map
requestPayload, Map returnPayload, InvokerLocator locator)
+ {
+ super(sessionId, subsystem, arg, requestPayload, returnPayload, locator);
+ }
+ }
}
\ No newline at end of file
Show replies by date