/** {@inheritDoc} */ @Override protected Object resolveObject(Object o) throws IOException { if (o != null && o.getClass().equals(JdkMarshallerDummySerializable.class)) return new Object(); return super.resolveObject(o); } }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof Wrapper) { try { (obj = ConfigurationSerialization.deserializeObject(((Wrapper<?>) obj).map)).getClass(); // NPE } catch (Throwable ex) { throw newIOException("Failed to deserialize object", ex); } } return super.resolveObject(obj); }
/** * Read a string encoded in {@link DataInput modified UTF-8} from the * receiver. Return the string read. * * @param unshared * read the object unshared * @return the string just read. * @throws IOException * If an IO exception happened when reading the String. */ private Object readNewString(boolean unshared) throws IOException { Object result = input.readUTF(); if (enableResolve) { result = resolveObject(result); } registerObjectRead(result, nextHandle(), unshared); return result; }
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ReferenceReplacement) { final ReferenceReplacement replacement = (ReferenceReplacement) obj; if (replacement.address != null) { return runtime.getRemoteObserverReference(replacement.address, (Class) replacement.interfaceClass, replacement.id); } return runtime.getReference((Class) replacement.interfaceClass, replacement.id); } return super.resolveObject(obj); } }
/** * Read a new String in UTF format from the receiver. Return the string * read. * * @param unshared * read the object unshared * @return the string just read. * * @throws IOException * If an IO exception happened when reading the String. */ private Object readNewLongString(boolean unshared) throws IOException { long length = input.readLong(); Object result = input.decodeUTF((int) length); if (enableResolve) { result = resolveObject(result); } registerObjectRead(result, nextHandle(), unshared); return result; }
result = resolveObject(result); registerObjectRead(result, newHandle, false);
result = resolveObject(result);
@Override protected Object resolveObject(Object obj) throws IOException { Object replaced = replacedComponents.get(obj); if (replaced != null) { return replaced; } return super.resolveObject(obj); } }
@Override protected Object resolveObject(Object obj) throws IOException { Object replaced = replacedComponents.get(obj); if (replaced != null) { return replaced; } return super.resolveObject(obj); } }
protected Object resolveObject(Object obj) throws IOException { Object replaced = replacedComponents.get(obj); if (replaced != null) { return replaced; } return super.resolveObject(obj); } }
/** {@inheritDoc} */ @Override protected Object resolveObject(Object o) throws IOException { if (o != null && o.getClass().equals(JdkMarshallerDummySerializable.class)) return new Object(); return super.resolveObject(o); } }
/** {@inheritDoc} */ @Override protected Object resolveObject(Object o) throws IOException { if (o != null && o.getClass().equals(GridJdkMarshallerDummySerializable.class)) return new Object(); return super.resolveObject(o); } }
@Override protected Object resolveObject(Object obj) throws IOException { return super.resolveObject(obj); } };
@Override protected Object resolveObject(Object obj) throws IOException { if(obj instanceof URL){ // SECURITY-637, URL deserialization could lead to DNS query return URLDeserializationHelper.wrapIfRequired((URL) obj); } return super.resolveObject(obj); } }
@Override protected Object resolveObject(Object obj) throws IOException { if(obj instanceof URL){ // SECURITY-637, URL deserialization could lead to DNS query return URLDeserializationHelper.wrapIfRequired((URL) obj); } return super.resolveObject(obj); } }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof Wrapper) { try { (obj = ConfigurationSerialization.deserializeObject(((Wrapper<?>) obj).map)).getClass(); // NPE } catch (Throwable ex) { throw newIOException("Failed to deserialize object", ex); } } return super.resolveObject(obj); }
@Override protected final Object resolveObject(Object object) throws IOException { if (object instanceof ReplaceBundleContext) { ReplaceBundleContext replaceBundleContext = (ReplaceBundleContext) object; return replaceBundleContext.getBundleContext(); } else if (object instanceof ReplaceBundle) { ReplaceBundle replaceBundle = (ReplaceBundle) object; return replaceBundle.getBundle(); } else { return super.resolveObject(object); } }
/** {@inheritDoc} */ @Override protected final Object resolveObject(Object object) throws IOException { if (object instanceof ReplaceBundleContext) { ReplaceBundleContext replaceBundleContext = (ReplaceBundleContext) object; return replaceBundleContext.getBundleContext(); } else if (object instanceof ReplaceBundle) { ReplaceBundle replaceBundle = (ReplaceBundle) object; return replaceBundle.getBundle(); } else { return super.resolveObject(object); } }
/** * Read a string encoded in {@link DataInput modified UTF-8} from the * receiver. Return the string read. * * @param unshared * read the object unshared * @return the string just read. * @throws IOException * If an IO exception happened when reading the String. */ private Object readNewString(boolean unshared) throws IOException { Object result = input.readUTF(); if (enableResolve) { result = resolveObject(result); } registerObjectRead(result, nextHandle(), unshared); return result; }
/** {@inheritDoc} */ @Override protected final Object resolveObject(Object object) throws IOException { if (object instanceof ReplaceBundleContext) { ReplaceBundleContext replaceBundleContext = (ReplaceBundleContext) object; return replaceBundleContext.getBundleContext(); } else if (object instanceof ReplaceBundle) { ReplaceBundle replaceBundle = (ReplaceBundle) object; return replaceBundle.getBundle(); } else { return super.resolveObject(object); } }