Package org.wildfly.httpclient.common
Class HttpMarshallerFactory
- java.lang.Object
-
- org.wildfly.httpclient.common.HttpMarshallerFactory
-
public final class HttpMarshallerFactory extends java.lang.ObjectCreatesMarshallerobjects 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.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.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(java.lang.ClassLoader cl)Creates anUnmarshallerconfigured with a class resolver.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.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 java.io.IOExceptionCreates a simpleMarshaller.- Returns:
- a marshaller
- Throws:
java.io.IOException- if an I/O error occurs during marshaller creation
-
createMarshaller
public org.jboss.marshalling.Marshaller createMarshaller(@NotNull org.jboss.marshalling.ObjectResolver resolver) throws java.io.IOExceptionCreates aMarshallerconfigured with an object resolver.- Parameters:
resolver- responsible for substituting objects when marshalling.- Returns:
- the marshaller
- Throws:
java.io.IOException- if an I/O error occurs during marshaller creation
-
createMarshaller
public org.jboss.marshalling.Marshaller createMarshaller(@NotNull org.jboss.marshalling.ObjectTable table) throws java.io.IOExceptionCreates aMarshallerconfigured with an object table.- Parameters:
table- the object table used by the marshaller- Returns:
- the marshaller
- Throws:
java.io.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 java.io.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:
java.io.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 java.io.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:
java.io.IOException- if an I/O error occurs during marshaller creation
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller() throws java.io.IOExceptionCreates a simpleUnmarshaller.- Returns:
- an unmarshaller
- Throws:
java.io.IOException- if an I/O error occurs during unmarshaller creation
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull org.jboss.marshalling.ObjectResolver resolver) throws java.io.IOExceptionCreates anUnmarshallerconfigured with an object resolver.- Parameters:
resolver- responsible for substituting objects when unmarshalling.- Returns:
- the unmarshaller
- Throws:
java.io.IOException- if an I/O error occurs during unmarshaller creation
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull org.jboss.marshalling.ClassResolver resolver) throws java.io.IOExceptionCreates anUnmarshallerconfigured with a class resolver.- Parameters:
resolver- class annotator and resolver- Returns:
- the unmarshaller
- Throws:
java.io.IOException- if an I/O error occurs during unmarshaller creation
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull java.lang.ClassLoader cl) throws java.io.IOExceptionCreates anUnmarshallerconfigured with a class resolver.- Parameters:
cl- the class loader that will be used by the class resolver- Returns:
- the unmarshaller
- Throws:
java.io.IOException- if an I/O error occurs during unmarshaller creation
-
createUnmarshaller
public org.jboss.marshalling.Unmarshaller createUnmarshaller(@NotNull org.jboss.marshalling.ObjectTable table) throws java.io.IOExceptionCreates anUnmarshallerconfigured with an object table.- Parameters:
table- the object table used by the marshaller- Returns:
- the unmarshaller
- Throws:
java.io.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 java.io.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:
java.io.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 java.io.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:
java.io.IOException- if an I/O error occurs during unmarshaller creation
-
-