Package org.wildfly.httpclient.common
Class HttpMarshallerFactory
- java.lang.Object
-
- org.wildfly.httpclient.common.HttpMarshallerFactory
-
public final class HttpMarshallerFactory extends Object
CreatesMarshallerobjects 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.MarshallercreateMarshaller()Creates a simpleMarshaller.<T> org.jboss.marshalling.MarshallercreateMarshaller(CompletableFuture<T> failureHandler)Creates a simpleMarshaller.org.jboss.marshalling.MarshallercreateMarshaller(org.jboss.marshalling.ClassResolver resolver, org.jboss.marshalling.ObjectTable table)Creates aMarshallerconfigured with a class resolver and an object table.org.jboss.marshalling.MarshallercreateMarshaller(org.jboss.marshalling.ObjectResolver resolver)Creates aMarshallerconfigured with an object resolver.<T> org.jboss.marshalling.MarshallercreateMarshaller(org.jboss.marshalling.ObjectResolver resolver, CompletableFuture<T> failureHandler)Creates aMarshallerconfigured with an optional object resolver.org.jboss.marshalling.MarshallercreateMarshaller(org.jboss.marshalling.ObjectResolver resolver, org.jboss.marshalling.ObjectTable table)Creates aMarshallerconfigured with an object resolver and an object table.org.jboss.marshalling.MarshallercreateMarshaller(org.jboss.marshalling.ObjectTable table)Creates aMarshallerconfigured with an object table.org.jboss.marshalling.UnmarshallercreateUnmarshaller()Creates a simpleUnmarshaller.org.jboss.marshalling.UnmarshallercreateUnmarshaller(ClassLoader cl)Creates anUnmarshallerconfigured with a class resolver.<T> org.jboss.marshalling.UnmarshallercreateUnmarshaller(CompletableFuture<T> failureHandler)Creates a simpleUnmarshaller.org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ClassResolver resolver)Creates anUnmarshallerconfigured with a class resolver.org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ClassResolver resolver, org.jboss.marshalling.ObjectTable table)Creates anUnmarshallerconfigured with a class resolver and an object table.org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ObjectResolver resolver)Creates anUnmarshallerconfigured with an object resolver.<T> org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ObjectResolver resolver, CompletableFuture<T> failureHandler)Creates aUnmarshallerconfigured with an optional object resolver.org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ObjectResolver resolver, org.jboss.marshalling.ObjectTable table)Creates anUnmarshallerconfigured with an object resolver and an object table.org.jboss.marshalling.UnmarshallercreateUnmarshaller(org.jboss.marshalling.ObjectTable table)Creates anUnmarshallerconfigured with an object table.
-
-
-
Method Detail
-
createMarshaller
public org.jboss.marshalling.Marshaller createMarshaller() throws IOExceptionCreates a simpleMarshaller.- 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 IOExceptionCreates aMarshallerconfigured 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 IOExceptionCreates aMarshallerconfigured 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 IOExceptionCreates aMarshallerconfigured with an object resolver and an object table.- Parameters:
resolver- responsible for substituting objects when marshallingtable- 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 IOExceptionCreates aMarshallerconfigured with a class resolver and an object table.- Parameters:
resolver- class annotator and resolvertable- 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 aMarshallerconfigured with an optional object resolver.- Parameters:
resolver- responsible for substituting objects when marshalling. This parameter can benull.failureHandler- to store exception if an I/O error occurs during marshaller creation- Returns:
- the marshaller or
nullif exception have been stored in failureHandler
-
createUnmarshaller
public <T> org.jboss.marshalling.Unmarshaller createUnmarshaller(org.jboss.marshalling.ObjectResolver resolver, @NotNull CompletableFuture<T> failureHandler)Creates aUnmarshallerconfigured with an optional object resolver.- Parameters:
resolver- responsible for substituting objects when unmarshalling. This parameter can benull.failureHandler- to store exception if an I/O error occurs during marshaller creation- Returns:
- the unmarshaller or
nullif exception have been stored in failureHandler
-
createMarshaller
public <T> org.jboss.marshalling.Marshaller createMarshaller(@NotNull CompletableFuture<T> failureHandler)Creates a simpleMarshaller.- Parameters:
failureHandler- to store exception if an I/O error occurs during marshaller creation- Returns:
- the marshaller or
nullif exception have been stored in failureHandler
-
createUnmarshaller
public <T> org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull CompletableFuture<T> failureHandler)Creates a simpleUnmarshaller.- Parameters:
failureHandler- to store exception if an I/O error occurs during unmarshaller creation- Returns:
- the unmarshaller or
nullif exception have been stored in failureHandler
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller() throws IOExceptionCreates a simpleUnmarshaller.- 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 IOExceptionCreates anUnmarshallerconfigured 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 IOExceptionCreates anUnmarshallerconfigured 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 IOExceptionCreates anUnmarshallerconfigured 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 IOExceptionCreates anUnmarshallerconfigured 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 IOExceptionCreates anUnmarshallerconfigured 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 IOExceptionCreates anUnmarshallerconfigured with a class resolver and an object table.- Parameters:
resolver- class annotator and resolvertable- the object table used by the marshaller- Returns:
- the unmarshaller
- Throws:
IOException- if an I/O error occurs during unmarshaller creation
-
-