Class ResourceReader
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.model.ResourceReader
-
public class ResourceReader extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceReader.ResourceReaderComparator
The comparison for now is simple: 1) Application provided writers come first 2) Readers with lower priority come first (same as reader interceptors) 3) Then the more specific the media type, the higher the priority 4) Finally we compare the number of media types The spec doesn't seem to mention this sorting being explicitly needed, but there are tests in the TCK that only pass reliably if the Readers are sorted like this
-
Constructor Summary
Constructors Constructor Description ResourceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.RuntimeType
getConstraint()
BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>>
getFactory()
List<String>
getMediaTypeStrings()
Integer
getPriority()
javax.ws.rs.ext.MessageBodyReader<?>
instance()
boolean
isBuiltin()
boolean
matchesRuntimeType(javax.ws.rs.RuntimeType runtimeType)
List<javax.ws.rs.core.MediaType>
mediaTypes()
ResourceReader
setBuiltin(boolean builtin)
ResourceReader
setConstraint(javax.ws.rs.RuntimeType constraint)
ResourceReader
setFactory(BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>> factory)
ResourceReader
setMediaTypeStrings(List<String> mediaTypeStrings)
ResourceReader
setPriority(Integer priority)
-
-
-
Method Detail
-
setFactory
public ResourceReader setFactory(BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>> factory)
-
getFactory
public BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>> getFactory()
-
setMediaTypeStrings
public ResourceReader setMediaTypeStrings(List<String> mediaTypeStrings)
-
getConstraint
public javax.ws.rs.RuntimeType getConstraint()
-
setConstraint
public ResourceReader setConstraint(javax.ws.rs.RuntimeType constraint)
-
isBuiltin
public boolean isBuiltin()
-
setBuiltin
public ResourceReader setBuiltin(boolean builtin)
-
getPriority
public Integer getPriority()
-
setPriority
public ResourceReader setPriority(Integer priority)
-
instance
public javax.ws.rs.ext.MessageBodyReader<?> instance()
-
mediaTypes
public List<javax.ws.rs.core.MediaType> mediaTypes()
-
matchesRuntimeType
public boolean matchesRuntimeType(javax.ws.rs.RuntimeType runtimeType)
-
-