Class HttpMarshallerFactory


  • public final class HttpMarshallerFactory
    extends Object
    Creates Marshaller objects for reading and writing requests and responses objects as bytes.
    Author:
    Richard Opalka, Flavia Rainone
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jboss.marshalling.Marshaller createMarshaller()
      Creates a simple Marshaller.
      org.jboss.marshalling.Marshaller createMarshaller​(org.jboss.marshalling.ClassResolver resolver, org.jboss.marshalling.ObjectTable table)
      Creates a Marshaller configured with a class resolver and an object table.
      org.jboss.marshalling.Marshaller createMarshaller​(org.jboss.marshalling.ObjectResolver resolver)
      Creates a Marshaller configured with an object resolver.
      org.jboss.marshalling.Marshaller createMarshaller​(org.jboss.marshalling.ObjectResolver resolver, org.jboss.marshalling.ObjectTable table)
      Creates a Marshaller configured with an object resolver and an object table.
      org.jboss.marshalling.Marshaller createMarshaller​(org.jboss.marshalling.ObjectTable table)
      Creates a Marshaller configured with an object table.
      org.jboss.marshalling.Unmarshaller createUnmarshaller()
      Creates a simple Unmarshaller.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(ClassLoader cl)
      Creates an Unmarshaller configured with a class resolver.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(org.jboss.marshalling.ClassResolver resolver)
      Creates an Unmarshaller configured with a class resolver.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(org.jboss.marshalling.ClassResolver resolver, org.jboss.marshalling.ObjectTable table)
      Creates an Unmarshaller configured with a class resolver and an object table.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(org.jboss.marshalling.ObjectResolver resolver)
      Creates an Unmarshaller configured with an object resolver.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(org.jboss.marshalling.ObjectResolver resolver, org.jboss.marshalling.ObjectTable table)
      Creates an Unmarshaller configured with an object resolver and an object table.
      org.jboss.marshalling.Unmarshaller createUnmarshaller​(org.jboss.marshalling.ObjectTable table)
      Creates an Unmarshaller configured with an object table.
    • Method Detail

      • createMarshaller

        public org.jboss.marshalling.Marshaller createMarshaller()
                                                          throws IOException
        Creates a simple Marshaller.
        Returns:
        a marshaller
        Throws:
        IOException - if an I/O error occurs during marshaller creation
      • createMarshaller

        public org.jboss.marshalling.Marshaller createMarshaller​(@NotNull
                                                                 org.jboss.marshalling.ObjectResolver resolver)
                                                          throws IOException
        Creates a Marshaller configured with an object resolver.
        Parameters:
        resolver - responsible for substituting objects when marshalling.
        Returns:
        the marshaller
        Throws:
        IOException - if an I/O error occurs during marshaller creation
      • createMarshaller

        public org.jboss.marshalling.Marshaller createMarshaller​(@NotNull
                                                                 org.jboss.marshalling.ObjectTable table)
                                                          throws IOException
        Creates a Marshaller configured with an object table.
        Parameters:
        table - the object table used by the marshaller
        Returns:
        the marshaller
        Throws:
        IOException - if an I/O error occurs during marshaller creation
      • createMarshaller

        public org.jboss.marshalling.Marshaller createMarshaller​(@NotNull
                                                                 org.jboss.marshalling.ObjectResolver resolver,
                                                                 @NotNull
                                                                 org.jboss.marshalling.ObjectTable table)
                                                          throws IOException
        Creates a Marshaller configured with an object resolver and an object table.
        Parameters:
        resolver - responsible for substituting objects when marshalling
        table - the object table used by the marshaller
        Returns:
        the marshaller
        Throws:
        IOException - if an I/O error occurs during marshaller creation
      • createMarshaller

        public org.jboss.marshalling.Marshaller createMarshaller​(@NotNull
                                                                 org.jboss.marshalling.ClassResolver resolver,
                                                                 @NotNull
                                                                 org.jboss.marshalling.ObjectTable table)
                                                          throws IOException
        Creates a Marshaller configured with a class resolver and an object table.
        Parameters:
        resolver - class annotator and resolver
        table - the object table used by the marshaller
        Returns:
        the marshaller
        Throws:
        IOException - if an I/O error occurs during marshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller()
                                                              throws IOException
        Creates a simple Unmarshaller.
        Returns:
        an unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     org.jboss.marshalling.ObjectResolver resolver)
                                                              throws IOException
        Creates an Unmarshaller configured with an object resolver.
        Parameters:
        resolver - responsible for substituting objects when unmarshalling.
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     org.jboss.marshalling.ClassResolver resolver)
                                                              throws IOException
        Creates an Unmarshaller configured with a class resolver.
        Parameters:
        resolver - class annotator and resolver
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     ClassLoader cl)
                                                              throws IOException
        Creates an Unmarshaller configured with a class resolver.
        Parameters:
        cl - the class loader that will be used by the class resolver
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     org.jboss.marshalling.ObjectTable table)
                                                              throws IOException
        Creates an Unmarshaller configured with an object table.
        Parameters:
        table - the object table used by the marshaller
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     org.jboss.marshalling.ObjectResolver resolver,
                                                                     @NotNull
                                                                     org.jboss.marshalling.ObjectTable table)
                                                              throws IOException
        Creates an Unmarshaller configured with an object resolver and an object table.
        Parameters:
        resolver - responsible for substituting objects when unmarshalling.
        table - the object table used by the marshaller
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation
      • createUnmarshaller

        public org.jboss.marshalling.Unmarshaller createUnmarshaller​(@NotNull
                                                                     org.jboss.marshalling.ClassResolver resolver,
                                                                     @NotNull
                                                                     org.jboss.marshalling.ObjectTable table)
                                                              throws IOException
        Creates an Unmarshaller configured with a class resolver and an object table.
        Parameters:
        resolver - class annotator and resolver
        table - the object table used by the marshaller
        Returns:
        the unmarshaller
        Throws:
        IOException - if an I/O error occurs during unmarshaller creation