Author: ron.sigal(a)jboss.com
Date: 2011-04-29 17:19:37 -0400 (Fri, 29 Apr 2011)
New Revision: 6349
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamServer.java
Log:
JBREM-1288: Added a new constructor with a transport parameter.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamServer.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamServer.java 2011-04-29
21:18:21 UTC (rev 6348)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/stream/StreamServer.java 2011-04-29
21:19:37 UTC (rev 6349)
@@ -119,6 +119,14 @@
String locatorURI = getLocatorURI();
setupServer(locatorURI);
}
+
+ public StreamServer(InputStream stream, String transport) throws Exception
+ {
+ this.transport = transport;
+ this.streamSource = stream;
+ String locatorURI = getLocatorURI();
+ setupServer(locatorURI);
+ }
public StreamServer(InputStream stream, InvokerLocator locator) throws Exception
{
@@ -256,6 +264,7 @@
connector.stop();
connector.destroy();
}
+ return null;
}
else if(StreamHandler.RESET.equals(method))
{
Show replies by date