org.apache.catalina.util
public final class CustomObjectInputStream extends ObjectInputStream
ObjectInputStream
that loads from the
class loader for this web application. This allows classes defined only
with the web application to be found correctly.
Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Constructor Summary | |
---|---|
CustomObjectInputStream(InputStream stream, ClassLoader classLoader)
Construct a new instance of CustomObjectInputStream
|
Method Summary | |
---|---|
Class | resolveClass(ObjectStreamClass classDesc)
Load the local class equivalent of the specified stream class
description, by using the class loader assigned to this Context.
|
protected Class | resolveProxyClass(String[] interfaces)
Return a proxy class that implements the interfaces named in a proxy
class descriptor. |
Parameters: stream The input stream we will read from classLoader The class loader used to instantiate objects
Throws: IOException if an input/output error occurs
Parameters: classDesc Class description from the input stream
Throws: ClassNotFoundException if this class cannot be found IOException if an input/output error occurs