Class HttpMarshallerFactory

java.lang.Object
org.wildfly.httpclient.common.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

    Modifier and Type
    Method
    Description
    org.jboss.marshalling.Marshaller
    Creates a simple Marshaller.
    <T> org.jboss.marshalling.Marshaller
    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.
    <T> org.jboss.marshalling.Marshaller
    createMarshaller(org.jboss.marshalling.ObjectResolver resolver, CompletableFuture<T> failureHandler)
    Creates a Marshaller configured with an optional 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
    Creates a simple Unmarshaller.
    org.jboss.marshalling.Unmarshaller
    Creates an Unmarshaller configured with a class resolver.
    <T> org.jboss.marshalling.Unmarshaller
    Creates a simple Unmarshaller.
    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.
    <T> org.jboss.marshalling.Unmarshaller
    createUnmarshaller(org.jboss.marshalling.ObjectResolver resolver, CompletableFuture<T> failureHandler)
    Creates a Unmarshaller configured with an optional 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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
    • createMarshaller

      public <T> org.jboss.marshalling.Marshaller createMarshaller(org.jboss.marshalling.ObjectResolver resolver, @NotNull CompletableFuture<T> failureHandler)
      Creates a Marshaller configured with an optional object resolver.
      Parameters:
      resolver - responsible for substituting objects when marshalling. This parameter can be null.
      failureHandler - to store exception if an I/O error occurs during marshaller creation
      Returns:
      the marshaller or null if exception have been stored in failureHandler
    • createUnmarshaller

      public <T> org.jboss.marshalling.Unmarshaller createUnmarshaller(org.jboss.marshalling.ObjectResolver resolver, @NotNull CompletableFuture<T> failureHandler)
      Creates a Unmarshaller configured with an optional object resolver.
      Parameters:
      resolver - responsible for substituting objects when unmarshalling. This parameter can be null.
      failureHandler - to store exception if an I/O error occurs during marshaller creation
      Returns:
      the unmarshaller or null if exception have been stored in failureHandler
    • createMarshaller

      public <T> org.jboss.marshalling.Marshaller createMarshaller(@NotNull CompletableFuture<T> failureHandler)
      Creates a simple Marshaller.
      Parameters:
      failureHandler - to store exception if an I/O error occurs during marshaller creation
      Returns:
      the marshaller or null if exception have been stored in failureHandler
    • createUnmarshaller

      public <T> org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull CompletableFuture<T> failureHandler)
      Creates a simple Unmarshaller.
      Parameters:
      failureHandler - to store exception if an I/O error occurs during unmarshaller creation
      Returns:
      the unmarshaller or null if exception have been stored in failureHandler
    • 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