List of usage examples for org.springframework.remoting.rmi CodebaseAwareObjectInputStream CodebaseAwareObjectInputStream
public CodebaseAwareObjectInputStream(InputStream in, @Nullable ClassLoader classLoader, boolean acceptProxyClasses) throws IOException
From source file:org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.java
/** * Create an ObjectInputStream for the given InputStream and codebase. * The default implementation creates a CodebaseAwareObjectInputStream. * @param is the InputStream to read from * @param codebaseUrl the codebase URL to load classes from if not found locally * (can be {@code null})//w w w . j a v a 2 s .c om * @return the new ObjectInputStream instance to use * @throws IOException if creation of the ObjectInputStream failed * @see org.springframework.remoting.rmi.CodebaseAwareObjectInputStream */ protected ObjectInputStream createObjectInputStream(InputStream is, @Nullable String codebaseUrl) throws IOException { return new CodebaseAwareObjectInputStream(is, getBeanClassLoader(), codebaseUrl); }
From source file:spring.test.web.AbstractHttpInvokerRequestExecutor.java
/** * Create an ObjectInputStream for the given InputStream and codebase. * The default implementation creates a CodebaseAwareObjectInputStream. * @param is the InputStream to read from * @param codebaseUrl the codebase URL to load classes from if not found locally * (can be {@code null})//from w w w . ja v a 2s . c om * @return the new ObjectInputStream instance to use * @throws IOException if creation of the ObjectInputStream failed * @see org.springframework.remoting.rmi.CodebaseAwareObjectInputStream */ protected ObjectInputStream createObjectInputStream(InputStream is, String codebaseUrl) throws IOException { return new CodebaseAwareObjectInputStream(is, getBeanClassLoader(), codebaseUrl); }