Class MessageUnmarshaller<T>
java.lang.Object
org.apache.hadoop.ozone.s3.endpoint.MessageUnmarshaller<T>
- Type Parameters:
T- the object type to read from XML
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>
- Direct Known Subclasses:
CompleteMultipartUploadRequestUnmarshaller,MultiDeleteRequestUnmarshaller,PutBucketAclRequestUnmarshaller,PutTaggingUnmarshaller
Unmarshaller to create instances of type
T from XML,
which may or may not have namespace.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom(InputStream inputStream) Convenience method for programmatic invocation.readFrom(Class<T> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> multivaluedMap, InputStream inputStream)
-
Constructor Details
-
MessageUnmarshaller
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<T>
-
readFrom
public T readFrom(Class<T> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> multivaluedMap, InputStream inputStream) throws javax.ws.rs.WebApplicationException- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<T>- Throws:
javax.ws.rs.WebApplicationException
-
readFrom
Convenience method for programmatic invocation.- Throws:
javax.ws.rs.WebApplicationException
-