org.springframework.remoting.rmi.CodebaseAwareObjectInputStream Java Examples

The following examples show how to use org.springframework.remoting.rmi.CodebaseAwareObjectInputStream. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractHttpInvokerRequestExecutor.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * 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})
 * @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);
}
 
Example #2
Source File: AbstractHttpInvokerRequestExecutor.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * 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})
 * @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);
}
 
Example #3
Source File: AbstractHttpInvokerRequestExecutor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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})
 * @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);
}
 
Example #4
Source File: AbstractHttpInvokerRequestExecutor.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * 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})
 * @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);
}