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 classResourceReader.ResourceReaderComparatorThe 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.RuntimeTypegetConstraint()BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>>getFactory()List<String>getMediaTypeStrings()IntegergetPriority()javax.ws.rs.ext.MessageBodyReader<?>instance()booleanisBuiltin()booleanmatchesRuntimeType(javax.ws.rs.RuntimeType runtimeType)List<javax.ws.rs.core.MediaType>mediaTypes()voidsetBuiltin(boolean builtin)ResourceReadersetConstraint(javax.ws.rs.RuntimeType constraint)voidsetFactory(BeanFactory<javax.ws.rs.ext.MessageBodyReader<?>> factory)ResourceReadersetMediaTypeStrings(List<String> mediaTypeStrings)voidsetPriority(Integer priority)
-
-
-
Method Detail
-
setFactory
public void 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 void setBuiltin(boolean builtin)
-
getPriority
public Integer getPriority()
-
setPriority
public void 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)
-
-