Class WildcardConfigurableJohnzonProvider<T>

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyReader<T>, jakarta.ws.rs.ext.MessageBodyWriter<T>

    @Produces({"*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
    @Consumes({"*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
    public class WildcardConfigurableJohnzonProvider<T>
    extends Object
    implements jakarta.ws.rs.ext.MessageBodyWriter<T>, jakarta.ws.rs.ext.MessageBodyReader<T>
    • Constructor Detail

      • WildcardConfigurableJohnzonProvider

        public WildcardConfigurableJohnzonProvider()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> rawType,
                                  Type genericType,
                                  Annotation[] annotations,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<T>
      • readFrom

        public T readFrom​(Class<T> rawType,
                          Type genericType,
                          Annotation[] annotations,
                          jakarta.ws.rs.core.MediaType mediaType,
                          jakarta.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                          InputStream entityStream)
                   throws IOException
        Specified by:
        readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<T>
        Throws:
        IOException
      • getSize

        public long getSize​(T t,
                            Class<?> rawType,
                            Type genericType,
                            Annotation[] annotations,
                            jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<T>
      • isWriteable

        public boolean isWriteable​(Class<?> rawType,
                                   Type genericType,
                                   Annotation[] annotations,
                                   jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<T>
      • writeTo

        public void writeTo​(T t,
                            Class<?> rawType,
                            Type genericType,
                            Annotation[] annotations,
                            jakarta.ws.rs.core.MediaType mediaType,
                            jakarta.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                            OutputStream entityStream)
                     throws IOException
        Specified by:
        writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<T>
        Throws:
        IOException
      • setIgnoreFieldsForType

        public void setIgnoreFieldsForType​(String mapping)
      • setSnippetMaxLength

        public void setSnippetMaxLength​(int value)
      • setFailOnUnknownProperties

        public void setFailOnUnknownProperties​(boolean active)
      • setSupportConstructors

        public void setSupportConstructors​(boolean supportConstructors)
      • setPretty

        public void setPretty​(boolean pretty)
      • setSupportGetterForCollections

        public void setSupportGetterForCollections​(boolean supportGetterForCollections)
      • setSupportsComments

        public void setSupportsComments​(boolean supportsComments)
      • setIgnores

        public void setIgnores​(String ignores)
      • setAccessMode

        public void setAccessMode​(AccessMode mode)
      • setAccessModeName

        public void setAccessModeName​(String mode)
      • setAccessModeFieldFilteringStrategyName

        public void setAccessModeFieldFilteringStrategyName​(String mode)
      • setSupportHiddenAccess

        public void setSupportHiddenAccess​(boolean supportHiddenAccess)
      • setAttributeOrder

        public void setAttributeOrder​(Comparator<String> attributeOrder)
      • setReaderFactory

        public void setReaderFactory​(jakarta.json.JsonReaderFactory readerFactory)
      • setGeneratorFactory

        public void setGeneratorFactory​(jakarta.json.stream.JsonGeneratorFactory generatorFactory)
      • setDoCloseOnStreams

        public void setDoCloseOnStreams​(boolean doCloseOnStreams)
      • setVersion

        public void setVersion​(int version)
      • setSkipNull

        public void setSkipNull​(boolean skipNull)
      • setSkipEmptyArray

        public void setSkipEmptyArray​(boolean skipEmptyArray)
      • setBufferSize

        public void setBufferSize​(int bufferSize)
      • setBufferStrategy

        public void setBufferStrategy​(String bufferStrategy)
      • setMaxSize

        public void setMaxSize​(int size)
      • setTreatByteArrayAsBase64

        public void setTreatByteArrayAsBase64​(boolean treatByteArrayAsBase64)
      • setReadAttributeBeforeWrite

        public void setReadAttributeBeforeWrite​(boolean rabw)
      • setEncoding

        public void setEncoding​(String encoding)
      • setPrimitiveConverters

        public void setPrimitiveConverters​(boolean val)
      • setUseBigDecimalForFloats

        public void setUseBigDecimalForFloats​(boolean useBigDecimalForFloats)
      • setSerializeValueFilter

        public void setSerializeValueFilter​(String val)