Class SimpleMessageConverter

    • Field Detail

    • Constructor Detail

      • SimpleMessageConverter

        public SimpleMessageConverter()
    • Method Detail

      • setCodebaseUrl

        @Deprecated
        public void setCodebaseUrl​(java.lang.String codebaseUrl)
        Deprecated.
        due to deprecation of CodebaseAwareObjectInputStream.
        Set the codebase URL to download classes from if not found locally. Can consist of multiple URLs, separated by spaces.

        Follows RMI's codebase conventions for dynamic class download.

        Parameters:
        codebaseUrl - The codebase URL.
        See Also:
        CodebaseAwareObjectInputStream, RMIClassLoader
      • setDefaultCharset

        public void setDefaultCharset​(java.lang.String defaultCharset)
        Specify the default charset to use when converting to or from text-based Message body content. If not specified, the charset will be "UTF-8".
        Parameters:
        defaultCharset - The default charset.
      • createObjectInputStream

        protected java.io.ObjectInputStream createObjectInputStream​(java.io.InputStream is,
                                                                    java.lang.String codebaseUrl)
                                                             throws java.io.IOException
        Create an ObjectInputStream for the given InputStream and codebase. The default implementation creates a CodebaseAwareObjectInputStream.
        Parameters:
        is - the InputStream to read from
        codebaseUrl - the codebase URL to load classes from if not found locally (can be null)
        Returns:
        the new ObjectInputStream instance to use
        Throws:
        java.io.IOException - if creation of the ObjectInputStream failed
        See Also:
        CodebaseAwareObjectInputStream