Example usage for org.springframework.remoting.rmi CodebaseAwareObjectInputStream CodebaseAwareObjectInputStream

List of usage examples for org.springframework.remoting.rmi CodebaseAwareObjectInputStream CodebaseAwareObjectInputStream

Introduction

In this page you can find the example usage for org.springframework.remoting.rmi CodebaseAwareObjectInputStream CodebaseAwareObjectInputStream.

Prototype

public CodebaseAwareObjectInputStream(InputStream in, @Nullable ClassLoader classLoader,
        boolean acceptProxyClasses) throws IOException 

Source Link

Document

Create a new CodebaseAwareObjectInputStream for the given InputStream and codebase.

Usage

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);
}