1 48 49 package com.caucho.hessian.io; 50 51 import com.caucho.burlap.io.BurlapRemoteObject; 52 53 import java.io.IOException ; 54 55 58 public class RemoteSerializer extends AbstractSerializer { 59 public void writeObject(Object obj, AbstractHessianOutput out) 60 throws IOException 61 { 62 if (obj instanceof HessianRemoteObject) { 63 HessianRemoteObject remote = (HessianRemoteObject) obj; 64 65 out.writeRemote(remote.getHessianType(), remote.getHessianURL()); 66 } 67 else if (obj instanceof BurlapRemoteObject) { 68 BurlapRemoteObject remote = (BurlapRemoteObject) obj; 69 70 out.writeRemote(remote.getBurlapType(), remote.getBurlapURL()); 71 } 72 } 73 } 74 | Popular Tags |