Package org.wildfly.httpclient.common
Class HttpMarshallerFactory
java.lang.Object
org.wildfly.httpclient.common.HttpMarshallerFactory
Creates
Marshaller objects for reading and writing requests and responses objects as bytes.- Author:
- Richard Opalka, Flavia Rainone
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.marshalling.MarshallerCreates 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.UnmarshallerCreates a simpleUnmarshaller.org.jboss.marshalling.UnmarshallerCreates 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 Details
-
createMarshaller
Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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
Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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 IOException Creates 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
-