summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-12 09:28:36 (EST)
committerStefan Liebig2008-02-12 09:28:36 (EST)
commit9a10d73654e0a7000f199729ef1f59f1b1f83fcc (patch)
treede41728c017a5b6c2396219cf57fa9cb62fe9830
parent67ec62cec5b34e13a15a123fa95e0e714d1c2576 (diff)
downloadorg.eclipse.riena-9a10d73654e0a7000f199729ef1f59f1b1f83fcc.zip
org.eclipse.riena-9a10d73654e0a7000f199729ef1f59f1b1f83fcc.tar.gz
org.eclipse.riena-9a10d73654e0a7000f199729ef1f59f1b1f83fcc.tar.bz2
renamed My... to Riena...
-rw-r--r--org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RemoteServiceFactoryHessian.java4
-rw-r--r--org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RienaHessianProxyFactory.java (renamed from org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java)10
2 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RemoteServiceFactoryHessian.java b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RemoteServiceFactoryHessian.java
index 8b5dd73..7e2029c 100644
--- a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RemoteServiceFactoryHessian.java
+++ b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RemoteServiceFactoryHessian.java
@@ -51,7 +51,7 @@ public class RemoteServiceFactoryHessian implements IRemoteServiceFactory {
uri = "http://localhost/" + PROTOCOL + endpoint.getPath();
}
try {
- MyHessianProxyFactory mhpf = new MyHessianProxyFactory();
+ RienaHessianProxyFactory mhpf = new RienaHessianProxyFactory();
mhpf.setCallMessageContextAccessor(mca);
Object proxy = mhpf.create(endpoint.getServiceInterfaceClass(), uri);
@@ -117,7 +117,7 @@ public class RemoteServiceFactoryHessian implements IRemoteServiceFactory {
}
public Map<String, List<String>> listResponseHeaders() {
- HttpURLConnection httpUrlConnection = MyHessianProxyFactory.getHttpURLConnection();
+ HttpURLConnection httpUrlConnection = RienaHessianProxyFactory.getHttpURLConnection();
if (httpUrlConnection == null) {
return null;
}
diff --git a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RienaHessianProxyFactory.java
index 810b302..5c3072e 100644
--- a/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/MyHessianProxyFactory.java
+++ b/org.eclipse.riena.communication.factory.hessian/src/org/eclipse/riena/internal/communication/factory/hessian/RienaHessianProxyFactory.java
@@ -28,13 +28,13 @@ import org.osgi.service.cm.ManagedService;
import com.caucho.hessian.client.HessianProxyFactory;
import com.caucho.hessian.io.SerializerFactory;
-public class MyHessianProxyFactory extends HessianProxyFactory implements ManagedService {
+public class RienaHessianProxyFactory extends HessianProxyFactory implements ManagedService {
private ICallMessageContextAccessor mca;
private static ThreadLocal<HttpURLConnection> connections = new ThreadLocal<HttpURLConnection>();
private URL url;
- public MyHessianProxyFactory() {
+ public RienaHessianProxyFactory() {
super();
}
@@ -49,10 +49,10 @@ public class MyHessianProxyFactory extends HessianProxyFactory implements Manage
ICallMessageContext mc = mca.getMessageContext();
Map<String, List<String>> headers = mc.listRequestHeaders();
if (headers != null) {
- for (String hName : headers.keySet()) {
+ for (Map.Entry<String, List<String>> entry : headers.entrySet()) {
// System.out.println("size:" + headers.get(hName).size());
- for (String hValue : headers.get(hName)) {
- connection.addRequestProperty(hName, hValue);
+ for (String hValue : entry.getValue()) {
+ connection.addRequestProperty(entry.getKey(), hValue);
// System.out.println(">>>" + hName + ":" + hValue);
}
}