/** * Construct a new handler of {@link CMIProxy}. * @param objectName the object name * @param interfaceName the name of the interface implemented by the handled proxy * @param cmiProxy the cmi proxy */ public CMIProxyHandleImpl(final String objectName, final String interfaceName, final CMIProxy cmiProxy) { this.objectName = objectName; this.cmiProxy = cmiProxy; this.interfaceName = interfaceName; serializedProxy = CMIProxySerializer.serialize(cmiProxy); }
public CMIProxyHandle updateHttpSession() { CMIProxyHandle cmiProxyHandle = null; if (httpBound) { serializedProxy = CMIProxySerializer.serialize(cmiProxy); try { cmiProxyHandle = (CMIProxyHandle) clone(); } catch (CloneNotSupportedException e) { e.printStackTrace(); } // when we call setAttribute on the httpSession httpSession.setAttribute(attributeName, cmiProxyHandle); } return cmiProxyHandle; }